fix(posts): finish-audit closeout for #179
CI / ci (push) Canceled after 0s
CI / ci (pull_request) Canceled after 0s
CI / ci (push) Canceled after 0s
CI / ci (pull_request) Canceled after 0s
Reviewer fanout (ponytail/security/general) fixes: bind hoisted to the WorkspaceView root task (stale boundHome after a Home repoint while another pane was showing), railWriteReturningReason emits .writeFailed (pinned, flip-verified), dead home: params deleted from the three ask sheets, saveDraft locals inlined; AGENTS.md docs delta applied; devlog closeout. Suite 655/655, lint parity with base.
This commit is contained in:
1 parent
3bef1d12b1
commit
23b2090054
12 files changed
+58
-24
No files matched your search
@@ -38,3 +38,18 @@ Route every library verb's store write through ONE internal seam that pairs the
|
||||
## Machine-state notes (this slot)
|
||||
|
||||
The hosted-test runner was wedged on arrival: six testmanagerd xctestsession transactions stuck for 2+ hours (an `_XCT_enableAutomationModeWithReply` open since ~00:11, before this slot). `killall` (SIGTERM) logged an exit handler but left pid 48552 alive; `kill -9` + launchd respawn cleared it — hosted tests ran normally after. Suite-member `-only-testing` filters containing backticks/spaces matched zero tests and "passed" vacuously (exit 0, empty counts) — the whole-suite filter is the reliable spelling.
|
||||
|
||||
## Finish-audit closeout (2026-11-10)
|
||||
|
||||
Three-reviewer fanout (ponytail / security / general) on the branch diff plus the pending AGENTS.md docs delta; findings triaged and fixed in the same tree.
|
||||
|
||||
**Accepted + fixed:**
|
||||
|
||||
- **Bind hoisted to the WorkspaceView root** (`.task(id: gate.museionHome)`): the pane-local `.task(id: home)` unmounted with the Posts pane, leaving `boundHome` stale after a Home repoint while the Archive pane and every root sheet (import / new project / convert) kept writing through it — a regression window main didn't have (its verbs read `gate.museionHome` fresh). The overclaiming comments ("app construction and the Settings repoint are the only two places it is set") corrected to name the root task. Unpinned delta: view wiring, no render harness — verified by build + suite; the bind seam itself is model-level.
|
||||
- **`railWriteReturningReason` now emits `.writeFailed` on a throw** — the reason-returning entry's failure was unobservable on the seam (bare `[.write]` trail). Pinned: `a failed reason-returning write reports writeFailed and leaves the strip alone` (duplicate project name → `[.write, .writeFailed]`, `lastError` stays nil — pins the routing separation too). Flip-verified: guard removed → only this pin fails; restored → green.
|
||||
- **Dead `home` parameters deleted** — `MicropubPublishSheet`, `PromoteAskSheet`, `ApplyAskSheet` no longer take or thread a Home (the sweep had stopped one layer short).
|
||||
- **saveDraft's three hoisted locals deleted** — `staged` is an immutable local, captured directly.
|
||||
|
||||
**Rejected/deferred:** security INFO findings (pre-bind no-op guards unreachable via real UI and non-destructive; `onRailEvent` a standard internal test seam) — no remediation.
|
||||
|
||||
**Post-fix verification:** full unit suite `test-without-building -only-testing:MuseionTests` → executed 655 / passed 655 / failed 0 / skipped 0 (the 654 + the new pin); swiftformat 0/135 dirty; swiftlint 279 violations / 60 serious — byte-identical to base. `Task { await rescan() }` still exactly two sites (bind + `pairRailRescan`). GitNexus impact on `saveDraft`/`bind` = HIGH (144–145 upstream) — the acknowledged app-scoped-model closure; all edits body-only or call-site moves with grep-enumerated callers. The index itself predates the branch (no rail symbols).
|
||||
Reference in new issue
Block a user