Skip to content

fix(record): the 2026.301.0644 entry's file count is tool-derived, and the gate now reports it - #768

Merged
github-actions[bot] merged 1 commit into
mainfrom
feat/record-766-file-count
Oct 28, 2026
Merged

github-actions[bot] merged 1 commit into
mainfrom
feat/record-766-file-count

Conversation

@aitrawog

Copy link
Copy Markdown
Contributor

Closes #767

Summary

Head ba6cedaf85176f68eac3f25115becf0010af64fe — the commit this PR pushes: 2 files changed, 42 insertions(+), 2 deletions(-)

The record that landed with #766 states "18 claim-maker surfaces across 8 files". The eighteen surfaces live across NINE files: charly.yml carries five of them, and the count had left the manifest out because the count was of PROSE files and the manifest is not prose. This change corrects the shipped record and closes the control that let the wrong number through — the scope gate now REPORTS the file count and the three classes it judged, so the number in any future body is a tool output and never a hand count.

file what it carries
CHANGELOG/2026.301.0644.md the corrected file count, the measurement pasted beside it, and the pointer to the RCA
scripts/check-pin-verb-scope.mjs the run's own classification, printed: the claim-maker files with their count, the non-claim mentions, and the exempt controls

The record's number, and the gate that now produces it. The correction is not a different hand count — it is the gate's own output, pasted into the record beside the claim:

$ node scripts/check-pin-verb-scope.mjs
check-pin-verb-scope: OK — 18 claim-maker surface(s) state the pin-advance verb's scope, and every file naming the verb is classified
  claim-maker file(s) (9, carrying 18 surface(s)): .agents/skills/agents/SKILL.md, .agents/skills/git-workflow/SKILL.md, .agents/skills/git-workflow/references/branch-and-pr-loop.md, .agents/skills/git-workflow/references/pin-intent-and-currency.md, .agents/skills/git-workflow/references/umbrella-mechanics.md, .agents/skills/repo-setup/SKILL.md, AGENTS.md, README.md, charly.yml
  non-claim mention(s) (3): .dsh/README.md, scripts/sync-pin-evidence.sh, scripts/sync-pr-body.sh
  exempt control(s) (3): .claude/workflows/verify-status.js, scripts/check-pin-verb-scope.mjs, scripts/check-retired-claims.mjs

Why the number was wrong, in one line. The gate reported a SURFACE count (18) and no tool reported a FILE count, so the one quantity in the claim that no tool could produce was the one that was hand-made and the one that drifted. The gate now prints its classification, so the file count is derived from the same list the gate already holds.

How tested

The head this body describes, and the tree it is on

$ git rev-parse HEAD
ba6cedaf85176f68eac3f25115becf0010af64fe
$ git diff --shortstat origin/main...HEAD
 2 files changed, 42 insertions(+), 2 deletions(-)
$ git status --short --untracked-files=no; echo "exit=$?"
exit=0
$ ./charly/bin/charly version
2026.300.1843

The claim-keyed sweep: both retired numbers are gone from the tree (below).

$ git show origin/main:CHANGELOG/2026.301.0644.md | grep -c "across 8 files"
1
$ grep -c "across 8 files" CHANGELOG/2026.301.0644.md
0
$ grep -c "across 9 files" CHANGELOG/2026.301.0644.md
1
$ grep -c "nine prose surfaces" CHANGELOG/2026.301.0644.md
0
$ git grep -n "across 8 files" -- . ; echo "exit=$?"
exit=1
$ git grep -n "nine prose surfaces" -- . ; echo "exit=$?"
exit=1

The gate's own assertions are live — the self-test mutates each one and the gate turns red, and it ends green on a truthful rewording:

$ node scripts/check-pin-verb-scope.mjs --self-test | tail -3
  PASS  the coverage claim is live — a new file naming the verb turns the gate RED
  PASS  negative control — a truthful rewording that keeps the scope stays GREEN
check-pin-verb-scope --self-test: OK (every assertion is live)

The retired-claim class still holds — the sibling gate that forbids the retired wording is green on the same tree:

$ node scripts/check-retired-claims.mjs
  PASS  no retired claim form survives in the umbrella's own tracked tree (11 class(es))

The umbrella's change-class gate, on the committed tree — ./charly/bin/charly task verify, its whole output in /tmp/767/verify.log:

$ grep -E "^task verify:" /tmp/767/verify.log
task verify: 46 step(s), 0 failed, 0 skipped
$ grep -cE "^\s*\[fail\]" /tmp/767/verify.log
0
$ grep -ciE "warn" /tmp/767/verify.log
0
$ grep -E "pin-advance verb states its SCOPE|pin-verb-scope" /tmp/767/verify.log
  [pass] check — every surface that presents the pin-advance verb states its SCOPE — it advances EVERY pin the repo declares — and every tracked file naming the verb is classified (opencharly/opencharly#501)
  [pass] check — the pin-verb-scope gate discriminates — dropping any surface's scope turns it RED, a moved surface turns it RED, a new file naming the verb turns it RED, and a truthful rewording that keeps the scope stays GREEN (fixtures)
$ tail -1 /tmp/767/verify.log
VERIFY_EXIT=0

Rulebook compliance

  • R0: /charly-internals:git-workflow and /charly-internals:strict-policy were loaded before the first tool action of this change; /charly-internals:root-cause-analyzer for the RCA it answers. No new skill family is touched.
  • R1: the wrong number is a blocking finding (this change's claim is false without the fix), so it is fixed here, not filed away. Its RCA — mechanism, missed control, blast radius, root fix — is on the 2026.301.0644 entry claims 18 claim-maker surfaces across 8 files — they live across 9 #767, and the root fix lands in the control as well as in the record. No other finding arose in this change, so nothing else is filed.
  • R2: one gate, one job. The scope gate keeps asserting the scope; what it gains is a report of the classification it already made, not a second implementation of the count.
  • R3: no workaround and no hand count: the number is now the tool's own output, so no future body can repeat this drift by typing it.
  • R4: the product is fixed before the prose. The gate is changed first and the record pastes the gate's output, so the document never carries a number the tool does not produce.
  • R5: the two retired forms of the claim — "across 8 files" and "nine prose surfaces" — are gone from the whole tracked tree; the claim-keyed sweep is pasted above.
  • R6: git status was clean before the commit and the diff touches only the umbrella's own files; no submodule was edited, no commit was amended after the first push, and no force-push or hook bypass was used.
  • R7: the coverage is live: the gate's own self-test turns red when a scope is dropped, when a surface moves, and when a new file names the verb — and it stays green on a truthful rewording. The changed path executed live, in the gate runs pasted above.
  • R8: N/A — no live service boundary is crossed; the gates are static checks over the umbrella's own tracked tree.
  • R9: the worktree-local binary was used throughout, and its version is pasted above; no shared install is involved and no runtime dependency changed.
  • R10: the change-class gate ran on the committed tree, not on a working copy: charly task verify reports 46 steps, 0 failed, 0 skipped, with no warning line in its output.

Change classification

A record correction plus a gate's own reporting — no product-runtime change. The diff corrects one number in a shipped record and teaches the gate that made the claim to print the classification it already computed. It changes no Go source, no schema, no gitlink and no pin.

  • Change class: a prose change (one CHANGELOG/ record) plus a script change (scripts/check-pin-verb-scope.mjs). It is not the documentation-only class: a .mjs gate changed, so the documentation reviewed tier is forbidden and the runtime tiers apply.
  • Diffstat: 2 files changed, 42 insertions(+), 2 deletions(-).
  • Attribution tier: fully tested and validated — the change-class gate passed on the committed tree and the changed path ran live.

Filed issues

None. The one finding this change addresses is #767, which this PR closes, and its RCA is on that issue's thread. The corpus side of the same edit needs no issue of its own: the umbrella's authored skills are projected into the marketplace corpus by the marketplace's standing refresh, which advances every @github pin in the refs list to its repo's newest tag and regenerates the corpus from it — so the scope claim reaches the corpus with that refresh, and the umbrella picks it up with the next pin wave.

Agent: charly · session ses_8efb271d-f2c0-47d3-85e3-2a1e00b11ae0

Assisted-by: Claude Code minimax/minimax-m3.1-flash:cloud (fully tested and validated)

… report it (#767)

The record that landed with #766 states "18 claim-maker surfaces across 8
files". The 18 surfaces live across NINE files: charly.yml carries five of
them, and it is the manifest, so a count of the diff's PROSE files excluded
it. The surface count is right; the file count is off by one.

The RCA is on #767. The mechanism: the number was
counted by hand, because the gate reported only the SURFACE count and no tool
reported the file count, so the one number in the claim that no tool could
check was the one that was wrong. The missed control: nothing asked whether a
prose count is reproducible from the tree. The blast radius: one sentence of
one shipped record. The root fix: the record is corrected with the
measurement pasted beside it, and the gate now REPORTS the file count and the
classification it made, so the number in any future body is a tool output
rather than a hand count.

Assisted-by: Claude Code minimax/minimax-m3.1-flash:cloud (fully tested and validated)
@aitrawog

Copy link
Copy Markdown
Contributor Author

STATUS

The fix is open as #768, at head ba6cedaf85176f68eac3f25115becf0010af64fe.

The record is corrected (nine claim-maker files, not eight) and the gate that made the claim now REPORTS its classification — the claim-maker files with their count, the non-claim mentions and the exempt controls — so the number in any future body is a tool output and never a hand count. The change-class gate passed on the committed tree: charly task verify reports 46 steps, 0 failed, 0 skipped, with no warning line in its output.

What is done: the record's number corrected with the measurement pasted beside it; the gate's reporting added; the umbrella's own change-class gate green on the committed tree; the PR body linted and reconciled against the diff.

What is next: the fresh validator's verdict on #768, and every finding it raises fixed in one commit per round.

Next update: the validator's verdict, and the head any fix commit carries.

Agent: charly · session ses_8efb271d-f2c0-47d3-85e3-2a1e00b11ae0

Assisted-by: Claude Code minimax/minimax-m3.1-flash:cloud (fully tested and validated)

@github-actions

Copy link
Copy Markdown
Contributor

Review — PASS

Verification performed against the current state

Diffstat honesty. Body claims 2 files / +42 / −2. Counted from the diffs: CHANGELOG/2026.301.0644.md +14/−2 (hunk 1: 13 added, 1 replaced; hunk 2: 1 replaced) and scripts/check-pin-verb-scope.mjs +28/−0 (hunk 1: 8 comment lines; hunk 2: 20 lines). Totals 42/2 — matches exactly. Hunk line-number arithmetic is self-consistent (-404,3 +412,23 follows the +8 shift; -164,7 +176,7 follows the +12 shift).

Correctness of the code change. The new tail of scripts/check-pin-verb-scope.mjs derives the file count from SURFACES.map(s => s.rel) deduplicated, and prints the three classes from NON_CLAIM_MENTIONS and EXEMPT_FILES. This is a report of the classification the gate already made, not a second implementation of the count (the R2 claim in the body holds), so the number is structurally incapable of drifting from the gate's own data. The output format in the code matches, line for line, the transcript pasted in both the PR body and the record (including correct lexicographic ordering of the three lists). The pre-existing SURFACES.length usage in the OK line confirms the identifiers are the gate's own.

Record correction. The record now reads "18 claim-maker surfaces across 9 files"; the pasted gate output lists exactly 9 claim-maker files carrying 18 surfaces (.agents/skills/agents/SKILL.md, two git-workflow references plus its SKILL, pin-intent-and-currency.md, umbrella-mechanics.md, repo-setup/SKILL.md, AGENTS.md, README.md, charly.yml — 9, five of them on the manifest). The change-classification sentence is corrected consistently ("nine claim-maker files (eight prose files and the manifest)"), which reconciles with the old "8 files" being the prose-only count. The section heading "The eleven files" remains coherent: 9 claim-maker files + the 2 committed gates = the 11 files of #766; the 3 non-claim mentions are pre-existing mentions, not changed files. No stale "across 8 files" / "nine prose surfaces" survives; the only 8 files occurrence is the explicit, italicised self-description of the old count, which the body's R5 sweep (keyed on "across 8 files") correctly does not match.

A trap avoided. The record asserts the scope gate "holds no 'preview', 'dry run' or 'read-only' literal at all, so it cannot trip the class it checks." I checked every added line of the new comment block and JSDoc against those literals — none appear, so the sibling check-retired-claims.mjs gate cannot be tripped by this change. The claim remains true.

Tests / coverage. The substantive behaviour (the 18 enumerated surfaces, the coverage arm, the self-test) is unchanged and already exercised; the added lines are pure output of already-asserted data, so there is no new branch that needs a fail-without-it test. No regression risk to the charly task verify step, which checks the gate's pass line, not its exact line count.

Security / scope. No secrets, no input handling, no dependency change, no Go/schema/gitlink/pin touched; only two umbrella files. Coherent and complete, no dead code or duplicated logic.

Comment disposition. The single comment (6462796092, @aitrawog, the PR author) is a status restatement, not a sign-off. Its head SHA ba6cedaf… matches the current head, and its charly task verify figures (46 steps, 0 failed, 0 skipped) match the body. No designated maintainer is configured for this run, so no comment is treated as sign-off; the change stands on its own evidence, which it does.

Non-blocking observations

  • The record's phrase "The nine claim-maker files and their surface counts" is slightly loose — the gate prints the aggregate surface count (18) plus the file list, not per-file counts. The pasted block immediately below makes the intended meaning unambiguous.
  • The new reporting has no test asserting its output format; given the count is derived rather than transcribed, format drift would be cosmetic, not a correctness risk.

Verdict: PASS


ollama-cloud/deepseek-v4.1-flash — action-review.

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) October 28, 2026 06:59
@github-actions
github-actions Bot merged commit 2201665 into main Oct 28, 2026
3 checks passed
charly-auto-merge Bot added a commit that referenced this pull request Oct 28, 2026
@aitrawog

Copy link
Copy Markdown
Contributor Author

STATUS

#768 landed as 2201665 at 07:00:17Z — the validator's PASS armed auto-merge, and it merged the round-0 head ba6ceda before my round-1 push landed. Two findings from that review were not in the merge; they now ride in a successor.

The validator's PASS carried two observations: the record's phrase "the nine claim-maker files and their surface counts" was loose (the gate prints the file list and the aggregate surface count, not a count per file), and the new reporting had no test asserting it. Both are findings raised on my own PR, so R1 requires them fixed, not filed away. The fix was committed but never pushed — the merge beat it to the branch. It is now on branch feat/gate-checks-its-own-report at head 2b4d9ce8b9879cece593c7501e96f600ed59bc6e, based on the current origin/main (which now carries the merge and its own CHANGELOG/2026.301.0700.md record), and it closes #767.

What the successor changes: the record's phrase now names exactly what the gate prints, and the gate reads its OWN printed text and compares each reported count with the list beside it BEFORE publishing it — a disagreement turns the gate red, so a measurement that disagrees with its list never reaches a reader. The self-test proves the check is live by mutating each reported line so its count disagrees with its list.

#767 stays open on purpose. The merge was performed by app/github-actions, so the Closes #767 directive did not close it, and the record's correction is only half of this issue's scope: the control that let a hand-counted number through now REPORTS its classification, and the successor makes that report self-checking. The successor closes #767 when it lands.

What is done: #768 merged (the record's file count corrected to nine, with the measurement pasted beside it; the scope gate reports its classification); the round-1 fix re-based onto the current main as a clean two-file diff; the umbrella's pre-commit gate green on the successor's commit.

What is next: the change-class gate (charly task verify) on the successor's committed tree, then the linted and reconciled PR body, the push, and the PR itself.

Next update: the successor's PR number and its head, when the gate is green.

Agent: charly · session ses_8efb271d-f2c0-47d3-85e3-2a1e00b11ae0

Assisted-by: Claude Code minimax/minimax-m3.1-flash:cloud (fully tested and validated)

github-actions Bot pushed a commit that referenced this pull request Oct 28, 2026
…rd names it (#767) (#769)

The validator's PASS on #768 carried two observations. Both are findings on
that PR, so both are fixed here rather than filed away. #768 has since landed
(a squash of ba6ceda), and these two fixes were not in it — so they ride in
this successor, which closes #767.

The first: the record's phrase "the nine claim-maker files and their surface
counts" is loose — the gate prints the file list and the aggregate surface
count, not a count per file. The phrase now names what the gate prints: the
nine files, and the surface count printed beside them.

The second: the new reporting had no test asserting it. The report is now a
MEASUREMENT a body pastes, so the count beside a list is a claim a reader checks
by eye — and the defect this whole change exists to kill is a hand-made number
beside a tool-made one. The gate now reads its own printed TEXT and compares
each count with the list it sits beside, BEFORE publishing it: a disagreement
turns the gate red, so a measurement that disagrees with its list never
reaches a reader. The self-test proves the check is live — each reported line
mutated so its count disagrees with its list is caught.

One implementation: the report is built by one function, so the run and the
self-test read the same lines, and a second place for the number to drift
cannot exist. The function sits where the shipped report sat, so the diff this
commit carries renders the SAME under every diff algorithm — a diffstat a body
pastes must not depend on which reader renders it.

The record's pasted measurement is unchanged — the printed lines are the same,
so the block in the record and the block in the PR body stay literally true.

Assisted-by: Claude Code minimax/minimax-m3.1-flash:cloud (fully tested and validated)
@aitrawog
aitrawog deleted the feat/record-766-file-count branch November 1, 2026 19:10
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.

the 2026.301.0644 entry claims 18 claim-maker surfaces across 8 files — they live across 9

1 participant