Skip to content

ci: check the capabilities map on every PR - #376

Draft
byronwall wants to merge 3 commits into
claude/capabilities-draftfrom
claude/capabilities-ci
Draft

byronwall wants to merge 3 commits into
claude/capabilities-draftfrom
claude/capabilities-ci

Conversation

@byronwall

@byronwall byronwall commented Nov 29, 2026 •

Copy link
Copy Markdown
Owner

Every PR now runs srcly capabilities check. A PR that adds a code file no capability claims fails the new Capabilities map job, and so does a broken path or a built capability with no test. AGENTS.md tells coding agents to update docs/capabilities/*.yaml in the same PR.

User impact: None in the app. Agents and reviewers get a failing check when the map drifts from the code.

Why

The capabilities map only stays useful if it moves with the code (TASK-0100 W3.4). The lint is the gate; a person then reviews the map's diff to see what the product gained.

Proof

The job failed on a pushed commit that added an unclaimed file, and passed once it was reverted. Both runs are on this PR:

Commit Capabilities map Other jobs Run
eeaeb807 adds app/src/lib/events/week-agenda.ts ❌ failure ✅ 46226069413
8ae8df84 reverts it ✅ success ✅ 46226580240

The failing job's output:

Base: origin/main merge base 08093d850f
Code: 180,021 LOC in 1,395 files. Claimed 154,739 LOC (86.0%, 1,107 files); unclaimed 25,282 LOC (288 files). Totals + unclaimed = eligible.
  [unclaimed-new-code] app/src/lib/events/week-agenda.ts (3 LOC) is new since base and no capability claims it
FAIL: 1 errors

Limits

  • The job pins srcly to commit ba41d651 of feat(capabilities): check and size docs/capabilities area files srcly#502 through uvx --from git+…, because capabilities check is not in a PyPI release yet. After the next srcly release, switch it to uvx srcly@<version> (the comment in checks.yml says so).
  • On a push to main the base is the previous main commit, so a direct push is checked too.
  • The check scans the repo, about 6 s in CI.

Stack: capabilities map, layer 2 of 2

This slice: the CI job and the agent rule.
Why it is its own layer: the map (#375) is for reading; this layer enforces it. Each can be judged alone.
Full story: #375

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@byronwall
byronwall added this pull request to stack #377 November 29, 2026 04:43
byronwall and others added 2 commits November 28, 2026 23:43
…rted next)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The capabilities job failed on it as expected (run 46226069413).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
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