Repository navigation
docs: correct the adf tidy note and document score, telemetry, stamp-policies - #321
Merged
Merged
Conversation
…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]>
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.
Docs sweep over
docs/,README.md,CHANGELOG.mdandCLAUDE.mdafter today's six merges (#313, #314, #315, #316, #317, #319). Two findings, both indocs/cli-reference.md.1. The
adf tidyentry described behavior #296 changedThe note read:
Both halves are now wrong, and the first was never right in the way it reads:
adf tidynow detects the compile banner and skips the file.STAGED_VENDORS, but it then callsadf tidy --dry-run --format jsonwith no--source, andadf-tidy.ts:106-108falls back to scanning every vendor file on disk. The filtered list never reaches the command. Filed as hook: the compiled-file skip in both pre-commit hooks is dead code — tidy is invoked without --source #320; it is the reason bug(adf tidy): ingests compiled vendor output back into core.adf, duplicating content and reverting deliberate deletions #296 reached commits despite appearing guarded.Replaced with what the command actually does, and why.
2. Three top-level commands had no reference entry
score,telemetryandstamp-policies— 16 of 19 commands were documented. This is the same completeness gap #308 closed for the five undocumentedadfsubcommands.Flags and behavior were taken from each command's own
--helpoutput and its source, not inferred. Specifically verified against the implementation rather than copied from prose:--ciexits 1 below 60 —score.ts:290CI_MIN_SCORE = 60--badge --writewrites.charter/badge.json—score.ts:318telemetry report --periodaccepts30m|24h|7d, defaulting to7d—telemetry.ts:47,161The
scoreentry 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
README.md— quickstart is the compile path, consistent now that fix(adf): stop tidy ingesting compiled vendor output #319 stopstidyeating compiled output. No stale version strings.CHANGELOG.md— all six merges have accurate entries. Extended the existing "CLI reference completeness" line rather than adding a competing one.CLAUDE.md— 18 lines, still a thin pointer. No anti-bloat violation.docs/cli-reference.mdall resolve; the#tracked-telemetryanchor added by fix(doctor): detect tracked .charter/telemetry and name the untrack fix #316 exists.pnpm run docs:checkpasses.Verification
charter score93/100 unchanged; broken references 48 → 47, so the added path references resolve rather than costing grounding.tsc --noEmitclean, ADF evidence all eight ceilings PASS.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:
bootstrap.ts:962/964→:1023/1025,:878→:908after fix(bootstrap): print every phase's warnings and detect Windows absolute --ai-dir #317'scompletePhaserefactor. Also corrected its reasoning: it attributes the unnoticed--forceadvice to warnings being invisible before fix(bootstrap): gitignore telemetry and drop absolute path from .mcp.json #304, but those two warnings live inrunAdfInitPhase, which is phase 3 and has always printed. The substantive ask is unchanged.adf-migrate.ts:44→:41,bootstrap.ts:960→:1058,adf-tidy.ts:34-35→:32-38; all three gaps confirmed still live. Noted that fix(doctor): detect tracked .charter/telemetry and name the untrack fix #316'scheckTelemetryTrackingis a working precedent for thedoctorcheck it asks for, including the two decisions that transfer: read the git index only (neverfs.existsSync, which is case-blind on/mnt/cwhile git is not — and this issue is entirely about case), and emitINFOrather thanWARNso an existing repo's CI does not break on upgrade.