Skip to content

Give this repository a CI that runs the gate already in it - #1

Merged
BoozeLee merged 2 commits into
mainfrom
docs/canonical-gates
Nov 22, 2026
Merged

BoozeLee merged 2 commits into
mainfrom
docs/canonical-gates

Conversation

@BoozeLee

@BoozeLee BoozeLee commented Oct 4, 2026

Copy link
Copy Markdown
Owner

There was no .github directory here, and scripts/check-home-paths.sh was referenced by nothing in the repository — no Makefile target, no workflow. It had been maintained and never been run by anything that could fail.

It is also the generation that reports 0 for a tree it could not look at. Measured on the five states the contract names:

subject before after
not a work tree 0 2
work tree, nothing tracked 0 2
path does not exist 0 2
one real finding 1 1
clean 0 0

The first three should be 2. A gate that says "clean" about a tree it never scanned produces a line in a log nobody can tell from a pass.

So: the canonical 271-line gate in place of the 126-line one, the workflow gate, the meta-gate, one entry point, and the workflow that calls it.

scripts/verify-gates.sh is the single list and CI calls it rather than re-listing the steps, so the two cannot drift apart silently. With hosted Actions unable to run a job on this account, running the CI path locally is the only way to know any of this passes at all.

.gate-manifest registers both gates. The meta-gate reads it to learn this repository's entry point, checks CI calls it, and checks the other direction too: a gate the runner invokes but the manifest does not name is one nobody has asked whether it can fail.

All 44 controls across the family green, 33 of them asserting a refusal. ./scripts/verify-gates.sh exits 0. All commits signed.

🤖 Generated with Claude Code

BoozeLee and others added 2 commits October 4, 2026 23:12
No .github directory, and scripts/check-home-paths.sh referenced by
nothing in the repository -- no Makefile target, no workflow. It had
been maintained and never been run.

It is also the generation that reports 0 for a tree it could not look
at. Measured, on the five states the contract names:

  not-a-repo 0   no-tracked-files 0   missing-path 0   dirty 1   clean 0

The first three should be 2. A gate that says "clean" about a tree it
never scanned produces a line in a log nobody can tell from a pass.

So: the canonical 271-line gate in place of this one, the workflow gate,
the meta-gate, one entry point, and the workflow that calls it.

scripts/verify-gates.sh is the single list and CI calls it rather than
re-listing the steps, so the two cannot drift apart silently. With
hosted Actions unable to run a job on this account, running the CI path
locally is the only way to know any of this passes at all.

.gate-manifest registers both gates. The meta-gate reads it to learn
this repository's entry point, checks CI calls it, and checks the other
direction too: a gate the runner invokes but the manifest does not name
is one nobody has asked whether it can fail.

All 39 controls green, 28 of them asserting a refusal.
…hat finds its own root

Two of the subject kinds needed more than a path argument. A gate that
resolves its repository from Path(__file__).parent.parent ignores a
fixture path, audits the real repository, and answers 0 -- a clean
verdict about a tree it never looked at, which is the exact failure the
auditor exists to refuse. So there is a third invocation mode now:
`relocated` copies the gate into the fixture and runs it from there.

The `skill-tree` kind goes with it. Its subject is a skills/ directory
of SKILL.md files, and its unlookable fixture is a directory that exists
and holds nothing -- not an absent one, because a gate that handles 'no
directory' but not 'directory with nothing in it' is the common
half-finished case.

Its dirty fixture carries a defect of each class a skill gate might own.
The frontmatter gate looks at the content of a SKILL.md; the roots gate
looks at whether one name is reachable from two roots. A fixture holding
only a malformed skill satisfies the first and reports 0 for the second,
and the auditor would refuse a gate behaving correctly. That was not
hypothetical: it is what happened the first time this kind was wired to
elohim.

Twenty controls, sixteen asserting a refusal. 44 across the family.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@BoozeLee
BoozeLee merged commit c55da23 into main Nov 22, 2026
0 of 2 checks passed
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