Skip to content

docs: correct the adf tidy note and document score, telemetry, stamp-policies - #321

Merged
stackbilt-admin merged 1 commit into
mainfrom
docs/cli-reference-sweep
Sep 21, 2026
Merged

stackbilt-admin merged 1 commit into
mainfrom
docs/cli-reference-sweep

Conversation

@stackbilt-admin

Copy link
Copy Markdown
Member

Docs sweep over docs/, README.md, CHANGELOG.md and CLAUDE.md after today's six merges (#313, #314, #315, #316, #317, #319). Two findings, both in docs/cli-reference.md.

1. The adf tidy entry described behavior #296 changed

The note read:

Note that the skip for compiler output lives in the generated pre-commit hook, which drops banner-carrying files before invoking tidy — not in adf tidy itself. Run directly against a compiled file, tidy treats it as a pointer and folds its content back into .ai/. See #296.

Both halves are now wrong, and the first was never right in the way it reads:

Replaced with what the command actually does, and why.

2. Three top-level commands had no reference entry

score, telemetry and stamp-policies — 16 of 19 commands were documented. This is the same completeness gap #308 closed for the five undocumented adf subcommands.

Flags and behavior were taken from each command's own --help output and its source, not inferred. Specifically verified against the implementation rather than copied from prose:

  • --ci exits 1 below 60 — score.ts:290 CI_MIN_SCORE = 60
  • --badge --write writes .charter/badge.json — score.ts:318
  • telemetry report --period accepts 30m|24h|7d, defaulting to 7d — telemetry.ts:47,161

The score entry also documents how grounding resolves path references, which #293 changed materially and which nothing described: a reference that does not resolve literally is retried by basename, requiring both a unique match and agreement between the authored path segments and the real file's trailing segments. That is what stops a fenced directory tree scoring as dozens of broken references while keeping a genuinely stale path reported.

Audited and clean

Verification

  • charter score 93/100 unchanged; broken references 48 → 47, so the added path references resolve rather than costing grounding.
  • Pre-commit gate passed: tsc --noEmit clean, ADF evidence all eight ceilings PASS.
  • No source files touched.

Issue sweep

The skill's stale-marker query returned no candidates. Two issues carried line references invalidated by today's refactors and were updated by hand:

…policies

The `adf tidy` entry in the CLI reference described behavior that #296 changed.
It stated that the skip for compiler output lived in the generated pre-commit
hook rather than in the command, and that tidy run directly against a compiled
file would treat it as a pointer and fold its content back into .ai/. Both were
true when written; the first was never true in the way it read, since the hook
invokes tidy without --source and the filtered list never reaches the command
(#320). The entry now states what the command does.

Three top-level commands were implemented but carried no reference entry, the
same completeness gap #308 closed for the adf subcommands: score, telemetry and
stamp-policies. Flags and behavior taken from each command's own help output and
source, not inferred -- CI_MIN_SCORE, the .charter/badge.json path and the
30m/24h/7d periods were each checked against the implementation.

The score entry documents how grounding resolves path references, since #293
changed it materially and nothing described it: a reference that does not exist
literally is retried by unique basename with the authored path segments required
to match, which is what stops a fenced directory tree scoring as dozens of broken
references while leaving genuinely stale paths reported.

charter score 93/100 unchanged; broken references 48 -> 47.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@stackbilt-admin
stackbilt-admin merged commit 10d28b0 into main Sep 21, 2026
5 checks passed
@stackbilt-admin
stackbilt-admin deleted the docs/cli-reference-sweep branch September 21, 2026 01:51
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