Skip to content

docs: README describes the source=compact gate PR #379 added - #388

Merged
fdaviddpt merged 1 commit into
mainfrom
fix/384
Aug 28, 2026
Merged

fdaviddpt merged 1 commit into
mainfrom
fix/384

Conversation

@fdaviddpt

Copy link
Copy Markdown
Contributor

Summary

PR #379 gated two behaviours in scripts/session-start-hook.sh on source != compact: the handoff delivery counter (already delivered N times) no longer increments on an auto-compaction refire, and the consolidation trigger no longer re-spawns run-consolidation.sh on a compact fire with pending past-day staging. README.md described both behaviours without mentioning either gate -- the #341/#377 lanes could not close this because README.md was held by a concurrent lane at the time.

  • Added a paragraph after the existing "Except after a compaction" section (README.md, ## How it works) stating that the same source=compact check also suppresses the delivery-counter increment and the consolidation re-spawn, with startup/resume/clear/fork unaffected.
  • Added a sentence to the handoff-delivery paragraph (## Handoff between sessions) with a concrete example: a handoff delivered once and refired by four compactions still reads "delivered 1 time", not 5.
  • Added changelog.d/384.fixed.md.

Both additions were verified against the actual guards in scripts/session-start-hook.sh (the SESSION_START_SOURCE case statement and the two != "compact" checks), not just against the issue text, per the issue's own instruction to check what the code does rather than trust the issue's summary of somebody else's PR.

Below-bar finding

None. Both spawned reviewers (Explore + oss:auditor) returned zero findings against this diff -- the addition matches the code exactly and no adjacent stale prose was found.

Test plan

  • python3 -m pytest tests/test_version_manifest.py tests/test_delivery_record_per_machine_285.py tests/test_handoff_delivery_count_source_341.py tests/test_consolidation_trigger_source_342.py -q -- 14 passed
  • python3 .oss/assemble_changelog.py --check -- ok, 13 fragments including 384.fixed.md
  • Manually confirmed both new README paragraphs against scripts/session-start-hook.sh's source=compact guards (lines ~184, ~997, ~1205)
  • Note: tests/test_content_invariants.py, named in the issue's own "what would settle it", does not exist in this repo -- there is no machine-checkable invariant pinning this README content today; see PR description / report for detail.

Closes #384

Two paragraphs described pre-#379 behaviour of the handoff delivery
counter and the consolidation trigger without mentioning that an
auto-compaction refire (source=compact) no longer inflates the
counter or re-spawns run-consolidation.sh. startup/resume/clear/fork
are unaffected either way. (#384)

Co-Authored-By: Max <noreply>
@fdaviddpt
fdaviddpt merged commit 2e81385 into main Aug 28, 2026
13 checks passed
@fdaviddpt
fdaviddpt deleted the fix/384 branch August 28, 2026 07:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

README does not say that source=compact no longer inflates the delivery counter or re-triggers consolidation

1 participant