Repository navigation
Description
Problem
The area/* GitHub label convention is the primary organizing axis across this repo's backlog (10 labels in active use: area/docs, area/vscode, area/panel, area/consult, area/tower, area/cross-cutting, area/porch, area/config, area/terminal, area/core) and underpins user-visible features in the VSCode extension (Backlog tree groups by area #811, Builders tree groups by area #818, UPPERCASE headers #885, etc.).
Despite this, the architect role has no standing documentation about area/*. The convention exists only in:
- The GitHub labels themselves (no policy doc explaining how they're used).
- Existing issue bodies (architects must infer the pattern by reading examples).
- Per-session personal memory (this session has 4+ memory files covering the rules; a fresh session has none).
Result: a new architect session - in this repo or in any adopter's repo that uses area/* labels - cannot:
- Group on request. "Show me my open issues grouped by area" requires the architect to know
area/*is the organizing axis (nottype:*, not milestones, not assignees). - Edit on request. "Change the area on #X from
area/towertoarea/cross-cutting" requires knowing the canonicalgh issue edit --remove-label X --add-label Ypattern AND the policy (one area per issue, never both). - Audit on request. "Which open issues are missing an area label?" requires knowing the convention exists and what's canonical.
- Bulk-move on request. "Move all open
area/Xissues toarea/Y" requires the policy + the bulk gh recipe.
Every new architect re-discovers (or, more commonly, mis-applies) the convention - mixing type:* labels in (we don't use them), assigning multiple areas to one issue (forbidden - use area/cross-cutting instead), inventing area names that don't exist, or routing afx/agent-farm work to a non-existent area/agent-farm instead of the canonical area/tower.
Use cases the architect must support
After this lands, a user can say any of the following and the architect knows exactly what to do:
- "Go through my open issues grouped by area."
- "What areas have the most open issues?"
- "Change the area on porch: emit explicit pr_ready_for_human state field when CMAP completes #872 from
area/porchtoarea/tower." - "Which open issues have no area label?"
- "List open
area/vscodeissues by age." - "All open
area/coreissues should move toarea/tower- do the relabel." - "File an issue for X" - architect picks the right area without prompting.
Deliverable
Two coordinated doc updates (per PIR plan-phase scope decision):
1. codev's own CLAUDE.md + AGENTS.md
Add a section (proposed title: "Area Labels - the organizing axis for issues") that documents:
- The exact label vocabulary as it stands today: the 10 areas above, with one-line scope hints (
area/towercovers afx/agent-farm;area/vscodeis the extension;area/coreis the codev package itself;area/panelis the dashboard webview;area/cross-cuttingis the multi-area fallback; etc.). - The policy rules:
- Exactly one
area/*per issue (multi-area work usesarea/cross-cuttingalone, never two areas). - No
type:*labels (codev uses areas only - see precedent in repo history). area/uses slash (Kubernetes/Terraform convention); other label families (priority:,status:) keep colons - but currently we only usearea/*.- All
gh issue createinvocations include--assignee @me.
- Exactly one
- The operational
ghpatterns for group/edit/audit/bulk-move (one-line recipe per use case above). - A pointer to live label list:
gh label list --search area/.
Both files stay byte-identical per the existing CLAUDE.md ↔ AGENTS.md sync rule.
2. codev-skeleton/roles/architect.md (and CLAUDE.md / AGENTS.md in the skeleton)
Add a framework-neutral section (per [framework-neutral-on-label-semantics] discipline - the skeleton must not privilege codev's specific label values):
If your project uses GitHub labels with a structured prefix (e.g.
area/*,team/*,priority/*) to organize issues, treat them as the primary axis when users ask about grouping, editing, or auditing. Rungh label listto discover what your project uses, infer the convention from how existing issues are labeled, and ask the user to confirm before applying broad changes.
Plus the same gh recipe patterns, written abstractly. No mention of area/docs or any specific value codev uses.
Acceptance criteria
- New section exists in
CLAUDE.mdANDAGENTS.md(codev), files remain byte-identical. - New section exists in
codev-skeleton/CLAUDE.md,codev-skeleton/AGENTS.md, ANDcodev-skeleton/roles/architect.md- skeleton variants stay vocabulary-free. - Reviewer can verify the use-case list above renders well: open a fresh chat window, paste each example, confirm the architect responds with the right
ghcommand and the right area-policy reasoning, without needing further prompting. - No memory dependence - a session with zero loaded memory must be able to handle all the use cases.
Why PIR (and not BUGFIX/AIR)
There are real design calls here that benefit from a plan-approval gate:
- Where exactly the section sits in CLAUDE.md/AGENTS.md (top-level? under "Git Workflow"? new heading?). Affects discoverability.
- How granular the per-label scope hints are (one-liner vs. mini-table vs. examples).
- How prescriptive vs. descriptive the framework-neutral skeleton phrasing is - too prescriptive crowds out adopters' own labeling schemes (per [framework-neutral-on-label-semantics]); too descriptive defeats the purpose.
- Whether to materialize the live label list inline or just point to
gh label list(inline = stale risk; pointer = friction).
These all want one consult round at the plan stage before code lands. No running-app UX verification needed - so PIR fits, not SPIR.
Out of scope
- Modifying the label list itself (no renames, no new areas).
- Backfilling area labels onto unlabeled issues (separate audit task).
- Building tooling for bulk relabeling beyond what
ghalready provides. - Changes to the dashboard/VSCode views that consume area labels (they already work).
Activity
amrmelsayed commentedon May 28, 2026
On it! Working on this with the PIR protocol (plan + dev-approval gates before PR).
[PIR #909] Plan draft
[PIR #909] Add builder thread
[PIR #909] Plan revised: add codev/roles/architect.md, expand grep, d…
[PIR #909] Thread: record revision rationale
[PIR #909] Add area-labels section to codev CLAUDE.md, AGENTS.md, and…
[PIR #909] Thread: implement-phase notes (recipes, --limit 500 tweak,…
[PIR #909] Thread: record forge-direct decision at dev-approval
[PIR #909] Drop synonym alerts and Kubernetes/Terraform parenthetical…
[PIR #909] Restructure area-label set: add 5 labels, drop area/panel,…
[PIR #909] Simplify lead-in to **Labels**, move gh label list to reci…
[PIR #909] Dedup area-labels docs: vocabulary in CLAUDE.md/AGENTS.md,…
[PIR #909] Drop cross-references between CLAUDE.md and architect.md
[PIR #909] Review + retrospective; add two lessons learned
[PIR #909] Rebut Codex REQUEST_CHANGES findings (plan-dedup procedura…
Merge pull request #912 from cluesmith/builder/pir-909