Repository navigation
feat(ingestion): inventory the staged OpenCode harness layout - #270
Merged
sairenchristianbuerano merged 2 commits intoOct 20, 2026
Merged
Conversation
A directory holding a systemprompt.md and a guardrails.md side by side is a staged OpenCode harness tree, the layout the Harness2 adaptation framework writes for its OpenCode executor. Tag its systemprompt.md, guardrails.md, LongTermMEMORY.md and tool_descriptions/*.md as harness_guidance, plugin/*.{ts,js,mjs} as opencode_plugin and sub_agents/<name>/AGENT.md as opencode_agent, and count them on the Harness files line. The pair is the signature: a lone guardrails.md or a bare plugin/ directory is not labelled. Inventory only: no rule judges these files yet. No schema change.
…-010, schema 26) Add repo_harness_guidance_has_hidden_text and rule AGCFG-010: the AGCFG-009 character test (zero-width characters, Unicode Tags-block characters, bidirectional overrides, with the same exemptions) over the guidance files of a staged OpenCode harness tree. A separate predicate and rule, so AGCFG-009 keeps its AGENTS.md-only meaning. The hidden text is never echoed. Bump the rule schema to 26. Ship this engine before the rules pack: a rule that needs a new predicate is skipped on an older engine.
trustabl
approved these changes
Oct 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A directory holding a systemprompt.md and a guardrails.md side by side is a staged OpenCode harness tree, the layout the Harness2 adaptation framework writes for its OpenCode executor. Tag its systemprompt.md, guardrails.md, LongTermMEMORY.md and tool_descriptions/.md as harness_guidance, plugin/.{ts,js,mjs} as opencode_plugin and sub_agents//AGENT.md as opencode_agent, and count them on the Harness files line. The pair is the signature: a lone guardrails.md or a bare plugin/ directory is not labelled. Inventory only: no rule judges these files yet. No schema change.