Skip to content

fix(acl): a peer may ask a seat for a slot — persona/placement/reserve is a Provisional-tier verb like the generate it precedes - #4215

Merged
joelteply merged 1 commit into
canaryfrom
fix/a-peer-may-ask-a-seat-for-a-slot
Sep 19, 2026
Merged

joelteply merged 1 commit into
canaryfrom
fix/a-peer-may-ask-a-seat-for-a-slot

Conversation

@joelteply

@joelteply joelteply commented Sep 19, 2026 •

Copy link
Copy Markdown
Contributor

Summary

The last link of S1b. At 03:45:24Z the first reservation asks reached the 5090 on the fixed wire and the seat refused them by policy: routing.acl.refused path=persona/placement/reserve trust=Provisional had_capabilities=false — the verb fell to the ""=Owner wildcard while ai/generate has its Provisional rule. Every spill and return was refused, fail-closed (correct), so the lease could never grant.

One rule beside ai/generate: the exact verb persona/placement/reserve at Provisional. It commits one slot for one cooldown, bounded by the seat's own ledger; persona/instances/hold, persona/spawn, persona/instances/despawn stay Owner — the test pins both halves.

Pushed unbuilt (no cargo on the serving node); CI is the build.

Carries (Cormac's read): issue_grant has zero production callers on 1d2ae5f — a presented capability grant was never an available fix; the acl policy row is what ai/generate actually rides, so the row is the right seam. In the test's deny list, persona/placement is not a command name (the other three are) — that entry proves only the ""=Owner wildcard; the three real roster verbs are the pinned half.

Test plan

  • a_peer_may_ask_a_seat_for_a_slot_but_may_not_touch_its_roster
  • CI: grid_trust_policy + acl tests
  • live: placement.return.leased / placement.spill.leased on the M5 with the seat's numbers; airc.command.accepted → completed outcome=ok for the verb on the 5090

🤖 Generated with Claude Code

https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

…e is a Provisional-tier verb like the generate it precedes

The last link of S1b (card c84d885a). Measured 2026-09-19 03:45:24Z, the first reservation
asks to reach the 5090 on the fixed wire (#4210): six asks from the M5 (80f28992) accepted at
the seat, then `routing.acl.refused path=persona/placement/reserve trust=Provisional
caller_source=Airc had_capabilities=false` — the verb fell to the ""=Owner wildcard in
modules/grid/acl.rs while `ai/generate` has its Provisional rule. So no node could ever be
GRANTED a slot: every spill and every return refused, fail-closed (correctly — nobody moved
blind), and the lease was a wall.

One rule beside ai/generate: exact verb `persona/placement/reserve` at Provisional. It commits
one slot for one cooldown, bounded by the seat's own ledger, and mutates no data; its persona/
siblings that change who a node hosts (instances/hold, spawn, despawn) stay Owner — the test
pins both halves.

Pushed unbuilt (no cargo on the serving node); CI is the build. Live receipt after it reaches
the seats: placement.return.leased / placement.spill.leased with the seat's numbers on the
requester, airc.command.accepted → completed outcome=ok for the verb on the seat.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
@joelteply

Copy link
Copy Markdown
Contributor Author

APPROVE — reviewed at exact head e7c37ac; merge on CI green (pushed unbuilt, so CI is the first build).

Checked, not read:

  • The refusal is exactly what this fixes: persona/placement/reserve declares access: Privileged (placement_reserve.rs:43) → Trusted; a grid peer is Provisional; is_command_authorized (acl.rs:168) refuses; grid_trust_policy.rs:289 emits the routing.acl.refused row BigMama quoted. The new rule is the sibling of the ai/generate rule in the same table, same reasoning ("admitted by policy, not a manual elevation").
  • The rule is the exact verb. command_access_level matches by starts_with after a longest-prefix sort, so persona/placement (the family) and every roster verb still fall to the Owner wildcard — and the test pins that.
  • Mutation by reading: remove the rule → Privileged → Trusted → the airc caller is Forbidden → the first assert fails. The test bites.
  • Three of the four deny names are real commands (persona/instances/hold, persona/spawn, persona/instances/despawn each have a name: in commands/). persona/placement has none — that entry proves the wildcard, not a verb. Not a block; a note so nobody reads it as covering a real command.
  • "Attach the grant" (BigMama's option a) is not a fix available today: routing::grant_issuance::issue_grant has zero production callers on 1d2ae5f — only its own file and the command_handler test's signed_grant_header. Nothing mints one. The policy row is the mechanism ai/generate actually rides; this matches it.

Receipt to look for on the seat after it deploys there: placement.reserve.decided rows (granted OR refused with the seat's own reason) and zero routing.acl.refused for the path; on the askers, placement.return.leased / placement.return.refused carrying a seat reason, never "forbidden".

@joelteply
joelteply enabled auto-merge (squash) September 19, 2026 03:49
@joelteply
joelteply merged commit ff5b966 into canary Sep 19, 2026
6 checks passed
@joelteply
joelteply deleted the fix/a-peer-may-ask-a-seat-for-a-slot branch September 19, 2026 04:07
joelteply added a commit that referenced this pull request Sep 19, 2026
…by any mind until the backoff passes — per peer, expiring by time (#4217)

* fix(placement): a seat that faulted a reserve ask is not asked again by any mind until the backoff passes — the fault is the seat's, keyed per peer, expiring by time

Measured 2026-09-19 04:26–04:50Z (Cormac's count, confirmed here: 72 asks, 12 per mind):
five M5 minds re-asked the 5090 for a slot every placement tick through a policy
refusal ("forbidden: no policy grants access to persona/placement/reserve" — the
pre-#4215 seat). ~6 asks/min into the seat everyone queues on, each an ACL evaluation
there; and when the seat was silent, a 30 s RESERVE_DEADLINE wait here per mind per
tick, holding the switch. `Stay` on refusal left no memory, so the next tick asked again.

A faulted ask — refused by policy, not routed, unanswered within the deadline — is a
property of the SEAT, not of the mind that asked. Key the backoff by peer (one row for
all five minds), length MOVE_COOLDOWN_MS (the same hysteresis a move gets), expiring by
time (its own mirror — forbidden move 11). A capacity refusal (`granted: false`) is the
seat's honest "not this tick" and is not a fault: it re-asks next tick, because the
seat's ledger changes every turn. Probe `placement.reserve.backoff` names the fault.

Pure `ask_backoff_remaining` / `note_ask_fault` over the map, tested; `request_reservation`
gates on them and the wire ask moved to `send_reservation_ask` unchanged.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

* chore(placement): the two backoff-map lock sites carry their same-line reason — the unwrap ratchet has zero slack (Cormac's condition on #4217)

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

* fix(placement): the backoff-map guards live in their own blocks — a std MutexGuard in scope across the wire await made request_reservation's future !Send (CI on #4217)

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

---------

Co-authored-by: Claude Fable 5.1 <[email protected]>
@joelteply
joelteply restored the fix/a-peer-may-ask-a-seat-for-a-slot branch October 17, 2026 09:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant