carlos / platform Public

census: agent login by link (pending-login file units)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 70e21ec7ee8732909e194ad7c4afef81c7d43a0f parent eadbf50
3 files changed, +25 −0
  • docs/superpowers/notes/census-proposal-agent-login-link.md +16 −0
  • internal/provision/testdata/plan14-root-reads-agent-login-link.tsv +8 −0
  • internal/provision/testdata/plan14-root-reads-chain.tsv +1 −0

CI cancelled — superseded by a newer push — run details

diff --git a/docs/superpowers/notes/census-proposal-agent-login-link.md b/docs/superpowers/notes/census-proposal-agent-login-link.md
new file mode 100644
index 000000000..6a6492a2d
--- /dev/null
+++ b/docs/superpowers/notes/census-proposal-agent-login-link.md
@@ -0,0 +1,16 @@
+# Census approval: agent-login-link
+
+Ruling `census-ruling-agent-login-link`. The independent reviewer approves or rejects every change below, 2 with a new disposition; nothing goes to the census owner (Paul, #280, 2026-10-26).
+
+Envelopes re-pinned: `.`.
+
+Review: a model from the other family than the author reads the branch's diff against main on the amadan.net remote (`origin` or `amadan`, whichever points at amadan.net) and gives a verdict for every unit and every re-pinned envelope above. For a unit, compare the change with its recorded disposition and basis below; for an envelope, read every changed function in the package and what it reaches. Reject if the change lets root open, run, query or follow anything it did not before from a path or input a tenant, an app or a box agent can create, write or name; if it weakens a check, refusal, validation, argument or environment the basis relies on; or if the diff cannot settle either. Otherwise approve. Record each verdict on #280 with the tip. A rejected unit goes back to the author to correct; nothing escalates to the census owner.
+
+New dispositions, which census-propose wrote and the reviewer checks against the unit's reads and the diff:
+
+- new `authpending.go:loadPendingLogin`: reads +file:ReadFile; written legacy, accepted-legacy, frozen
+- new `authpending.go:savePendingLogin`: reads +file:CreateTemp; written legacy, accepted-legacy, frozen
+
+Seal: `7247af7f4de84593d83c6f60c0147d0a04836146197dd60c2ed2bf78919cad22` → `9944dce822df78788311010be7588442fac40854df220322c674d17623da4872`.
+
+Overlay: `internal/provision/testdata/plan14-root-reads-agent-login-link.tsv`, appended to `internal/provision/testdata/plan14-root-reads-chain.tsv`.
diff --git a/internal/provision/testdata/plan14-root-reads-agent-login-link.tsv b/internal/provision/testdata/plan14-root-reads-agent-login-link.tsv
new file mode 100644
index 000000000..54006cc3f
--- /dev/null
+++ b/internal/provision/testdata/plan14-root-reads-agent-login-link.tsv
@@ -0,0 +1,8 @@
+# Census overlay agent-login-link, written by census-propose (#369). census-ruling-agent-login-link, approved on #280 before the merge; the approval card is docs/superpowers/notes/census-proposal-agent-login-link.md.
+# 0 body, 0 sites, 1 envelope: each changed unit re-frozen at its existing disposition with its claim appended.
+# 2 new dispositions: 0 reads re-frozen at their disposition with the claim, 2 new units frozen accepted-legacy, 0 quiet units retired while they read nothing, 0 other.
+@legacy 1880f36398070fb7ed9e65e0d8ec2789589333932bab030257110abbf7d59d4e authpending.go loadPendingLogin legacy accepted-legacy accepted-legacy;rev3=census-ruling-agent-login-link;basis=new: reads the CLI pending-login file (~/.carlos/login-pending, or beside CARLOS_CREDENTIALS) for carlos auth login --wait; user-run CLI path, same directory and pattern as loadCredentials file:ReadFile@62 0bdf459aa64daa912a3b5868274c2895fffaf30053fc74ebc26c64804bcaa237
+@legacy 7613f3ee2e0aacd22a8db9b5ac7ed72b6027433626907ea4795541d357be69d9 authpending.go savePendingLogin legacy accepted-legacy accepted-legacy;rev3=census-ruling-agent-login-link;basis=new: writes the CLI pending-login file atomically (CreateTemp + chmod 0600 + rename) beside the credentials file for carlos auth login --no-wait; same pattern as credentialFile.save file:CreateTemp@285 09c49b8f245e5d3df407bcf0cadcdef55a795d380260478ce1ece79f79da1dbc
+authpending.go loadPendingLogin legacy accepted-legacy accepted-legacy;rev3=census-ruling-agent-login-link;basis=new: reads the CLI pending-login file (~/.carlos/login-pending, or beside CARLOS_CREDENTIALS) for carlos auth login --wait; user-run CLI path, same directory and pattern as loadCredentials file:ReadFile@62 0bdf459aa64daa912a3b5868274c2895fffaf30053fc74ebc26c64804bcaa237
+authpending.go savePendingLogin legacy accepted-legacy accepted-legacy;rev3=census-ruling-agent-login-link;basis=new: writes the CLI pending-login file atomically (CreateTemp + chmod 0600 + rename) beside the credentials file for carlos auth login --no-wait; same pattern as credentialFile.save file:CreateTemp@285 09c49b8f245e5d3df407bcf0cadcdef55a795d380260478ce1ece79f79da1dbc
+@coverage . 4d727f747625c03880109ce4414644027b470c903fdee5342bbd75cf02c07c6d
diff --git a/internal/provision/testdata/plan14-root-reads-chain.tsv b/internal/provision/testdata/plan14-root-reads-chain.tsv
index 0a8131daf..e26c2bc57 100644
--- a/internal/provision/testdata/plan14-root-reads-chain.tsv
+++ b/internal/provision/testdata/plan14-root-reads-chain.tsv
@@ -118,3 +118,4 @@ plan14-root-reads-claim-ux-edge.tsv 889ce9f72f93b581b29527e5c5d4410b47732424ce8c
plan14-root-reads-region-ha-g3-fixes.tsv cd001bf3a9a8871f12d1ca9cfa0a925760c1fc345dc911246ffaabc235dfabf6
plan14-root-reads-claim-countdown.tsv 5b31785441c6a48ddae93e9f3c0f8962f7983b55d89b3acb90d9a6b505647b36
plan14-root-reads-region-ha-dr2.tsv 7247af7f4de84593d83c6f60c0147d0a04836146197dd60c2ed2bf78919cad22
+plan14-root-reads-agent-login-link.tsv 9944dce822df78788311010be7588442fac40854df220322c674d17623da4872