batch-v07d: first-run pages (#843) and batch-v07c follow-ups (#867) #868

Merged
Cordy merged 15 commits from batch-v07d into main 2026-10-10 12:22:28 +00:00
Owner

Closes #843
Closes #867

Spec docs/superpowers/specs/2026-10-10-batch-v07d-design.md, plan docs/superpowers/plans/2026-10-10-batch-v07d.md.

#843 — first-run pages

  • Pre-auth endpoints answer {error, code}.
  • 64 KiB body cap on all pre-auth body routes, plus a source-scan guard test. The share password form and the OCM secret form are capped too.
  • The storage wizard requires an absolute path.
  • A closed /setup answers 302 to /.
  • Neutral placeholders, with a test that guards against private (RFC 1918) addresses in the pages.
  • After the storage wizard, Cairn restarts itself in place.
    • The same process is replaced (re-exec), with no race against main.
    • A deleted binary is handled via /proc/self/exe; otherwise Cairn exits and the restart policy brings it back.
  • The language selector (placement A) and translated errors on the setup, login and storage-wizard pages. Prose uses the formal register.

#867 — follow-ups

  • Directory re-check:
    • first-sighting time cap;
    • rejection limited to the source being re-checked;
    • FILETIME overflow guard;
    • AD "must change password" (pwdLastSet = 0) gets a real timestamp from replication metadata, so lagging domain controllers no longer cause an extra sign-out.
  • The notify store saves a copy and swaps it in only after the write succeeds; sort order is stable.
  • New error codes app-passwords-off (409) and reset-revoke-failed.
  • The admin revoke response lists the revoked names, and the toast says when some were created after the dialog opened.
  • Naming-rule copy is rewritten in words, and the dash-test exception is removed.
  • A language change now refreshes all chrome, views, admin topics and Preferences without losing icons. Fixes "All files" staying English.
  • The bell fetch is guarded, the title no longer breaks at hyphens, and translation nits are fixed.
  • gofmt-only commit for pre-existing files.

Docs: deployment, users-access, local-accounts, account. CHANGELOG v0.6.325.

Process: 6 tasks, each reviewed with fix loops. The final whole-branch review found 2 Important issues; both are fixed and a scoped re-review addressed them. go test ./... passes on the Mac (Go 1.26.8).

Closes #843 Closes #867 Spec `docs/superpowers/specs/2026-10-10-batch-v07d-design.md`, plan `docs/superpowers/plans/2026-10-10-batch-v07d.md`. **#843 — first-run pages** - Pre-auth endpoints answer `{error, code}`. - 64 KiB body cap on all pre-auth body routes, plus a source-scan guard test. The share password form and the OCM secret form are capped too. - The storage wizard requires an absolute path. - A closed `/setup` answers 302 to `/`. - Neutral placeholders, with a test that guards against private (RFC 1918) addresses in the pages. - After the storage wizard, Cairn restarts itself in place. - The same process is replaced (re-exec), with no race against main. - A deleted binary is handled via `/proc/self/exe`; otherwise Cairn exits and the restart policy brings it back. - The language selector (placement A) and translated errors on the setup, login and storage-wizard pages. Prose uses the formal register. **#867 — follow-ups** - Directory re-check: - first-sighting time cap; - rejection limited to the source being re-checked; - FILETIME overflow guard; - AD "must change password" (`pwdLastSet = 0`) gets a real timestamp from replication metadata, so lagging domain controllers no longer cause an extra sign-out. - The notify store saves a copy and swaps it in only after the write succeeds; sort order is stable. - New error codes `app-passwords-off` (409) and `reset-revoke-failed`. - The admin revoke response lists the revoked names, and the toast says when some were created after the dialog opened. - Naming-rule copy is rewritten in words, and the dash-test exception is removed. - A language change now refreshes all chrome, views, admin topics and Preferences without losing icons. Fixes "All files" staying English. - The bell fetch is guarded, the title no longer breaks at hyphens, and translation nits are fixed. - gofmt-only commit for pre-existing files. Docs: deployment, users-access, local-accounts, account. CHANGELOG v0.6.325. Process: 6 tasks, each reviewed with fix loops. The final whole-branch review found 2 Important issues; both are fixed and a scoped re-review addressed them. `go test ./...` passes on the Mac (Go 1.26.8).
- resolver: pwdAt capped at now; the same change read again is ignored
- resolver: AD "0" timed by replication metadata is monotonic (item 2)
- resolver: a directory rejection revokes only that source's sessions
- ldapauth: FILETIME overflow guard; msDS-ReplAttributeMetaData for "0"
- notify: copy, persist, swap in every setter (item 6)
- feed: stable order with a kind tiebreak; whitelist comment
- reset: 409 app-passwords-off, reset-revoke-failed code
- admin revoke response carries names
- Keycloak newest-credential tests; deployment.md: AD "0" and PDC note
refreshChrome() re-applies the JS-filled chrome on a language change
(search scope, sort label, version footer, storage meter, open bell);
data-i18n-aria for the bell button and sidebar landmark. The bell
refetches on open when the feed is older than 5 s. The revoke title
keeps the name in a nowrap span. Reset errors match by code. The revoke
toast names passwords created after the dialog opened. The naming rule
names its characters in words (UI and server); the qa694 exemption is
gone. Badge-order comment. FR Sièges, DE Identitätsanbieter, IT revoca
and LEI, IT Riprovi.
docs: spec route name
All checks were successful
ci / test-and-build (pull_request) Successful in 2m11s
33aeec6104
Cordy merged commit 9c52bb85d0 into main 2026-10-10 12:22:28 +00:00
Cordy deleted branch batch-v07d 2026-10-10 12:22:31 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Cordy/Cairn#868
No description provided.