Repository navigation
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s, exact shares Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… shares, base-missing on removed maps Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…title Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… test Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 29, 2026
This was referenced Nov 29, 2026
This branch has not been deployed
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.
srcly capabilities checkreads a repo's capabilities map (docs/capabilities/*.yaml) and fails when it drifts from the code: a new code file no capability claims, a path oronly:name that no longer resolves, or a built capability with no test. It also sizes each capability in allocated LOC and prints the same facts as JSON for agents and the coming capability treemap.What you'll see
srcly capabilities check [repo]prints a verdict, each error with its fix, every capability with its allocated LOC and tests, and the largest unclaimed files. It exits 1 on any error.--format jsongives nodes, resolved refs (eachonly:name with the line it resolved to, or its candidates), allocated LOC with exact fractions, unclaimed files, shared files and diagnostics.--base <ref>(defaultorigin/main) compares with the merge base;--no-baseskips the new-code and deleted-test rules.docs/capabilities.md. The agent recipe that drafts a map from Srcly's facts isskills/srcly-capabilities/SKILL.md.Proof
On Visual Notes with its drafted map (byronwall/visual-notes#375), the check passes, and the totals add up:
The same tree fails after an agent adds an unclaimed file, and passes once the map claims it:
The first check on Visual Notes, with a fresh scan, took 5.2 s wall time.
server/tests/test_capabilities.py(25 tests) builds a small Git repo and covers each rule: unclaimed new code, stale paths with rename, case and glob hints, ambiguousonly:names, missing and deleted tests, a removed map, a missing base, invalid data, bracket route files ([id].tsx), and exact LOC conservation for a file split three ways.scripts/check.sh server: 687 passed.Codex review ran 3 rounds. Round 1 (4 P1): an unavailable base let unclaimed code pass, a regex title matcher counted commented-out tests, a README counted as a test, and an old case spelling stayed valid on macOS. Round 2 (3 P1): a deleted map passed with no base,
test.stepstood in for a test, and JSX in.test.jshid titles. All are fixed: titles now come from tree-sitter, and a test link must be a test or fixture file. Round 3 passed with 3 P2s; two are fixed (test.failtitles, a comment before a title).Survey moves: server traces 215 → 224 (+9, all
partial) and their stops (filesystem +18, unproven-handoff +1, budget-exhausted +15, external-code +311) come from the new corpus filesserver/app/services/capabilities/{anchors,check,model}.pyandreporting.load_or_scan. No analysis code changed; client and value-flow-basics did not move.Limits
deleted-testis a review item, not an error. A deleted test fails the check only when it leaves the capability with no test.pyyamlto the server's dependencies.Open findings
git ls-files, so the check leaves it out of eligible LOC and cannot claim it. Open: needs a recursive inventory and base reads at the gitlink commits; no mapped repo has submodules yet.Stack: capabilities
What splits: the capabilities file's check (CLI and JSON), the Capabilities view built on it, and a design pass on that view.
Why it splits: the check is core logic that a CLI and CI use on their own; the view is UI you judge on screenshots; the design pass is a restyle you can take or leave.
Why this split: one PR would mix an algorithm review with a UI review. Splitting the check into parser and lint layers was rejected: the rules and the parser only make sense together.
srcly capabilities check, its docs and the agent recipe.GET /api/capabilitiesand the Capabilities view.🤖 Generated with Claude Code