Skip to content

test(dogfood): match condensed CLAUDE.md format in scholar-config check#459

Merged
Data-Wise merged 1 commit into
devfrom
fix/dogfood-scholar-claude-md-assertion
Jun 5, 2026
Merged

test(dogfood): match condensed CLAUDE.md format in scholar-config check#459
Data-Wise merged 1 commit into
devfrom
fix/dogfood-scholar-claude-md-assertion

Conversation

@Data-Wise

Copy link
Copy Markdown
Owner

Fixes the long-standing 1/41 failure in dogfood-scholar-config-sync (present on dev, unrelated to any feature work).

Root cause

Check [34] grepped for the literal strings teach solution, teach sync, teach validate-r, but commit a03916ba ("docs(claude): optimize — move teach/dispatcher detail to pointers") condensed CLAUDE.md's teach docs into a single subcommand list (..., solution, sync, validate-r, ...). The subcommands are still documented — the assertion went stale.

Fix

Accept either form via alternation: teach <sub> OR [(,] ?<sub>[,)]. The character-class boundaries keep it non-vacuous and stop it matching the --sync deploy flag on the same line.

Fixes the test, not the doc — re-adding per-command lines would undo the deliberate CLAUDE.md optimization.

Verification

  • Check [34] passes; full suite 59 passed, 0 failed, 1 expected timeout (restores the true clean baseline).
  • Non-vacuous: removing solution from the list fails the check; removing the sync subcommand while keeping --sync also fails (no false match).

🤖 Generated with Claude Code

Check [34] grepped for the literal two-word strings `teach solution`,
`teach sync`, `teach validate-r`, but a03916b ("docs(claude): optimize —
move teach/dispatcher detail to pointers") condensed CLAUDE.md's teach docs
into a single subcommand list (`..., solution, sync, validate-r, ...`). The
subcommands are still documented, so the doc is correct and the assertion
was stale — failing 1/41 on dev independent of any feature work.

Accept either form via an alternation: `teach <sub>` OR `[(,] ?<sub>[,)]`.
The [(,]/[,)] boundaries keep it non-vacuous and stop it matching the
`--sync` deploy flag on the same line (verified: removing the `sync`
subcommand while keeping `--sync` still fails the check).

Fixes the test, not the doc — re-adding per-command lines would undo the
deliberate CLAUDE.md optimization.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@Data-Wise Data-Wise merged commit d611e37 into dev Jun 5, 2026
1 check passed
@Data-Wise Data-Wise deleted the fix/dogfood-scholar-claude-md-assertion branch June 5, 2026 18:30
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