Repository navigation
Done
Labels
Description
Follow-ups from the last review of #2984, the broker's audit write order. None of them blocks it. Line references are at 00ae95c, in docs/drafts/agent-identity/.
The 503 repeat rule
-
implementation.md:300still keys the rule on "previous open of that host session". Likecredentials-and-lifecycle.md:326and:956, it should key on the verified owner, whichever host session each open used, with schedule setup and renewal counting too. -
credentials-and-lifecycle.md:326names what keeps the window (token_used) and what ends it (a successful open). It should also say what other failures do, and whether a successful schedule setup or renewal ends it. - The write-order rows for session open and for schedule setup (
audit.md:132,:136) should point to the 503 exception on a repeat. - A client cannot tell this 503 from any other
identity_broker_unavailable: the code is the same and the body has no cause. Replace the cause-specific advice with one rule a client can follow: after a 503 on an open that presented a token, refresh the token before retrying.
The deleted-host-session mark
- Step (3) should list the refusal of a new broker session for a deleted host session (
credentials-and-lifecycle.md:342) in its broker checks, its failure table, and the HTTP mapping. feat(identitybroker): record who acted, for whom, and what was decided #2985 answers 401 when the open presents a token and 404 when it does not. - Name the bound feat(identitybroker): record who acted, for whom, and what was decided #2985 uses (5 minutes, longer than the longest open holds its host session's lock). Say that the mark is per replica and best effort, as the 503 window is.
- Say that the mark is also set when a scheduled run ends, as feat(identitybroker): record who acted, for whom, and what was decided #2985 does.
- The failure-matrix row at
:926("A new session opens on Alice's next request") does not hold while the mark lasts. - Decide whether to key the mark on host session and the deleted incarnation, so it can never block a re-create. Only the scheduler creates with an explicit ID today, so a re-create within the window cannot happen yet. The code side is in the matching implementation ticket.
Outcomes table
- The ID-JAG issuance row (
audit.md:57) allowsdenied"when a broker check refused it". Broker checks run before AS-1 and are recorded as a denied decision, so no ID-JAG record exists for them.deniedshould cover AS-1's refusal only. - The Decision row's
errorfor a record that was not accepted reads as if the decision record carries it. Peraudit.md:61, the superseding refusal does. Reword the row.
Activity
docs(agent-identity): answer 404 only when the session is gone
docs(agent-identity): a session closed during the conversion answers 503
docs(agent-identity): carry the create exception and retry rule every…