Repository navigation
Conversation
|
Speaking as Kun's firstmate: Thank you @niks0501. This is a real defect, and reusing What I checked on Overlap: #7762 from @zestysoft fixes the same thing. Both PRs change the same
Which one goes in is Kun's call. I'm not closing either. Contract class: new-default (my read). The reconcile header on main spells out the current behavior: republish every unhandled result "on every call regardless of any earlier publication." This replaces that specified default with "publish once while queued." It's a sensible fix that aligns with VISION (less noise, and a queued wake is still retired only by its answering record), but it changes a documented default path, so it goes to Kun rather than auto-merge. VISION: one-captain aligns, authority aligns (no new autonomy), scripts aligns (exact lock-held key check), restart aligns (republish after consume, handled ack still the only stop), spine/vendor/scope align. What this needs from you: the head is a single hand-written commit, and the description doesn't mention a no-mistakes run. The So this is waiting on you for the no-mistakes attestation while CI runs. Once a head is green with the attestation bound to it, it goes to Kun alongside #7762 as a pick-one decision. |
65e39c9 to
01eef7d
Compare
|
Quick context while this waits on workflow approval:
Ask: approve the workflows so CI can report on the current head. |
What Changed
bin/fm-procevent.shpublish path now checks the wake queue under lock and appends aprocevent:<source>:<sequence>check only when that key is not already queued, so each result keeps at most one queued wake and is republished after the row is consumed untilhandledrecords it.docs/configuration.md, theprocess-event-sourcesskill, and verification docs from re-announce-on-every-reconcile to once-per-queued-wake with republish-after-consume.tests/fm-procevent.test.shto assert no duplicate while queued, single-row republish after consume, and a quiet queue once handled.Risk Assessment
✅ Low: The change is narrowly scoped and uses the existing queue lock to suppress duplicate publication while preserving re-announcement after consumption.
Testing
Drove the real bin/fm-procevent.sh against disposable isolated homes: stranded lavish result published once, repeat reconciles while queued published 0 with a single unchanged row, drained queue republished once with no duplicate durable copy, handled result stayed quiet with safe repeat, and terminal endnow result followed the same queued-once/drain-republish/handled-quiet cycle. The repo's fm-procevent suite passes all change-related checks (queued-once, race, terminal-once). One unrelated orphan-reparent assertion fails on ppid (environment, no init reparent).
Evidence: live procevent once-per-queue transcript (24 live assertions)
Source: live procevent once-per-queue transcript (24 live assertions)
Evidence: fm-procevent suite log (change-related ok lines)
Source: fm-procevent suite log (change-related ok lines)
Pipeline
Updates from git push no-mistakes
⏭️ **intent** - skipped
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
✅ **Review** - passed
✅ No issues found.
FM_HOME=<disposable-0700-home> bin/fm-procevent.sh reconcilefirst publish, repeat-while-queued, burst x3, drain-republish, handled-quiet cycleFM_ROOT_OVERRIDE=<endnow-fixture> FM_HOME=<disposable-home> bin/fm-procevent.sh register/start/reconcile/handledterminal queued-once cyclebash tests/fm-procevent.test.shtargeted suite (change-related assertions pass)✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.