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
Commit dde5930
Browse filesBrowse the repository at this point in the historyBrowse files
hzq
committed
Fence node authority until policy writes are confirmed
Verify policy data and its audit entry before updating live node authority. Suspend new work and reconnects during uncertain commits, then recover by reading the original write without replaying it.
Copy file name to clipboardExpand all lines: docs/protocol.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -400,6 +400,8 @@ Enrollment through `POST /v1/nodes/enroll` or the `node`-scope path of `POST /v1
400
400
-`POST /v1/nodes/{id}/revoke`: terminally remove this identity's trust, including connections that passed HTTP upgrade but have not sent their hello yet. Future joins are rejected; active executors reject pending calls and ignore later frames before asynchronous socket closure. An in-flight write/native operation with no confirmed result remains uncertain and requires reconciliation. Repeating the same policy is idempotent; a revoked identity cannot be resumed or re-enrolled. Review and enroll a new identity when replacement is intended.
401
401
-`GET /v1/nodes/{id}/history?after=0&limit=50`: owner-scoped policy audit, maximum 100 entries per page. Policy and audit commit in one transaction before dispatch authority changes. A failed audit write does not revoke or pause the node.
402
402
403
+
If the policy transaction cannot be confirmed, both node views report `policy_confirmed: false`; registrations retain the last confirmed state, and the live inventory reports `accepting: false`, not `drained: true`. The gateway holds new dispatch and node handshakes while it checks both the policy and the audit entry, without repeating the write. It applies the new state after proving commit and lifts the temporary restriction after proving rollback.
404
+
403
405
The synthetic local worker is protected from these remote credential controls. Use its existing local execution settings or gateway lifecycle instead. Native backend configuration files and node credential files are not rewritten by a policy operation. A config-file credential is still denied by its persisted revocation after restart. Duplicate credential identities and attempts to assign a retained identity to another owner fail closed at startup.
404
406
405
407
The console exposes pause/resume/revoke controls and retains offline/revoked rows. CLI equivalents are `oaa nodes`, `oaa node drain NODE`, `oaa node resume NODE`, `oaa node revoke NODE`, and `oaa node history NODE`; `oaa resume RESPONSE_ID` resumes a confirmed kernel checkpoint. No node-management MCP tool is exposed to task-calling agents. The updated worker stops retrying after an HTTP 401/403 handshake denial; older workers may retry but remain rejected.
0 commit comments