Skip to content

fix(adapters): make case C2 fail closed on delegation - #61

Merged
raandree merged 5 commits into
mainfrom
ai/c2-fail-closed
Nov 14, 2026
Merged

raandree merged 5 commits into
mainfrom
ai/c2-fail-closed

Conversation

@raandree

Copy link
Copy Markdown
Owner

Brief 17: case C2 of the client adapter fails closed on delegation. It
takes up what the re-review of #57 found (R04-01, R04-07, RR04-01,
RR04-02). Option 1, decided under the owner's delegation: C2 fails
while any delegation tool is offered to the VS Code client, whatever
the runtime warns, until a later change can show the bound.

  • One test helper, Get-ClientAdapterCaseVerdict in
    tests/Helpers/ClientAdapterCase.ps1, decides C1 and C2 for each
    run on a runtime and, on every CI leg, for the Observation that
    each committed receipt now records. The branch that demanded task
    is gone, the agent-host runtime gets an allow-list of offered tools
    as the Copilot CLI has, and the suite accepts no load warning but
    the expected notice, matched in full.
  • Get-CopilotAtelierClientAdapter reports RuntimeVerified only
    while every case of the bound receipt passed, read exactly.
  • No client gains or loses a claim: the Copilot CLI stays
    RuntimeVerified (C1 to C3), the VS Code client
    StructurallyChecked.

Validation: every new test failed first for its stated reason, and
every reviewer mutant is caught without the runtimes. The runtime
cases reproduced both receipts on runtime 1.0.108-0 and Copilot CLI
1.0.96. The full gate before the last wording and Memory Bank commits
passed 5,893 tests, 0 failed, 145 skipped, coverage 91.61 %; the
adapter suites after them 156 passed. Review: Approve with changes
(1 Minor, 3 Nit), re-review Approve, a check of the Nit round Approve;
all fixed.

Limits: a receipt edited together with its Observation passes every
test that runs without the runtimes (consistency, not provenance); the
bound of delegation itself stays unshown; the allow-lists cover
software-engineer only.

Rebased onto main unchanged: the tree is identical to the brief's
recorded tip.

Co-authored-by: AI Assistant ai@example.com
Co-authored-by: Copilot 223556219+Copilot@users.noreply.github.com

raandree and others added 5 commits November 14, 2026 21:51
C2 counted the delegation the agent-host runtime offers the VS Code client
as unbounded only while that runtime warned that it ignores agents:, and a
runtime that withheld delegation failed the suite on a missing task
(RR04-01, R04-01). Now one function, Get-ClientAdapterCaseVerdict in
tests/Helpers/ClientAdapterCase.ps1, decides C1 and C2: C2 fails while any
delegation tool is offered to that client, the agent-host runtime gets an
allow-list of offered tools, as the Copilot CLI has, and the suite fails on
every load warning it does not expect (R04-07). Both receipts now record
their run's observation, so a unit test decides every runtime case again
without a runtime, and a receipt edited to a pass its own observation
refutes fails on every system. docs/client-adapter-evals.md no longer says
that a model bump retires the Copilot CLI receipt (RR04-02).

Co-authored-by: AI Assistant <ai@example.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…led case

Settle the review of 4ebf9fb (Approve with changes). R17-01: the resolver
raised RuntimeVerified on any passed runtime case, so the VS Code client
stayed StructurallyChecked only because C1 failed too. It now raises the
claim only while every case of the bound receipt passed, and only an
outcome of exactly Passed counts; VerifiedCase still lists the passed cases.
R17-02: the helper matches the whole notice of ignored fields, case-
sensitively and with at least one field name, so other text before it, or
an empty list of names, is a warning the suite does not expect. R17-03: the
evaluation document names every check the suite requires. R17-04: the
model-bump pin checks the Copilot CLI variant whether or not a receipt is
bound, and each receipt only while it is bound.

Co-authored-by: AI Assistant <ai@example.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Settle the three Nits of the scoped re-review of f27784f. R17-05: the
receipt-shape test and the C3 check compared a receipt's kind and outcome
in any letter case, while the resolver reads them exactly, so a receipt
written with `passed` or `runtime` silently withdrew the Copilot CLI's
claim and no test failed; both checks are now exact. R17-06: the README and
the Added entry said the state falls back after any edit, but a model bump
leaves the Copilot CLI receipt bound; both now say which edit retires which
receipt. R17-07: the Fixed entry now describes the warning check on main.

Co-authored-by: AI Assistant <ai@example.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Take the two optional observations of the re-review of c8b22b7. On main,
other text after the notice failed the field check, so the Fixed entry now
says a warning of another kind passed as a warning of its own or before the
notice in the same string. The comment on the two loops that pick runtime
cases holds for letter case only, so it now says so.

Co-authored-by: AI Assistant <ai@example.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Brief 17 is done on ai/c2-fail-closed: C2 fails closed on delegation, one
helper decides C1 and C2 for each run and each receipt's recorded
Observation, and RuntimeVerified needs every case of a bound receipt to
pass. Full gate on c8b22b7: 5,893 passed, 0 failed, 145 skipped, coverage
91.61 %. Decision record 0026 states the new claim rule in its superseded
paragraph; systemPatterns records that a claim needs every recorded case to
pass, read exactly; the oldest milestone and previous focus are curated.

Co-authored-by: AI Assistant <ai@example.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@raandree
raandree merged commit f3f41ec into main Nov 14, 2026
10 checks passed
@raandree
raandree deleted the ai/c2-fail-closed branch November 16, 2026 21:39
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.

1 participant