Context
ADR-0034 §2.3 item 10 declares the setup card's wire. For a host effect it reads setupEffect({effectId}) → {ok: true, evaluation} (learn/agentos/decisions/0034-electron-shell-architecture.md:298). The Institution's setup card needs one more consent on that request, and its broker's reply rule changed. Both planners accepted this leaf on 2026-10-04 (gap line), with one condition from the row's design seat: this clause lands with or before the Brain's row contract (neomjs/neo-agent-brain#840), never after.
The Problem
- The witness has an exit the wire cannot carry. The Brain's
verify effect writes its first-run witness once. After a write the plane refused, or an acknowledgement that was lost and not found again, only the operator's explicit newAttempt writes a second time. The declared request has no field for it, so the card's run on such a row can never succeed (intake and probe).
- The reply rule is not stated. The item says when the shell answers
{ok: true, evaluation}; it does not say what a report from the orchestration does to the reply. The broker's rule is now: an effect whose own receipt moved answers the re-evaluated run, and only a report that moved nothing is a refusal (neomjs/neo-agent-institution#481).
The Architectural Reality
- The request is one consented host effect through the Brain's shared orchestration; main forwards it and never implements an effect itself.
newAttempt is the orchestration's own parameter (performEffects, performVerify); the wire would forward it, not invent it.
- The sibling clause for a fresh run is neomjs/neo#19382, parked with its consumer.
- ADR 0005 §6.5: an ADR revision is its own PR, ahead of the implementation.
The Fix
Amend item 10's setupEffect clause:
- the request is
setupEffect({effectId, newAttempt}); newAttempt: true is admitted only for effectId: 'verify' and only when the evaluated row names a new attempt as its exit; anything else is refused by name;
- it is forwarded as the operator's explicit consent, and a possible duplicate row is the consent's stated cost;
- the reply rule: an effect that ran answers
{ok: true, evaluation} whatever came of it; a report that moved nothing answers {ok: false, reason, effectId}.
Acceptance Criteria
Out of Scope
- The fresh-run flag (neomjs/neo#19382).
- Any behaviour: the Brain's contract is neomjs/neo-agent-brain#840 and the card's consumer is its own Institution leaf.
Related
neomjs/neo-agent-institution#351 · neomjs/neo-agent-institution#481 · neomjs/neo-agent-brain#840 · neomjs/neo#19382 · neomjs/neo#19377 (the same item's wired-effect text, merged)
Sweeps (2026-10-04):
- Live latest-open sweep: the latest 12 open issues here, created-descending, read at 12:40Z (#19392 … #19147), and org-wide searches for
setupEffect and newAttempt. The only neighbour is #19382, another clause of the same item.
- A2A: the #481 thread and both planners' messages today; no competing claim.
- Memory Core: one summaries query returned nothing relevant; the decision record is the #481 thread.
- Own-assignment: #19382 read; it concerns
setupEvaluate's fresh.
- Structure map: N/A, one existing decision record.
Decision Record impact: amends ADR 0034.
Origin Session ID: 577754b6-3d27-48f5-911a-434605a54220
Retrieval Hint: "ADR-0034 item 10 setupEffect newAttempt verify witness reply rule an effect that ran answers the run"
Context
ADR-0034 §2.3 item 10 declares the setup card's wire. For a host effect it reads
setupEffect({effectId})→{ok: true, evaluation}(learn/agentos/decisions/0034-electron-shell-architecture.md:298). The Institution's setup card needs one more consent on that request, and its broker's reply rule changed. Both planners accepted this leaf on 2026-10-04 (gap line), with one condition from the row's design seat: this clause lands with or before the Brain's row contract (neomjs/neo-agent-brain#840), never after.The Problem
verifyeffect writes its first-run witness once. After a write the plane refused, or an acknowledgement that was lost and not found again, only the operator's explicitnewAttemptwrites a second time. The declared request has no field for it, so the card'srunon such a row can never succeed (intake and probe).{ok: true, evaluation}; it does not say what a report from the orchestration does to the reply. The broker's rule is now: an effect whose own receipt moved answers the re-evaluated run, and only a report that moved nothing is a refusal (neomjs/neo-agent-institution#481).The Architectural Reality
newAttemptis the orchestration's own parameter (performEffects,performVerify); the wire would forward it, not invent it.The Fix
Amend item 10's
setupEffectclause:setupEffect({effectId, newAttempt});newAttempt: trueis admitted only foreffectId: 'verify'and only when the evaluated row names a new attempt as its exit; anything else is refused by name;{ok: true, evaluation}whatever came of it; a report that moved nothing answers{ok: false, reason, effectId}.Acceptance Criteria
newAttempt, its refusal, and what the consent costs.Out of Scope
Related
neomjs/neo-agent-institution#351 · neomjs/neo-agent-institution#481 · neomjs/neo-agent-brain#840 · neomjs/neo#19382 · neomjs/neo#19377 (the same item's wired-effect text, merged)
Sweeps (2026-10-04):
setupEffectandnewAttempt. The only neighbour is #19382, another clause of the same item.setupEvaluate'sfresh.Decision Record impact:
amends ADR 0034.Origin Session ID: 577754b6-3d27-48f5-911a-434605a54220 Retrieval Hint: "ADR-0034 item 10 setupEffect newAttempt verify witness reply rule an effect that ran answers the run"