You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[observation] ADR-0058 expression-surface ratchet discovers surfaces by schema-name text — any slot narrowed onto its own schema silently drops out of the scan #7438
domain:cliRetired 2026-10-22, alias of domain:server (cli surface); in-flight cards keep it until they landfindingRecorded observation — held, not dispatchable until the findings triage round grades it
Observation-class record from #7327's implementation (PR #7387), filed by the dispatching PM so it is not lost to session memory. The dev's own words carry the finding; this card records it for triage grading.
The fragility
packages/qa/dogfood/test/expression-conformance.test.ts (the ADR-0058 expression-surface ratchet) discovers governed surfaces by textually matching <key>: ExpressionInputSchema in schema sources. Consequence, measured live on PR #7387's first push: narrowing settings-manifest.zod.ts's two visible slots onto their own module-private schema (SettingsVisibilityInputSchema) made them drop out of discovery entirely — a live predicate surface silently leaving the ledger, i.e. the #1887 class that ledger exists to catch. Caught only because the stale ledger entry turned Dogfood Regression Gate (3/3) red.
Discovery now reads a registered schema-name list instead of one hardcoded name, and the trap is written down in both the test and the ledger header. That converts the failure from "silent drop" to "remember to register" — better, still fragile by construction: any future slot narrowed onto its own schema stays invisible unless someone registers it, and nothing fails if they don't (the stale-cover check fires only when an EXISTING entry goes stale, not when a surface never enters).
The structural fix (not attempted — larger than #7327's card)
Discover by resolved type rather than by identifier text — e.g. walk the exported schemas and detect "accepts the ExpressionInput envelope shape (or a narrowing of it)" structurally. That makes registration automatic and the ratchet complete by construction.
The settings-visibility ledger row + ExprDialect member added there
Filed unlabeled and unassigned for triage per the filing discipline. Dedup: open-issue search for expression-conformance discovery / ADR-0058 ratchet / ExpressionInputSchema textual returns nothing covering the discovery mechanism itself.
Classification: observation-class, exactly as self-filed — a structural fragility in gate discovery, with nothing dropped on main today. One factual correction to the card: PR feat(spec): declare the settings visible grammar the evaluator actually implements (#7327) #7387 is still open at triage time (not merged), so the "mitigation already landed" section is in-flight, not on origin/main. Verified on b948a41: packages/qa/dogfood/test/expression-conformance.test.ts:37 still discovers surfaces by the single hardcoded textual match (<key>: ExpressionInputSchema), and SettingsVisibilityInputSchema does not exist in packages/spec/src yet — both the narrowing that triggers the drop and the registered-list mitigation arrive with that PR. Re-verify this card's premises at the merged ref once feat(spec): declare the settings visible grammar the evaluator actually implements (#7327) #7387 lands (the unlock-moment rule: the merge that changes this file face is exactly the one to re-read).
Re-verified @ origin/main333769d: discovery still runs on the registered name list (packages/qa/dogfood/test/expression-conformance.test.ts:42, two entries) — the PR #7387 mitigation is live, the structural fix (resolved-type discovery) is not attempted, and the residual risk is unchanged: a future slot narrowed onto its own schema stays invisible unless registered, with nothing failing if it isn't. Nothing red today; held until someone takes the structural discovery as a scoped card.
Re-verified @ origin/main8dd98bf: discovery still runs on the registered name list — packages/qa/dogfood/test/expression-conformance.test.ts:42, EXPRESSION_INPUT_SCHEMAS = ['ExpressionInputSchema', 'SettingsVisibilityInputSchema'], two entries. The #7387 mitigation (register-the-name) is live; the structural fix (resolved-type discovery) remains unattempted, so the residual risk is unchanged: a future slot narrowed onto its own module-private schema silently leaves the scan unless someone remembers to register it, and nothing fails when they don't. Nothing red today.
Findings triage round, 2026-08-11 (maintainer-directed). Graded: hold — the fragility is real but mitigated in PR #7387 (the stale-ledger red caught the live drop), and a structural fix means changing how the ratchet discovers surfaces. Restart: the next narrowing that silently drops a surface, or any planned ADR-0058 ratchet rework.
Mitigation landed in PR #7387 and is live (EXPRESSION_INPUT_SCHEMAS registration list + regex discovery, unchanged); the residual is "remember to register a future schema", held four times across two days with no pull and nothing red on main. A second silent-drop event would produce a better-informed fresh card than this one.
domain:cliRetired 2026-10-22, alias of domain:server (cli surface); in-flight cards keep it until they landfindingRecorded observation — held, not dispatchable until the findings triage round grades it
Activity
claude commentedon Aug 10, 2026
Triage:
finding+domain:cli(held, not queued).visiblegrammar the evaluator actually implements (#7327) #7387 is still open at triage time (not merged), so the "mitigation already landed" section is in-flight, not onorigin/main. Verified onb948a41:packages/qa/dogfood/test/expression-conformance.test.ts:37still discovers surfaces by the single hardcoded textual match (<key>: ExpressionInputSchema), andSettingsVisibilityInputSchemadoes not exist inpackages/spec/srcyet — both the narrowing that triggers the drop and the registered-list mitigation arrive with that PR. Re-verify this card's premises at the merged ref once feat(spec): declare the settingsvisiblegrammar the evaluator actually implements (#7327) #7387 lands (the unlock-moment rule: the merge that changes this file face is exactly the one to re-read).visiblegrammar the evaluator actually implements (#7327) #7387: "remember to register" — a future slot narrowed onto its own schema stays invisible unless registered, and nothing fails when it isn't (the stale-cover check fires only for existing entries). The structural fix (discover by resolved type / envelope shape) is real work larger than Narrow the settings-manifestvisibledeclaration to the grammar the save-time evaluator actually implements (#7169 alignment half, measured 1-vs-93) #7327's card, correctly not attempted there.packages/qa⇒domain:cli(qa is a cli-row package).visibledeclaration to the grammar the save-time evaluator actually implements (#7169 alignment half, measured 1-vs-93) #7327 (parent card, PR feat(spec): declare the settingsvisiblegrammar the evaluator actually implements (#7327) #7387 in flight) covers the mitigation, not the discovery mechanism. Clean.本评论来自分诊座位 Routine(#5474 试点),不构成认领。
Generated by Claude Code
claude commentedon Aug 10, 2026
Findings triage: HOLD.
Re-verified @
origin/main333769d: discovery still runs on the registered name list (packages/qa/dogfood/test/expression-conformance.test.ts:42, two entries) — the PR #7387 mitigation is live, the structural fix (resolved-type discovery) is not attempted, and the residual risk is unchanged: a future slot narrowed onto its own schema stays invisible unless registered, with nothing failing if it isn't. Nothing red today; held until someone takes the structural discovery as a scoped card.本评论来自分诊座位 Routine(#5474 试点),不构成认领。
Generated by Claude Code
os-zhuang commentedon Aug 11, 2026
Findings triage: HOLD.
Re-verified @
origin/main8dd98bf: discovery still runs on the registered name list —packages/qa/dogfood/test/expression-conformance.test.ts:42,EXPRESSION_INPUT_SCHEMAS = ['ExpressionInputSchema', 'SettingsVisibilityInputSchema'], two entries. The #7387 mitigation (register-the-name) is live; the structural fix (resolved-type discovery) remains unattempted, so the residual risk is unchanged: a future slot narrowed onto its own module-private schema silently leaves the scan unless someone remembers to register it, and nothing fails when they don't. Nothing red today.本评论来自分诊座位 Routine(#5474 试点),不构成认领。
Generated by Claude Code
os-zhuang commentedon Aug 11, 2026
Findings triage round, 2026-08-11 (maintainer-directed). Graded: hold — the fragility is real but mitigated in PR #7387 (the stale-ledger red caught the live drop), and a structural fix means changing how the ratchet discovers surfaces. Restart: the next narrowing that silently drops a surface, or any planned ADR-0058 ratchet rework.
Generated by Claude Code
hotlong commentedon Aug 12, 2026
Finding-grading round: closed, not planned.
Mitigation landed in PR #7387 and is live (
EXPRESSION_INPUT_SCHEMASregistration list + regex discovery, unchanged); the residual is "remember to register a future schema", held four times across two days with no pull and nothing red on main. A second silent-drop event would produce a better-informed fresh card than this one.Generated by Claude Code