The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
fix: preserve opt-in GateGuard contract questions from PR 3497
haelyra43febb9ada72
diff --cc docs/gateguard/change-profile.mdindex d686668a6,653fabfdb..a20e42936--- a/docs/gateguard/change-profile.md+++ b/docs/gateguard/change-profile.md@@@ -306,7 -319,7 +322,8 @@@ file (same canonical key); entries forA condensed code denial names the same ids as a full one, one short phrase perid (`condensedQuestionPhrase`), so the data and duplicate checks follow the--profile there too. The one exception is an Edit with an unknown profile, which--keeps the original hint byte for byte ("importers/callers, affected API, data--schemas if any"); a Write with an unknown profile, sensitive Writes included,++profile there too. An Edit with an unknown profile keeps the original hint++byte for byte ("importers/callers, affected API, data schemas if any") when++the external-contract question is off. Opting in adds its external-contract++phrase to that hint. A Write with an unknown profile, sensitive Writes included,names `callers`, `no-duplicate` and `data-schema` like its full denial.diff --cc manifests/context-packs/[email protected]index e4c5c5198,928c94131..5b82f9671--- a/manifests/context-packs/[email protected]+++ b/manifests/context-packs/[email protected]@@@ -10,7 -10,7 +10,7 @@@"id": "hand-seeded","source": "manual-curation-pending-regeneration"},- "registryDigest": "13486e7747e81dcc199ac6475ca42089fcc02457e7a55c86a8fe94cf0bd41fce",- "registryDigest": "0136fd919b9b7ffe92e70b3ce28c6d21bd78b658387c0030d9a40eb63e3eddb9",++ "registryDigest": "55c884295c64fce1328cc906c6828fa4ce45606efec2f7e55887028e44b8b0a6","schemaVersion": 1,"triggers": {"skill:agent-runtime-gateway-smoke-test": [diff --cc skills/gateguard/SKILL.mdindex 55583bb97,7cda6449b..5db374d63--- a/skills/gateguard/SKILL.md+++ b/skills/gateguard/SKILL.md@@@ -179,7 -183,7 +183,8 @@@ Condensed denials (after `GATEGUARD_FACone-line hint for the same class. For code targets the hint names the samequestions as the full denial, one short phrase each; an Edit whose changecannot be read keeps the fixed hint (importers/callers, affected API, data--schemas if any). Besides the message text, the class only++schemas if any) when the external-contract question is off. Opting in adds++its external-contract phrase. Besides the message text, the class onlydecides [sibling collapse](#same-turn-sibling-creation-collapse): which filesmay collapse, and that a sibling must share the first file's class.diff --cc tests/hooks/gateguard-fact-force.test.jsindex 211f74a2d,7a17ac150..f4ec8c0f3--- a/tests/hooks/gateguard-fact-force.test.js+++ b/tests/hooks/gateguard-fact-force.test.js@@@ -66,6 -66,6 +66,7 @@@ function runHook(input, env = {})encoding: 'utf8',env: {...process.env,++ GATEGUARD_EXTERNAL_CONTRACT_QUESTION: '',ECC_HOOK_PROFILE: 'standard',GATEGUARD_STATE_DIR: stateDir,CLAUDE_SESSION_ID: TEST_SESSION_ID,@@@ -89,6 -89,6 +90,7 @@@ function runBashHook(input, env = {})encoding: 'utf8',env: {...process.env,++ GATEGUARD_EXTERNAL_CONTRACT_QUESTION: '',ECC_HOOK_PROFILE: 'standard',GATEGUARD_STATE_DIR: stateDir,CLAUDE_SESSION_ID: TEST_SESSION_ID,@@@ -120,6 -120,6 +122,7 @@@ function runPowerShellHook(input, envencoding: 'utf8',env: {...process.env,++ GATEGUARD_EXTERNAL_CONTRACT_QUESTION: '',ECC_HOOK_PROFILE: 'standard',GATEGUARD_STATE_DIR: stateDir,CLAUDE_SESSION_ID: TEST_SESSION_ID,