Skip to content

Her reply is published before her card's commit and push (stacked on #5668) - #5669

Merged
joelteply merged 1 commit into
canaryfrom
fable/reply-before-card-sync
Nov 1, 2026
Merged

joelteply merged 1 commit into
canaryfrom
fable/reply-before-card-sync

Conversation

@joelteply

@joelteply joelteply commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

Serves the path's step 1 (fast) and goal 9: row 11 of docs/architecture/LOCKS-AND-FIFOS-AUDIT.md (#5667). Stacked on #5668 (both edit turn_cycle.rs).

What changed

  • drive_in_held_card no longer awaits the end-of-turn commit and push (end_card_turn, bounded by SYNC_BOUND = 60 s, workspace_transfer.rs:66). It returns a #[must_use] CardSync that its owner runs.
  • Spoken turn: runs it right after publish_own_speech (turn_settle.rs), before the act question drives in the same checkout. It also runs on the two exits that withhold the say (raw envelope, unrecorded mark).
  • Turn that did not speak: runs it before returning its verdict.
  • Own-time turn (initiative_turn.rs): runs it where it ran before.
  • Order of git writers: unchanged. Nothing touches the checkout between the drive and the sync; settlement in finish_spoken_turn reads no push outcome (checked: no sha, branch or push reads in turn_settle.rs).

Measured

  • Before: a spoken card turn's say waited behind the sync. The workspace.push probe carries its duration.
  • After deploy (owner Fable): persona.turn.spoke say_ms and turn duration against workspace.push durations, per resident, against a restart-only control.

Tests

Not built here (serving M5; rule 2); CI gates. No new test. #[must_use] makes a dropped sync a compiler warning, but CI does not deny warnings (checked: no -D warnings or deny(unused_must_use) in the workflows or manifests), so review is the guard for now.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

@joelteply
joelteply force-pushed the fable/reply-before-card-sync branch from c25a6c5 to 27e7e85 Compare October 31, 2026 19:04
Base automatically changed from fable/turn-holds-no-ambient-permit to canary October 31, 2026 20:22
@joelteply
joelteply force-pushed the fable/reply-before-card-sync branch from 27e7e85 to 14d1b1f Compare October 31, 2026 20:22
…ive returns a must-use CardSync that the turn's owner runs after the say (and before the act question touches the checkout)

The sync (up to SYNC_BOUND, 60 s) ran inside drive_in_held_card, so a spoken turn's reply waited
on git before publish_own_speech (LOCKS-AND-FIFOS-AUDIT.md row 11). Now: a spoken turn runs it
right after the say, and on the two exits that withhold the say; a turn that did not speak runs
it before its verdict; her own-time turn runs it where it ran before. Nothing else touches the
checkout between the drive and the sync, so the order of git writers is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
@joelteply
joelteply force-pushed the fable/reply-before-card-sync branch from 14d1b1f to 7cc539f Compare November 1, 2026 14:49
@joelteply
joelteply merged commit 91c95bb into canary Nov 1, 2026
15 checks passed
@joelteply
joelteply deleted the fable/reply-before-card-sync branch November 1, 2026 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant