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
@@ -17,7 +17,8 @@ import Foundation
|
||||
/// #179: rail observability — what the write-rail suite reads off the
|
||||
/// seam. `.write` = a verb's body rode the rail; `.pairedRescan` = the
|
||||
/// rail scheduled the verb's ONE rescan; `.writeFailed` = the verb's
|
||||
/// write threw (the strip owns the reason; nothing paired).
|
||||
/// write threw (the reason's ROUTING stays with the entry — strip or
|
||||
/// sheet; nothing paired).
|
||||
enum PostsModelRailEvent: Equatable {
|
||||
case write
|
||||
case pairedRescan
|
||||
@@ -55,7 +56,8 @@ extension PostsModel {
|
||||
|
||||
/// #179: the reason-returning entry (project creation) — the sheet
|
||||
/// owns its inline reason and the strip behind the sheet must not
|
||||
/// double-message one error. Same ONE rescan on success.
|
||||
/// double-message one error. Same ONE rescan on success; a throw
|
||||
/// still reports `.writeFailed` on the seam (the strip never hears it).
|
||||
func railWriteReturningReason(_ operation: () throws -> Void) -> String? {
|
||||
onRailEvent?(.write)
|
||||
do {
|
||||
@@ -63,6 +65,7 @@ extension PostsModel {
|
||||
pairRailRescan()
|
||||
return nil
|
||||
} catch {
|
||||
onRailEvent?(.writeFailed) // the seam reports it; the sheet owns the reason
|
||||
return error.localizedDescription
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user