Skip to content

feat(ingestion): inventory the staged OpenCode harness layout - #270

Merged
sairenchristianbuerano merged 2 commits into
mainfrom
feat/staged-opencode-harness-layout
Oct 20, 2026
Merged

sairenchristianbuerano merged 2 commits into
mainfrom
feat/staged-opencode-harness-layout

Conversation

@sairenchristianbuerano

Copy link
Copy Markdown
Collaborator

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.

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.
@sairenchristianbuerano
sairenchristianbuerano merged commit 1ecd959 into main Oct 20, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants