Repository navigation
docs(bin): clarify fleet freshness is point-in-time - #4
Merged
Merged
Conversation
An investigation found a secondmate recorded a wrong learning after its clone went stale following a session-start freshness report. The report was true when made and went stale later; nothing said so. Documents that in fm-fleet-sync.sh's header, the single owner of its report-string semantics.
This was referenced Sep 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Intent
Documentation only: make explicit that a session-start project-clone freshness result (bin/fm-fleet-sync.sh) is a point-in-time fact, not a standing guarantee for the rest of the session, so work that depends on current project code refreshes or re-verifies immediately before using that code. Triggered by a concrete incident: a session-start refresh correctly reported a clone current at 13:18, a PR merged at 13:56 advancing origin/main, and at ~14:08 a secondmate found its clone one commit behind and wrongly recorded a durable learning that the refresh 'reports clean while stale' - the report was true when made and went stale afterward, which is expected behavior, not a sync defect. Explicitly out of scope: do not change any sync logic, comparison, or output string in bin/fm-fleet-sync.sh - an investigation already confirmed fm-fleet-sync.sh's clean/current report correctly compares local default against remote-tracking ref after a successful fetch, and a failed fetch already reports 'skipped: fetch failed' rather than falling through to 'already current'. Applied the coding guidelines' knowledge-placement decision tree and one-owner rule: added a 6-line clarification to bin/fm-fleet-sync.sh's header comment block, immediately after the existing description of skipped/fetch-failure reporting, since that script is the single owner of its own report-string semantics (mechanics belong in the script header per the decision tree, and AGENTS.md is size-disciplined and needs no pointer here). Did not duplicate this in AGENTS.md, docs, or bin/fm-startup-network.sh (which only runs the deferred network stage and is not the owner of fleet-sync's report semantics). No agent listed as commit co-author per repo style rules.
What Changed
Risk Assessment
✅ Low: Captain, the revised documentation-only change accurately limits the point-in-time guarantee to successful freshness results and conforms to all stated scope and ownership constraints.
Testing
No prior baseline results were supplied. Focused inspection, the repository documentation check, and manual evidence verification confirmed that the maintainer-visible header clearly describes freshness results as point-in-time, places the guidance directly after fetch-failure reporting, duplicates it nowhere else, preserves byte-identical executable script content, and adds no co-author trailer; the worktree remained clean.
Evidence: Fleet-sync freshness documentation validation transcript
Pipeline
Updates from git push no-mistakes
✅ **intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
🔧 **Review** - 1 issue found → auto-fixed ✅
bin/fm-fleet-sync.sh:16- “Every report” is too broad:sync_projectemits several reports before any fetch (invalid directory/repo, local-only, or no origin) and after a failed fetch, so those reports cannot describe when “this run's fetch completed.” Narrow this to successful freshness results such asalready currentorsynced.🔧 Fix: Narrow fleet freshness wording to successful results
✅ Re-checked - no issues remain.
✅ **Test** - passed
✅ No issues found.
git diff --find-renames --find-copies eb627ec7fe31f130f63c143dd1bba9a7ca205664..d247ebebceb924d96aa8bec6dc198d0f8d3ee00cgit log --oneline --no-merges eb627ec7fe31f130f63c143dd1bba9a7ca205664..d247ebebceb924d96aa8bec6dc198d0f8d3ee00crg -n -i "point-in-time|standing guarantee|going stale|refresh or re-verify|already current.*synced|freshness result" --glob '!bin/fm-fleet-sync.sh' .bin/fm-doc-audience-check.shCompared base and targetbin/fm-fleet-sync.shafter excluding blank and full-line comment lines withcmp -sCaptured the target header, changed-path scope, one-owner search, executable-content comparison, documentation check, and commit-trailer check in the evidence transcriptgit status --short✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.