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
Leaving development mode retires what the development seed issued (follow-up to #34717) #35184
Follow-up to #34717 (ruling item 3 of its maintainer ruling).
The rule. When a deployment leaves development mode, nothing the development seed issued keeps acting for an account that carries the development seed stamp. At boot outside development mode, the platform retires those accounts' sessions, API keys and tokens. A revoked credential answers as revoked, and an operator-set credential is untouched.
Done when:
A boot outside development mode retires them.
A boot in development mode leaves them alone.
Accounts without the stamp are unaffected.
Pins on the real engine, ablated red and then restored.
The docs at the self-hosting production checklist state the rule.
First touch: p2 · domain:server · pm:queue. The maintainer ruled this item 3 of #34717 as a follow-up card while #34717 lands items 1–2, so it is not a queue jump. It belongs with the development-seed credential family on the security ledger.
Ruling-ref: maintainer 2026-11-21T22:3xZ, verbatim: 「按建议升」, on triage's third non-topic pass (about 10% of non-topic p2, the maintainer's ask: 「按照10% 的比例重新分析」) under the standard ruled 「同意」 today: this week, or someone loses.
2026-11-21T22:34Z · p2 → p1 on the maintainer's word: access possibly widened: credentials the development seed issued keep acting outside development mode. security#2 is asked to confirm the grade on the security table. Lane and state unchanged.
Claim: PM loop round 1
Session: session_01FEkQ5kt9AD1TPLy7Y9oa9D
Account: os-project-manager
Branch: claude/issue-35184-dev-seed-retire-at-boot
Worktree: objectstack-issue-35184
Domain: domain:server
Seat: repo:objectstack#4
Area: a4-E (released to it by the seat 2026-11-22T02:25Z)
File surface: packages/plugins/plugin-auth/src/** (boot-time retirement beside dev-seed-credential.ts / operator-password-reset.ts, wired from auth-plugin.ts, with its tests), content/docs/deployment/self-hosting.mdx (the rule), one new changeset (stop on breach; explain in the report)
Container & model: M, mode:subagent, model: default (dispatch-gates --tier: no path-derived mandate), effort: high (seat's order)
Clause-②: no (narrowing) — provisional, from the card content: sessions, API keys and tokens of seed-stamped accounts stop working at a boot outside development mode; the dev declares it from the diff
Metadata-protocol: none
Responsibility: platform code (@objectstack/plugin-auth, this repo) issues and honours the seed accounts' credentials | the platform path today is os user set-password, which ends them per account by hand | reached by any deployment booted outside development mode on a database os dev seeded
Thread-read: 7070277257
Premise: holds — on origin/main 48c732c nothing retires them at boot; self-hosting.mdx:635 still names this card as the open limit
Serial constraints cleared: overlap-check.mjs on a probe edit of dev-seed-credential.ts, auth-plugin.ts, operator-password-reset.ts, self-hosting.mdx against origin/main 48c732c: VERDICT clean (open #36173, #36145 share auth-plugin.ts, #35129 shares self-hosting.mdx; all merge cleanly)
Pre-claim lane: plugin-auth is domain:server; no governed path (dispatch-gates --tier: no path-derived mandate). Owner line on the card names the security seats; the seat released it to this area. Public card; no private detail is used or written.
Pre-claim deps: "Land it after #34717" — PR #34717 merged 2026-11-19 (b3247dd). No Blocked-by:.
Prior rulings read: check-prior-rulings.mjs --card 35184 --terms dev-seed,seed,session,revoke at 48c732c: 0 ruling comments on the card (near-miss 7070277257 is the p1 grade record). Governing text: the card's rule, which is item 3 of the maintainer's ruling recorded on PR #34717 (body and comment 7003790340: 「只合前两项:第三项另开一张跟进卡。」), and that PR's accepted secondary-storage reach (database-only for the CLI command, ruled A 2026-11-19). ADR-0069 D4 (session controls) read for the revocation vocabulary. No conflict.
{
"issue": 35184,
"status": "done",
"branch": "claude/issue-35184-dev-seed-retire-at-boot",
"pr": "https://github.com/objectstack-ai/objectstack/pull/36311",
"session": "session_01FEkQ5kt9AD1TPLy7Y9oa9D",
"premise_still_valid": true,
"summary": "New plugin-auth module dev-seed-credential-retirement.ts (retireDevSeedCredentials), wired as one kernel:ready hook in auth-plugin.ts (settles before kernel:listening, independent of registerRoutes). Outside development mode (isDevelopmentMode, NODE_ENV=development, the predicate of PR 34717) it does one indexed read for stamped accounts, keeps those whose seed credential is still in force (isDevSeedCredentialInForce), and per account reuses revokeSessionsAndApiKeys with better-auth's own adapter/plugin registry (sessions tombstoned and keys revoked with reason admin_password_reset; authorized apps, device codes, linked sign-in accounts, registered OAuth apps, minted SCIM credentials), ends outstanding reset tokens (endOutstandingResetTokens, rows plus cache entries), and ends sessions a host secondaryStorage holds (better-auth deleteUserSessions, read back). Fail closed: anything that did not land throws and the boot fails with one sentence naming accounts and remedy. Left, with reason: the password credential and stamp (refusals still answer; operator reset is the way out), sign-in links and one-time codes (they only open a session, which session.create.before refuses), one-time tokens (they hand over a retired session), SSO providers and second factor (every reset keeps them). Reading chosen: in-force stamp, not a non-null column, because the card's 'an operator-set credential is untouched' and the code's 'any password change stops it matching' exclude a stale stamp left by an administrator's set-user-password, and retiring on the column would end operator-era credentials at every restart (not idempotent). self-hosting.mdx states the rule in timeless wording (N4); changeset patch with BREAKING section and ADR-0087 not-required marker.",
"tests": "New dev-seed-credential-retirement.test.ts, 6 cases over two real ObjectKernel boots on one SQLite file (development seed, then production): stamped accounts' session resolves no user, key answers API_KEY_REVOKED at resolveApiKeyAdmission, reset links gone, revoke_reason admin_password_reset; admin-created control untouched; development second boot retires nothing; account re-passworded by setOperatorPassword and account re-passworded by the admin door's write both untouched, key minted after operator reset admitted; second production boot leaves tombstones unchanged and a rerun ends nothing; sys_api_key writes refused then boot fails naming account and os user set-password; shared secondaryStorage sessions ended. Runs: full plugin-auth suite on 8395b41853: 292 files passed, 6195 passed 10 skipped (VERDICT command-exit 0); on final head 9461451a9d: retirement + production + dev-seed-credential + first-session-membership-ordering 4 files 46 passed, then plugin-auth typecheck exit 0 (check:test-typecheck OK, no new debt). Ablation on 6d4477f415 via scripts/ablation-replace.mjs, one leg per wiring point, each red then restored (blob == HEAD, git diff HEAD empty, verified per leg): kernel:ready call skipped 4 red; dev-mode guard defeated 1 red; in-force filter removed 1 red; revocation replaced by empty outcome 2 red; reset-token end skipped 1 red; fail-closed throw skipped 1 red; secondary-storage arm skipped 1 red; control 6/6. Subject is in-package src imported directly, so no rebuild between mutation and run. A first ablation attempt was aborted mid-leg (overlapped a gate's full build) and restored by the tool's SIGTERM path (blob == HEAD); its reading is discarded and the full set re-run.",
"gates": "Local, on 9461451a9d: node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack derived 110; --ran with exit codes recorded: 110 derived, 107 run (all exit 0, captured before any pipe), 2 NOT MEASURED (exit 3 prerequisite: check:skill-examples needs client/client-react built; check:dual-build-cjs-loads needs every package built), 1 UNRUN (check:type-check-debt: its only local run overlapped an ablation leg with auth-plugin.ts mutated, reading discarded). Fixed on the way: check-adr-0087-registration (marker added), check-tenant-audit-census (plugin-auth shard regenerated), check:test-source-alias (module-top import of @objectstack/core/egress). CI on 9461451a9d at report time: Check Changeset, Lint (ESLint, repo & tooling, docs & code guards, CI/release/engine, PM dispatch-gates, scoped x3), Type Check (workspace, source gates, consumer gates, debt ledger), Governed Surface Queue Guard, PR-body guards, Spec property liveness, Check PR Size: in_progress; opt-in jobs skipped. Not waited on, per contract.",
"dogfood_battery": "9461451a9d · os-verify-lock VERDICT command-exit 0 (held 37m14s) · after pnpm --filter '@objectstack/dogfood^...' build (VERDICT command-exit 0) · Test Files 484 passed, 3 skipped (487) · Tests 4107 passed, 68 skipped (4175) · 0 failures",
"mcp_calls": "0",
"api_writes": "2 relay writes: pr_create (POST /repos/objectstack-ai/objectstack/pulls draft, plus POST /issues/36311/assignees os-project-manager) via scripts/pm/fleet-write/dispatch.mjs, request fw-20261122T053327Z-e73e60, read-back identical 12849 bytes; this os-dev-report comment (POST /repos/objectstack-ai/objectstack/issues/35184/comments) via scripts/pm/post-stamped.mjs. git push is not counted.",
"line_budget": "n/a: no skills/** path touched",
"files_changed": [
".changeset/35184-dev-seed-retire-at-boot.md",
"content/docs/deployment/self-hosting.mdx",
"docs/audits/2026-08-tenant-audit-write-call-sites.counts/plugins/plugin-auth.md",
"packages/plugins/plugin-auth/src/auth-plugin.ts",
"packages/plugins/plugin-auth/src/dev-seed-credential-retirement.ts",
"packages/plugins/plugin-auth/src/dev-seed-credential-retirement.test.ts"
],
"deviations": [
"File surface: docs/audits/2026-08-tenant-audit-write-call-sites.counts/plugins/plugin-auth.md is outside the declared surface; it is the generated census shard check-tenant-audit-census demands for the new write call site, regenerated with node scripts/tenant-audit-census.mjs --write (as PR 34717 did), not hand-edited.",
"Tests live in a new file, not as a describe in dev-seed-credential-production.test.ts: the new module had no harness of its own, and the six two-boot cases (about 10 s) added to that file's about 9.5 s would put it near 20 s, over the 10 s file line.",
"PR body ends with the order's line (Generated with Claude Code) rather than os-dev.md's rule-line session-URL footer; the session id is in body prose.",
"Full plugin-auth suite read on 8395b41853, not on the final head; later commits touch only the new test file, the changeset, the census shard and an origin/main merge with no plugin-auth path; the seed suites and typecheck were re-read on the final head."
],
"open_questions": [
{
"question": "Retired sessions and keys carry the existing reason admin_password_reset. Keep it, or add a dedicated reason?",
"options": [
"A keep admin_password_reset: no schema change; restoring a retired key stays a platform administrator's act, which fits (the account is on a publicly known credential)",
"B add a value such as dev_seed_retired to sys_api_key.revoked_reason (platform-objects select, vocabulary pin, field description, all locales) and name it in sys_session.revoke_reason's description: an honest audit trail, a second card in platform-objects, outside this card's file surface"
],
"recommendation": "A, because the restore semantics are the right ones and B is a schema change for audit wording only"
},
{
"question": "The unreleased changeset .changeset/dev-seed-credential-production-refusal.md (from PR 34717) still says 'Ending them at boot is follow-up #35184.' Amend it in this PR?",
"options": [
"A amend that sentence in this PR as a declared DELIBERATE CORRECTION (outside this card's file surface; Check Changeset stays red on an edited changeset by design)",
"B leave it: both notes ship in one release and read as history then fix"
],
"recommendation": "A if the seat authorizes the surface; otherwise B is harmless"
}
],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: none · noted, not filed: a seed-era session on an account whose password was changed in development by a door that did not revoke it (change-password without revokeOtherSessions, or the admin set-user-password with its switch off) is left by the in-force reading; the card's words do not reach it (PR Acceptance notes)",
"carrier: none · noted, not filed: content/docs/deployment/production-readiness.mdx does not mention the rule; the card names the self-hosting checklist, which now states it"
]
}
{
"issue": 35184,
"status": "done",
"branch": "claude/issue-35184-dev-seed-retire-at-boot",
"pr": "https://github.com/objectstack-ai/objectstack/pull/36311",
"session": "session_01FEkQ5kt9AD1TPLy7Y9oa9D",
"premise_still_valid": true,
"summary": "Rework round 1, head a59b490240, one text-only commit on 9461451a9d. Open question 2, option A: the one sentence in the pending note .changeset/dev-seed-credential-production-refusal.md that called the boot-time retirement follow-up #35184 now cross-references this PR's note. It is declared as a DELIBERATE CORRECTION; the ready-to-paste section is in deliberate_correction_section, for the area to add to the PR body, and the PR body was not PATCHed. content/docs/deployment/self-hosting.mdx no longer contains the follow-up phrasing (the round-0 commit replaced it), and content/docs/deployment/cli.mdx never had it, so neither file changed. production-readiness.mdx has no checklist of dev-seed items, so it was left alone. Open question 1 stays at option A (admin_password_reset), with nothing changed. One wrinkle, not fixed because only the one sentence was authorized: the same paragraph still opens with the bold label 'Not ended at boot:', which now reads against its corrected last sentence. If the seat wants it, a matching label edit is a one-line follow-on in this PR.",
"tests": "Text-only round: the diff is 1 line in one .changeset/*.md, with no code, test or fixture change. No suite was re-run. The dogfood battery was not re-run for this text-only round, as the coordinator allowed; the round-0 readings on 9461451a9d stand (plugin-auth seed suites 46/46 passed, typecheck exit 0, dogfood 484 files and 4107 tests passed with 0 failures).",
"gates": "Local, on a59b490240, each exit code captured before any pipe. check-empty-changeset exit 1: expected, since a DELIBERATE CORRECTION refusal names .changeset/dev-seed-credential-production-refusal.md. check-adr-0087-registration --base origin/main exit 0 ('1 declared-breaking changeset(s), each carrying an ADR-0087 disposition'). check-closing-keyword-parity exit 0 ('3 parsers agree on all 9 keywords'). check-changeset-no-major exit 0. check-issue-citations exit 0. check:nul-bytes exit 0. Before pnpm install was re-run in the worktree, check-adr-0087-registration exited 1 because the input tsx runner was missing and check-closing-keyword-parity exited 3 with PREREQUISITE NOT MET (yaml). Both were missing dependencies and read as NOT MEASURED; after install, both were re-run green as above. CI on a59b490240 at report time: Check Changeset, Check PR Size, Governed Surface Queue Guard, Flag docs affected by code changes and Spec property liveness are in_progress; PR-body guards and Check Documentation Links are queued; Packed-tarball smoke (opt-in) was skipped. Check Changeset is expected to go red, by design.",
"dogfood_battery": "n/a for this round: text-only, a changeset sentence, with no re-run as the coordinator allowed. The round-0 battery on 9461451a9d stands: 484/487 files (3 skipped) and 4107 tests passed (68 skipped), 0 failures.",
"mcp_calls": "0",
"api_writes": "1 in this round: this os-dev-report comment (POST /repos/objectstack-ai/objectstack/issues/35184/comments) via scripts/pm/post-stamped.mjs. git push is not counted. The PR body was not PATCHed. Round 0 had 2 writes (pr_create, and the round-0 os-dev-report comment 7074830883).",
"deliberate_correction_section": "## DELIBERATE CORRECTION\n\nThis PR rewrites one sentence in a pending release note it did not add: `.changeset/dev-seed-credential-production-refusal.md` (the note's last paragraph). That sentence named the boot-time retirement as a follow-up, and this PR ships the retirement, so left unchanged the note would publish a false sentence. `check-empty-changeset` stays red by design; the dispatching seat confirms by its own record.\n\n- Before: \"Ending them at boot is follow-up #35184.\"\n- After: \"In the same release, a boot outside development mode also retires them: see the note \"a boot outside development mode retires what the development seed issued\" (#36311).\"\n",
"deviations": "pnpm install was re-run in the worktree, because node_modules was absent and two gates needed it. The edit to .changeset/dev-seed-credential-production-refusal.md is outside the claim's file surface, as the coordinator authorized in rework round 1.",
"open_questions": [
{
"question": "The corrected paragraph in .changeset/dev-seed-credential-production-refusal.md still opens with the bold label 'Not ended at boot:', which its new last sentence contradicts. Should it change too?",
"options": [
"A: change the label in this PR as part of the same DELIBERATE CORRECTION, e.g. 'Ended by os user set-password, and at boot:'",
"B: leave the label; the cross-reference sentence carries the correction"
],
"recommendation": "A, because the release note is read label-first, and a label that says the opposite of the paragraph's last sentence still misleads. It is one line in the same already-declared note, so it adds no new red."
}
],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: none · noted, not filed: a seed-era session on an account whose password was changed in development by a door that did not revoke it is left by the in-force reading (PR Acceptance notes)",
"carrier: none · noted, not filed: production-readiness.mdx has no dev-seed checklist item, so per rework round 1 no sentence was added"
]
}
Ready to paste into the PR body (area):
DELIBERATE CORRECTION
This PR rewrites one sentence in a pending release note it did not add: .changeset/dev-seed-credential-production-refusal.md (the note's last paragraph). That sentence named the boot-time retirement as a follow-up, and this PR ships the retirement, so left unchanged the note would publish a false sentence. check-empty-changeset stays red by design; the dispatching seat confirms by its own record.
Rework round 1b · new head c1e7347. Option A on the label is taken: in .changeset/dev-seed-credential-production-refusal.md, the bold label "Not ended at boot:" now reads "Ended by os user set-password, and at boot:". The change is one line in one commit with model-free trailers, and nothing else changed. Branch diff on 9461451 across both rework commits is 1 file, +1/-1. The gates on c1e7347 are as follows. check-empty-changeset is exit 1, which is expected: it is the DELIBERATE CORRECTION refusal naming that note. Five gates are exit 0: check-adr-0087-registration, check-closing-keyword-parity, check-changeset-no-major, check-issue-citations and check-nul-bytes. The dogfood battery was not re-run for this text-only round. The updated DELIBERATE CORRECTION section covers both lines with before and after; it is below and in the final JSON, for the area to add to the PR body. The PR body was not PATCHed. security_findings: none.
DELIBERATE CORRECTION
This PR rewrites two lines in a pending release note it did not add: .changeset/dev-seed-credential-production-refusal.md, in the note's last paragraph. That paragraph's label and its last sentence named the boot-time retirement as something this release does not do (a follow-up). This PR ships the retirement, so left unchanged the note would publish two false lines. check-empty-changeset stays red by design; the dispatching seat confirms by its own record.
The paragraph's bold label
Before: "Not ended at boot:"
After: "Ended by os user set-password, and at boot:"
One further item is a code change. The seat has decided it (option A, build detail inside this card's rule), and it is not built in this tenure. Security item — with the seat.
Next tenure:
Build A.
Rewrite the first Acceptance note in the PR body to describe it.
Declare the new head, then L1-b delta, then the seat's contract review (Fable, effort high) and the four pieces.
The maintainer merges (narrowing).
Unchanged:Check Changeset is red by design on the declared DELIBERATE CORRECTION of .changeset/dev-seed-credential-production-refusal.md.
Handover to repo:objectstack#7 · 2026-11-22T06:47Z
Release: handed over to repo:objectstack#7 by the maintainer's word (Leehom 2026-11-22T06:32Z 「后续任务通过信箱交接给座位7」, then 「其他交接给座位7,现在就开始交接」). Handover sheet: mailbox #36199 comment 7075457123 (stop point and what is owed for this card).
Resume-from: claude/issue-35184-dev-seed-retire-at-boot@c1e7347cc1f83830d9bfe3e49957d2d97755c7db
Triage: lands in domain:server (plugin-auth boot outside development mode) · pm:queue; rationale: area:package (development seed lifecycle) · Bug · when a deployment leaves development mode, the sessions, API keys and tokens the development seed issued keep working for seed-stamped accounts; at boot they must be retired. Ruling item 3 of #34717; topic #36239 → p1 as set (credentials outlive the mode that justified them) · size M. Routing note: the maintainer handed this card to repo:objectstack#7 at 06:47Z (「其他交接给座位7」; handover sheet in mailbox #36199, comment 7075457123), and PR #36311 is open at c1e7347cc1. A new claimant takes over that PR and branch, not a fresh start, and confirms with seat 7 in mailbox #36199 first, so two seats do not work it at once. On request from repo:objectstack#1 (#32588 comment 7087248528).
Triage note: repo:objectstack#7 clocked out at 04:05Z (brief 7091274307; mailbox #36199 closed) and holds nothing, so my 23:02Z routing note (confirm with seat 7 first) no longer applies. The card stays pm:queue at p1. The next claimant, for example repo:objectstack#1 which asked at 23:02Z, takes over PR #36311 and its branch at c1e7347cc1, not a fresh start.
Claim: PM loop round 7 · 2026-11-23T12:39Z
Session: session_01JQwxbZeHNsF3RWcWpj7rGj
Thread session: session_01JQwxbX8ecPYZVemPRBFSrY
Account: os-warren
Branch: claude/project-thread-grxa1f (the thread's platform branch). It carries draft PR #36311 at head c1e7347cc1 merged with main. The new PR supersedes #36311, which closes unmerged when the new one opens.
Worktree: objectstack-issue-35184
Domain: domain:server
Seat: repo:objectstack#1
Area: card thread #35184 (w7-G)
Dispatch: p1, unclaimed, taken under the maintainer's ruling 2026-11-23T12:16Z 「所有区未认领的p1你都可以接」, deduped by the coordinator. This is a takeover, as triage notes 7087258491 and 7091316938 direct.
File surface: as #36311: the retirement of what the development seed issued, on leaving development mode, with its pins, docs and changeset. It also covers the one open item of L1-b REWORK 7075389349: item 1, a security-class change whose detail is not on any public record. That item waits on the maintainer's choice, which the thread has put in front of him. Nothing about it is written publicly.
Container & model: S, mode:thread, model: opus — default tier; the thread's first report states the served tier, effort: high
Clause-②: no (narrowing), as #36311 declares. The seat re-checks it at L1, and the narrowing owes a contract-review-tier review
Metadata-protocol: none
Responsibility: as the card body states
Thread-read: 7091316938
Premise: #36311 holds the code with 6 real-engine pins and ablations; the thread ports it onto a base that contains main
Serial constraints cleared: #36311 is the only open PR naming the card, and this claim supersedes it
Claim: branch record · 2026-11-23T13:18Z · same session as claim 7101448531, which it completes (that claim names the branch in prose the guard cannot parse)
Session: session_01JQwxbZeHNsF3RWcWpj7rGj
Branch: claude/project-thread-grxa1f
Resume-from: c1e7347cc1 (#36311, closed as superseded by #36699)
PR: #36699
Clause-②: no (narrowing)
Metadata-protocol: none
Activity
objectstack-fleet commentedon Nov 18, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
First touch: p2 ·
domain:server·pm:queue. The maintainer ruled this item 3 of #34717 as a follow-up card while #34717 lands items 1–2, so it is not a queue jump. It belongs with the development-seed credential family on the security ledger.objectstack-fleet commentedon Nov 21, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Ruling-ref: maintainer 2026-11-21T22:3xZ, verbatim: 「按建议升」, on triage's third non-topic pass (about 10% of non-topic p2, the maintainer's ask: 「按照10% 的比例重新分析」) under the standard ruled 「同意」 today: this week, or someone loses.
2026-11-21T22:34Z · p2 → p1 on the maintainer's word: access possibly widened: credentials the development seed issued keep acting outside development mode. security#2 is asked to confirm the grade on the security table. Lane and state unchanged.
objectstack-fleet commentedon Nov 22, 2026
repo:objectstack#4 · os-project-manager · session_01FEkQ5kt9AD1TPLy7Y9oa9D
Claim: PM loop round 1
Session:
session_01FEkQ5kt9AD1TPLy7Y9oa9DAccount:
os-project-managerBranch:
claude/issue-35184-dev-seed-retire-at-bootWorktree:
objectstack-issue-35184Domain:
domain:serverSeat:
repo:objectstack#4Area: a4-E (released to it by the seat 2026-11-22T02:25Z)
File surface:
packages/plugins/plugin-auth/src/**(boot-time retirement besidedev-seed-credential.ts/operator-password-reset.ts, wired fromauth-plugin.ts, with its tests),content/docs/deployment/self-hosting.mdx(the rule), one new changeset (stop on breach; explain in the report)Container & model:
M,mode:subagent,model: default (dispatch-gates --tier: no path-derived mandate),effort: high(seat's order)Clause-②: no (narrowing) — provisional, from the card content: sessions, API keys and tokens of seed-stamped accounts stop working at a boot outside development mode; the dev declares it from the diff
Metadata-protocol: none
Responsibility: platform code (
@objectstack/plugin-auth, this repo) issues and honours the seed accounts' credentials | the platform path today isos user set-password, which ends them per account by hand | reached by any deployment booted outside development mode on a databaseos devseededThread-read: 7070277257
Premise: holds — on origin/main 48c732c nothing retires them at boot;
self-hosting.mdx:635still names this card as the open limitSerial constraints cleared:
overlap-check.mjson a probe edit ofdev-seed-credential.ts,auth-plugin.ts,operator-password-reset.ts,self-hosting.mdxagainst origin/main 48c732c: VERDICT clean (open #36173, #36145 shareauth-plugin.ts, #35129 sharesself-hosting.mdx; all merge cleanly)Pre-claim lane: plugin-auth is
domain:server; no governed path (dispatch-gates --tier: no path-derived mandate). Owner line on the card names the security seats; the seat released it to this area. Public card; no private detail is used or written.Pre-claim deps: "Land it after #34717" — PR #34717 merged 2026-11-19 (b3247dd). No
Blocked-by:.Prior rulings read:
check-prior-rulings.mjs --card 35184 --terms dev-seed,seed,session,revokeat 48c732c: 0 ruling comments on the card (near-miss 7070277257 is the p1 grade record). Governing text: the card's rule, which is item 3 of the maintainer's ruling recorded on PR #34717 (body and comment 7003790340: 「只合前两项:第三项另开一张跟进卡。」), and that PR's accepted secondary-storage reach (database-only for the CLI command, ruled A 2026-11-19). ADR-0069 D4 (session controls) read for the revocation vocabulary. No conflict.objectstack-fleet commentedon Nov 22, 2026
repo:objectstack#4 · os-project-manager · session_01FEkQ5kt9AD1TPLy7Y9oa9D
os-dev-report
{ "issue": 35184, "status": "done", "branch": "claude/issue-35184-dev-seed-retire-at-boot", "pr": "https://github.com/objectstack-ai/objectstack/pull/36311", "session": "session_01FEkQ5kt9AD1TPLy7Y9oa9D", "premise_still_valid": true, "summary": "New plugin-auth module dev-seed-credential-retirement.ts (retireDevSeedCredentials), wired as one kernel:ready hook in auth-plugin.ts (settles before kernel:listening, independent of registerRoutes). Outside development mode (isDevelopmentMode, NODE_ENV=development, the predicate of PR 34717) it does one indexed read for stamped accounts, keeps those whose seed credential is still in force (isDevSeedCredentialInForce), and per account reuses revokeSessionsAndApiKeys with better-auth's own adapter/plugin registry (sessions tombstoned and keys revoked with reason admin_password_reset; authorized apps, device codes, linked sign-in accounts, registered OAuth apps, minted SCIM credentials), ends outstanding reset tokens (endOutstandingResetTokens, rows plus cache entries), and ends sessions a host secondaryStorage holds (better-auth deleteUserSessions, read back). Fail closed: anything that did not land throws and the boot fails with one sentence naming accounts and remedy. Left, with reason: the password credential and stamp (refusals still answer; operator reset is the way out), sign-in links and one-time codes (they only open a session, which session.create.before refuses), one-time tokens (they hand over a retired session), SSO providers and second factor (every reset keeps them). Reading chosen: in-force stamp, not a non-null column, because the card's 'an operator-set credential is untouched' and the code's 'any password change stops it matching' exclude a stale stamp left by an administrator's set-user-password, and retiring on the column would end operator-era credentials at every restart (not idempotent). self-hosting.mdx states the rule in timeless wording (N4); changeset patch with BREAKING section and ADR-0087 not-required marker.", "tests": "New dev-seed-credential-retirement.test.ts, 6 cases over two real ObjectKernel boots on one SQLite file (development seed, then production): stamped accounts' session resolves no user, key answers API_KEY_REVOKED at resolveApiKeyAdmission, reset links gone, revoke_reason admin_password_reset; admin-created control untouched; development second boot retires nothing; account re-passworded by setOperatorPassword and account re-passworded by the admin door's write both untouched, key minted after operator reset admitted; second production boot leaves tombstones unchanged and a rerun ends nothing; sys_api_key writes refused then boot fails naming account and os user set-password; shared secondaryStorage sessions ended. Runs: full plugin-auth suite on 8395b41853: 292 files passed, 6195 passed 10 skipped (VERDICT command-exit 0); on final head 9461451a9d: retirement + production + dev-seed-credential + first-session-membership-ordering 4 files 46 passed, then plugin-auth typecheck exit 0 (check:test-typecheck OK, no new debt). Ablation on 6d4477f415 via scripts/ablation-replace.mjs, one leg per wiring point, each red then restored (blob == HEAD, git diff HEAD empty, verified per leg): kernel:ready call skipped 4 red; dev-mode guard defeated 1 red; in-force filter removed 1 red; revocation replaced by empty outcome 2 red; reset-token end skipped 1 red; fail-closed throw skipped 1 red; secondary-storage arm skipped 1 red; control 6/6. Subject is in-package src imported directly, so no rebuild between mutation and run. A first ablation attempt was aborted mid-leg (overlapped a gate's full build) and restored by the tool's SIGTERM path (blob == HEAD); its reading is discarded and the full set re-run.", "gates": "Local, on 9461451a9d: node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack derived 110; --ran with exit codes recorded: 110 derived, 107 run (all exit 0, captured before any pipe), 2 NOT MEASURED (exit 3 prerequisite: check:skill-examples needs client/client-react built; check:dual-build-cjs-loads needs every package built), 1 UNRUN (check:type-check-debt: its only local run overlapped an ablation leg with auth-plugin.ts mutated, reading discarded). Fixed on the way: check-adr-0087-registration (marker added), check-tenant-audit-census (plugin-auth shard regenerated), check:test-source-alias (module-top import of @objectstack/core/egress). CI on 9461451a9d at report time: Check Changeset, Lint (ESLint, repo & tooling, docs & code guards, CI/release/engine, PM dispatch-gates, scoped x3), Type Check (workspace, source gates, consumer gates, debt ledger), Governed Surface Queue Guard, PR-body guards, Spec property liveness, Check PR Size: in_progress; opt-in jobs skipped. Not waited on, per contract.", "dogfood_battery": "9461451a9d · os-verify-lock VERDICT command-exit 0 (held 37m14s) · after pnpm --filter '@objectstack/dogfood^...' build (VERDICT command-exit 0) · Test Files 484 passed, 3 skipped (487) · Tests 4107 passed, 68 skipped (4175) · 0 failures", "mcp_calls": "0", "api_writes": "2 relay writes: pr_create (POST /repos/objectstack-ai/objectstack/pulls draft, plus POST /issues/36311/assignees os-project-manager) via scripts/pm/fleet-write/dispatch.mjs, request fw-20261122T053327Z-e73e60, read-back identical 12849 bytes; this os-dev-report comment (POST /repos/objectstack-ai/objectstack/issues/35184/comments) via scripts/pm/post-stamped.mjs. git push is not counted.", "line_budget": "n/a: no skills/** path touched", "files_changed": [ ".changeset/35184-dev-seed-retire-at-boot.md", "content/docs/deployment/self-hosting.mdx", "docs/audits/2026-08-tenant-audit-write-call-sites.counts/plugins/plugin-auth.md", "packages/plugins/plugin-auth/src/auth-plugin.ts", "packages/plugins/plugin-auth/src/dev-seed-credential-retirement.ts", "packages/plugins/plugin-auth/src/dev-seed-credential-retirement.test.ts" ], "deviations": [ "File surface: docs/audits/2026-08-tenant-audit-write-call-sites.counts/plugins/plugin-auth.md is outside the declared surface; it is the generated census shard check-tenant-audit-census demands for the new write call site, regenerated with node scripts/tenant-audit-census.mjs --write (as PR 34717 did), not hand-edited.", "Tests live in a new file, not as a describe in dev-seed-credential-production.test.ts: the new module had no harness of its own, and the six two-boot cases (about 10 s) added to that file's about 9.5 s would put it near 20 s, over the 10 s file line.", "PR body ends with the order's line (Generated with Claude Code) rather than os-dev.md's rule-line session-URL footer; the session id is in body prose.", "Full plugin-auth suite read on 8395b41853, not on the final head; later commits touch only the new test file, the changeset, the census shard and an origin/main merge with no plugin-auth path; the seed suites and typecheck were re-read on the final head." ], "open_questions": [ { "question": "Retired sessions and keys carry the existing reason admin_password_reset. Keep it, or add a dedicated reason?", "options": [ "A keep admin_password_reset: no schema change; restoring a retired key stays a platform administrator's act, which fits (the account is on a publicly known credential)", "B add a value such as dev_seed_retired to sys_api_key.revoked_reason (platform-objects select, vocabulary pin, field description, all locales) and name it in sys_session.revoke_reason's description: an honest audit trail, a second card in platform-objects, outside this card's file surface" ], "recommendation": "A, because the restore semantics are the right ones and B is a schema change for audit wording only" }, { "question": "The unreleased changeset .changeset/dev-seed-credential-production-refusal.md (from PR 34717) still says 'Ending them at boot is follow-up #35184.' Amend it in this PR?", "options": [ "A amend that sentence in this PR as a declared DELIBERATE CORRECTION (outside this card's file surface; Check Changeset stays red on an edited changeset by design)", "B leave it: both notes ship in one release and read as history then fix" ], "recommendation": "A if the seat authorizes the surface; otherwise B is harmless" } ], "security_findings": "none", "out_of_scope_findings": [ "carrier: none · noted, not filed: a seed-era session on an account whose password was changed in development by a door that did not revoke it (change-password without revokeOtherSessions, or the admin set-user-password with its switch off) is left by the in-force reading; the card's words do not reach it (PR Acceptance notes)", "carrier: none · noted, not filed: content/docs/deployment/production-readiness.mdx does not mention the rule; the card names the self-hosting checklist, which now states it" ] }objectstack-fleet commentedon Nov 22, 2026
repo:objectstack#4 · os-project-manager · session_01FEkQ5kt9AD1TPLy7Y9oa9D
os-dev-report
Rework round 1 · new head a59b490
{ "issue": 35184, "status": "done", "branch": "claude/issue-35184-dev-seed-retire-at-boot", "pr": "https://github.com/objectstack-ai/objectstack/pull/36311", "session": "session_01FEkQ5kt9AD1TPLy7Y9oa9D", "premise_still_valid": true, "summary": "Rework round 1, head a59b490240, one text-only commit on 9461451a9d. Open question 2, option A: the one sentence in the pending note .changeset/dev-seed-credential-production-refusal.md that called the boot-time retirement follow-up #35184 now cross-references this PR's note. It is declared as a DELIBERATE CORRECTION; the ready-to-paste section is in deliberate_correction_section, for the area to add to the PR body, and the PR body was not PATCHed. content/docs/deployment/self-hosting.mdx no longer contains the follow-up phrasing (the round-0 commit replaced it), and content/docs/deployment/cli.mdx never had it, so neither file changed. production-readiness.mdx has no checklist of dev-seed items, so it was left alone. Open question 1 stays at option A (admin_password_reset), with nothing changed. One wrinkle, not fixed because only the one sentence was authorized: the same paragraph still opens with the bold label 'Not ended at boot:', which now reads against its corrected last sentence. If the seat wants it, a matching label edit is a one-line follow-on in this PR.", "tests": "Text-only round: the diff is 1 line in one .changeset/*.md, with no code, test or fixture change. No suite was re-run. The dogfood battery was not re-run for this text-only round, as the coordinator allowed; the round-0 readings on 9461451a9d stand (plugin-auth seed suites 46/46 passed, typecheck exit 0, dogfood 484 files and 4107 tests passed with 0 failures).", "gates": "Local, on a59b490240, each exit code captured before any pipe. check-empty-changeset exit 1: expected, since a DELIBERATE CORRECTION refusal names .changeset/dev-seed-credential-production-refusal.md. check-adr-0087-registration --base origin/main exit 0 ('1 declared-breaking changeset(s), each carrying an ADR-0087 disposition'). check-closing-keyword-parity exit 0 ('3 parsers agree on all 9 keywords'). check-changeset-no-major exit 0. check-issue-citations exit 0. check:nul-bytes exit 0. Before pnpm install was re-run in the worktree, check-adr-0087-registration exited 1 because the input tsx runner was missing and check-closing-keyword-parity exited 3 with PREREQUISITE NOT MET (yaml). Both were missing dependencies and read as NOT MEASURED; after install, both were re-run green as above. CI on a59b490240 at report time: Check Changeset, Check PR Size, Governed Surface Queue Guard, Flag docs affected by code changes and Spec property liveness are in_progress; PR-body guards and Check Documentation Links are queued; Packed-tarball smoke (opt-in) was skipped. Check Changeset is expected to go red, by design.", "dogfood_battery": "n/a for this round: text-only, a changeset sentence, with no re-run as the coordinator allowed. The round-0 battery on 9461451a9d stands: 484/487 files (3 skipped) and 4107 tests passed (68 skipped), 0 failures.", "mcp_calls": "0", "api_writes": "1 in this round: this os-dev-report comment (POST /repos/objectstack-ai/objectstack/issues/35184/comments) via scripts/pm/post-stamped.mjs. git push is not counted. The PR body was not PATCHed. Round 0 had 2 writes (pr_create, and the round-0 os-dev-report comment 7074830883).", "deliberate_correction_section": "## DELIBERATE CORRECTION\n\nThis PR rewrites one sentence in a pending release note it did not add: `.changeset/dev-seed-credential-production-refusal.md` (the note's last paragraph). That sentence named the boot-time retirement as a follow-up, and this PR ships the retirement, so left unchanged the note would publish a false sentence. `check-empty-changeset` stays red by design; the dispatching seat confirms by its own record.\n\n- Before: \"Ending them at boot is follow-up #35184.\"\n- After: \"In the same release, a boot outside development mode also retires them: see the note \"a boot outside development mode retires what the development seed issued\" (#36311).\"\n", "deviations": "pnpm install was re-run in the worktree, because node_modules was absent and two gates needed it. The edit to .changeset/dev-seed-credential-production-refusal.md is outside the claim's file surface, as the coordinator authorized in rework round 1.", "open_questions": [ { "question": "The corrected paragraph in .changeset/dev-seed-credential-production-refusal.md still opens with the bold label 'Not ended at boot:', which its new last sentence contradicts. Should it change too?", "options": [ "A: change the label in this PR as part of the same DELIBERATE CORRECTION, e.g. 'Ended by os user set-password, and at boot:'", "B: leave the label; the cross-reference sentence carries the correction" ], "recommendation": "A, because the release note is read label-first, and a label that says the opposite of the paragraph's last sentence still misleads. It is one line in the same already-declared note, so it adds no new red." } ], "security_findings": "none", "out_of_scope_findings": [ "carrier: none · noted, not filed: a seed-era session on an account whose password was changed in development by a door that did not revoke it is left by the in-force reading (PR Acceptance notes)", "carrier: none · noted, not filed: production-readiness.mdx has no dev-seed checklist item, so per rework round 1 no sentence was added" ] }Ready to paste into the PR body (area):
DELIBERATE CORRECTION
This PR rewrites one sentence in a pending release note it did not add:
.changeset/dev-seed-credential-production-refusal.md(the note's last paragraph). That sentence named the boot-time retirement as a follow-up, and this PR ships the retirement, so left unchanged the note would publish a false sentence.check-empty-changesetstays red by design; the dispatching seat confirms by its own record.objectstack-fleet commentedon Nov 22, 2026
repo:objectstack#4 · os-project-manager · session_01FEkQ5kt9AD1TPLy7Y9oa9D
os-dev-report
Rework round 1b · new head c1e7347. Option A on the label is taken: in
.changeset/dev-seed-credential-production-refusal.md, the bold label "Not ended at boot:" now reads "Ended byos user set-password, and at boot:". The change is one line in one commit with model-free trailers, and nothing else changed. Branch diff on 9461451 across both rework commits is 1 file, +1/-1. The gates on c1e7347 are as follows. check-empty-changeset is exit 1, which is expected: it is the DELIBERATE CORRECTION refusal naming that note. Five gates are exit 0: check-adr-0087-registration, check-closing-keyword-parity, check-changeset-no-major, check-issue-citations and check-nul-bytes. The dogfood battery was not re-run for this text-only round. The updated DELIBERATE CORRECTION section covers both lines with before and after; it is below and in the final JSON, for the area to add to the PR body. The PR body was not PATCHed. security_findings: none.DELIBERATE CORRECTION
This PR rewrites two lines in a pending release note it did not add:
.changeset/dev-seed-credential-production-refusal.md, in the note's last paragraph. That paragraph's label and its last sentence named the boot-time retirement as something this release does not do (a follow-up). This PR ships the retirement, so left unchanged the note would publish two false lines.check-empty-changesetstays red by design; the dispatching seat confirms by its own record.os user set-password, and at boot:"objectstack-fleet commentedon Nov 22, 2026
repo:objectstack#4 · os-project-manager · session_01FEkQ5kt9AD1TPLy7Y9oa9D
Handover note. Work under review is handed to the next tenure as it stands, per the maintainer's handover rule.
c1e7347cc1f83830d9bfe3e49957d2d97755c7db, which is the current remote head. Nothing newer was pushed.Skills-docs:line, the deferral-changeset Acceptance note and the revoke-reason note citing plugin-auth: boot-time dev-seed retirement records revocations as admin_password_reset; add a dev_seed_retired reason (after #36311) #36313.Check Changesetis red by design on the declared DELIBERATE CORRECTION of.changeset/dev-seed-credential-production-refusal.md.objectstack-fleet commentedon Nov 22, 2026
repo:objectstack#4 · os-project-manager · session_01FEkQ5krBqrrgxCYgjXmfbv
Handover to repo:objectstack#7 · 2026-11-22T06:47Z
Release: handed over to repo:objectstack#7 by the maintainer's word (Leehom 2026-11-22T06:32Z 「后续任务通过信箱交接给座位7」, then 「其他交接给座位7,现在就开始交接」). Handover sheet: mailbox #36199 comment 7075457123 (stop point and what is owed for this card).
Resume-from: claude/issue-35184-dev-seed-retire-at-boot@c1e7347cc1f83830d9bfe3e49957d2d97755c7db
objectstack-fleet commentedon Nov 22, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Triage: lands in
domain:server(plugin-auth boot outside development mode) ·pm:queue; rationale: area:package (development seed lifecycle) · Bug · when a deployment leaves development mode, the sessions, API keys and tokens the development seed issued keep working for seed-stamped accounts; at boot they must be retired. Ruling item 3 of #34717; topic #36239 → p1 as set (credentials outlive the mode that justified them) · size M. Routing note: the maintainer handed this card to repo:objectstack#7 at 06:47Z (「其他交接给座位7」; handover sheet in mailbox #36199, comment 7075457123), and PR #36311 is open atc1e7347cc1. A new claimant takes over that PR and branch, not a fresh start, and confirms with seat 7 in mailbox #36199 first, so two seats do not work it at once. On request from repo:objectstack#1 (#32588 comment 7087248528).objectstack-fleet commentedon Nov 23, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Triage note: repo:objectstack#7 clocked out at 04:05Z (brief 7091274307; mailbox #36199 closed) and holds nothing, so my 23:02Z routing note (confirm with seat 7 first) no longer applies. The card stays
pm:queueat p1. The next claimant, for example repo:objectstack#1 which asked at 23:02Z, takes over PR #36311 and its branch atc1e7347cc1, not a fresh start.objectstack-fleet commentedon Nov 23, 2026
repo:objectstack#1 · os-warren · session_01JQwxbZeHNsF3RWcWpj7rGj
Claim: PM loop round 7 · 2026-11-23T12:39Z
Session:
session_01JQwxbZeHNsF3RWcWpj7rGjThread session:
session_01JQwxbX8ecPYZVemPRBFSrYAccount:
os-warrenBranch:
claude/project-thread-grxa1f(the thread's platform branch). It carries draft PR #36311 at headc1e7347cc1merged with main. The new PR supersedes #36311, which closes unmerged when the new one opens.Worktree:
objectstack-issue-35184Domain:
domain:serverSeat:
repo:objectstack#1Area: card thread
#35184(w7-G)Dispatch: p1, unclaimed, taken under the maintainer's ruling 2026-11-23T12:16Z 「所有区未认领的p1你都可以接」, deduped by the coordinator. This is a takeover, as triage notes 7087258491 and 7091316938 direct.
File surface: as #36311: the retirement of what the development seed issued, on leaving development mode, with its pins, docs and changeset. It also covers the one open item of L1-b REWORK 7075389349: item 1, a security-class change whose detail is not on any public record. That item waits on the maintainer's choice, which the thread has put in front of him. Nothing about it is written publicly.
Container & model:
S,mode:thread,model: opus — default tier; the thread's first report states the served tier,effort: highClause-②: no (narrowing), as #36311 declares. The seat re-checks it at L1, and the narrowing owes a contract-review-tier review
Metadata-protocol: none
Responsibility: as the card body states
Thread-read: 7091316938
Premise: #36311 holds the code with 6 real-engine pins and ablations; the thread ports it onto a base that contains main
Serial constraints cleared: #36311 is the only open PR naming the card, and this claim supersedes it
objectstack-fleet commentedon Nov 23, 2026
repo:objectstack#1 · os-warren · session_01JQwxbZeHNsF3RWcWpj7rGj
Claim: branch record · 2026-11-23T13:18Z · same session as claim 7101448531, which it completes (that claim names the branch in prose the guard cannot parse)
Session:
session_01JQwxbZeHNsF3RWcWpj7rGjBranch:
claude/project-thread-grxa1fResume-from:
c1e7347cc1(#36311, closed as superseded by #36699)PR: #36699
Clause-②: no (narrowing)
Metadata-protocol: none