Skip to content

The vault CI pin is part of the release - #51

Merged
dimeloper merged 2 commits into
mainfrom
feat/the-vault-ci-pin-is-part-of-the-release
Sep 22, 2026
Merged

dimeloper merged 2 commits into
mainfrom
feat/the-vault-ci-pin-is-part-of-the-release

Conversation

@dimeloper

Copy link
Copy Markdown
Owner

Follow-on from #50. Both changes come from one observation: the vault's CI was
pinned to v0.57.0 while the machine ran v0.58.0
— the same drift caught on
2026-09-18, when it was two releases behind. The pin itself is already fixed in
the vault repo; this is the part that stops it recurring, plus one thing the
first fix revealed.

1. release-check.sh reports a pin its own tag just made stale (bb2ebbc)

A vault repo running the CI templates pins the engine by tag, in its own copy
of the workflow, in a different repo
. Cutting a release here cannot update it,
so the pin goes stale at exactly the moment of tagging and nothing notices until
someone looks. That is a recurrence, and the practice for a recurrence is to put
the carryover in the procedure — the gate is the procedure.

  The vault's CI still pins the engine at an older tag, so its next
  scheduled run would check this vault with v0.57.0, not v0.58.0:
    .github/workflows/audit.yml — ENGINE_REF: v0.57.0
    .github/workflows/guard.yml — ENGINE_REF: v0.57.0
  Bump both, commit and push in /Users/…/vaults/second-brain:
    sed -i '' 's/ENGINE_REF: v[0-9.]*/ENGINE_REF: v0.58.0/' \
      /Users/…/vaults/second-brain/.github/workflows/*.yml

Never a refusal, and it runs after the tag. The vault is a different repo, it
may not be on this machine, and a release is not wrong because something else has
not caught up. Silence has two cases and both are tested: a pin that already
matches is not news, and a vault this machine cannot read is not evidence of a
stale pin
.

2. The weekly template gains check-markdown.py (f6a04fa)

Fixing the pin surfaced a second thing: make audit runs seven checks and
the weekly template ran four. It has never run check-markdown (v0.43.0),
check-context-freshness (v0.49.0) or check-project-state (v0.58.0).

One of the three belongs there. check-markdown.py reads only the vault, so it
answers the same on a runner as locally — and wrapped code spans, the defect it
was written for, live in exactly the documents that job already checks out.

The other two cannot work in CI, and that is now recorded rather than left
looking like an oversight.
Both compare a vault document against the repo it
describes, and a runner has the vault and no repos. Measured, not assumed:

$ SBW_SCAN_ROOTS=/nonexistent ./scripts/check-project-state.py --vault ~/vaults/second-brain
  skipped   calorie-counter-ai: no reachable repo with a VERSION file
  …                                    # 0 answered, on a machine with repos: 1

Both are built to answer undetermined / skipped rather than pass when they
cannot reach a checkout, so adding them would print a page of "cannot tell" every
Monday — which is how a report teaches people to skim it. The test asserts their
absence with the reason attached, so the next person to notice the 5-vs-7 gap
finds the argument instead of re-deriving it.

Testing

make lint clean. make test: 41 suites, 42 assertions in test-release-check
(6 new), 11 in test-vault-ci (4 new).

test-release-check.sh now copies lib/config.sh into its sandbox, because the
gate genuinely depends on it to find the vault — the 29 failures that appeared
when it did not are how that dependency got noticed.

One pre-existing failure, in a git worktree only: doctor.sh reports
"engine checkout is not a git repo" because .git is a file there. Passes in a
normal checkout and in CI; already tracked as its own follow-up.

🤖 Generated with Claude Code

A vault repo running the CI templates pins the engine by tag, in its own copy
of the workflow, in a different repo. Cutting a release here cannot update it,
so the pin goes stale at exactly this moment and nothing notices until somebody
looks: two releases behind on 2026-09-18, one behind again on 2026-09-22, both
found by hand.

The gate is the procedure, which is where a recurrence belongs rather than on a
task list. Reported after the tag and never a refusal — the vault is a different
repo, it may not be on this machine, and a release is not wrong because
something else has not caught up.

Silence has two cases and both are tested: a pin that already matches is not
news, and a vault this machine cannot read is not evidence of a stale pin.
… cannot answer

`make audit` runs seven checks and the weekly template ran four. One of the
three missing ones belongs there: check-markdown.py reads only the vault, so it
answers the same on a runner as locally, and wrapped code spans — the defect it
was written for — live in exactly the documents that job already checks out.

The other two do not, and the gap is now recorded rather than left looking like
an oversight somebody should close. check-context-freshness.py and
check-project-state.py both compare a vault document against the repo it
describes, and a runner has the vault and no repos. Both are built to answer
`undetermined` / `skipped` rather than pass when they cannot reach a checkout,
so adding them would print a page of "cannot tell" every Monday — which is how
a report teaches people to skim it. The test asserts their absence with that
reason attached, so the next person to notice the gap finds the argument rather
than re-deriving it.
@dimeloper
dimeloper merged commit 14fda9a into main Sep 22, 2026
4 checks passed
@dimeloper
dimeloper deleted the feat/the-vault-ci-pin-is-part-of-the-release branch September 22, 2026 09:45
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.

1 participant