Skip to content

docs: draft the capabilities map - #375

Open
byronwall wants to merge 1 commit into
mainfrom
claude/capabilities-draft
Open

byronwall wants to merge 1 commit into
mainfrom
claude/capabilities-draft

Conversation

@byronwall

@byronwall byronwall commented Nov 29, 2026 •

Copy link
Copy Markdown
Owner

A first capabilities map for Visual Notes: 148 capabilities in 20 product areas under docs/capabilities/, each with a one- or two-sentence promise and the exact code and tests behind it. It is a draft for review: the question is whether the promises describe the product.

What to do with it

Read two areas, about 10 minutes in all, and say whether the promises describe the product (TASK-0100 W3.3):

  1. docs/capabilities/collections.yaml: the area the schema example came from, 16 capabilities.
  2. docs/capabilities/notes.yaml: the largest area, 21 capabilities and 29,390 allocated LOC.

If they read right, the next steps are the CI lint (W3.4) and the capability treemap in Srcly (W3.5). Neither is in this PR. Nothing in the app changes.

Areas

Area Nodes Allocated LOC
Notes (notes) 21 29,390
Collections (collections) 16 16,647
People (people) 10 13,454
Visual map of notes (visual-map) 11 13,166
Research threads (research) 10 10,451
Pathways (pathways) 10 9,452
Events (events) 8 9,029
Web archive (archive) 7 7,303
Note cleanup (cleanup) 8 6,228
Tasks (tasks) 6 5,964
Time blocks (time-blocks) 5 5,557
App shell (app-shell) 6 4,891
Annotations (annotations) 7 4,690
In-app AI (ai) 4 4,086
Note audio (note-audio) 5 3,491
Browse notes by path (note-paths) 2 3,077
Activity timeline (activity) 1 2,587
Agent connector (MCP) (mcp-connector) 4 2,222
Admin tools (admin) 2 1,744
Sharing (sharing) 4 1,310

"Allocated LOC" splits a shared file equally among the capabilities that claim it.

Proof

srcly capabilities check (byronwall/srcly#502) passes on this branch against origin/main:

Capabilities: 148 in 21 area files (docs/capabilities/)
Base: origin/main merge base 08093d850f
Code: 180,018 LOC in 1,394 files. Claimed 154,739 LOC (86.0%, 1,107 files); unclaimed 25,279 LOC (287 files). Totals + unclaimed = eligible.
PASS

The lint fails on an unclaimed new file and passes after the map claims it. I added app/src/lib/events/week-agenda.ts, then put it under the events capability, then removed both:

Errors (1):
  [unclaimed-new-code] app/src/lib/events/week-agenda.ts (3 LOC) is new since base and no capability claims it
      → add it to the entry or implementation of the capability it serves
FAIL: 1 errors        (exit 1)

PASS                  (exit 0, after the file is listed under events)

The map was drafted with the recipe in srcly's skills/srcly-capabilities/SKILL.md. Four agents each read a disjoint part of the code and its tests, and I drafted the shell, connector, activity, inbox and admin areas and swept the rest.

Limits

  • 25,279 LOC (287 files) stays unclaimed on purpose: the sandbox/pathways/ prototype copy (about 4,600 LOC), prisma/schema.prisma, dev and audit scripts, Panda theme recipes, the landing site/, and cleanup experiment scripts.
  • Some capabilities link a test that covers only part of the promise. The drafting agents named these: the collections table view, AI chat and prompts, the pathways routing engine and agent, the nearby-notes popover, and the people profile UI. note-view and archive-admin link only route smoke tests. These are the "weak tests" the treemap should show.
  • only: narrows 3 shared code files (group.ts, cleanup.actions.ts, archive.actions.ts) and 12 test files to named declarations or test titles. All other claims are whole files.
  • The check runs only by hand for now. CI wiring is W3.4.

Stack: capabilities map

What splits: the first capabilities map for Visual Notes, and the CI job that keeps it current.
Why it splits: the map is for reading against the product; the job is a gate. You can approve the map's promises without the gate, and the gate needs the map to pass.
Why this split: a single PR would mix a review of product wording with a review of CI. Splitting by area file was rejected: the map only makes sense as one whole.

  1. docs: draft the capabilities map #375: the map, 148 capabilities in 20 areas.
  2. ci: check the capabilities map on every PR #376: the Capabilities map CI job and the agent rule.

🤖 Generated with Claude Code

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