Repository navigation
Closed
Labels
cc:taskCodeCrew: a task issue, attached to its milestone as a sub-issue (SPEC §4)
Description
Goal
Fold back the second live-fire finding on #73 (operator direction, 2026-08-24): after minting, identity new should write the role's routing into the hub's .codecrew.yml itself rather than printing an instruction — the milestone-new ROADMAP precedent: edit locally, say so, commit via the next PR. Line surgery preserving the file's comments and structure, validated by re-parsing before write; --no-route opts out for the rare case it's unwanted; the printed instruction remains the fallback when the routing table isn't local (pointer-only spokes) or the edit can't be applied safely. Tests ride along (#46).
Requirements
M5-R2
Plan
routeRole(path, role, slug): line surgery on.codecrew.ymlhandling both table shapes — the scaffold's inline<role>: { identity: ~ }and the nestedidentity:line under the role key (trailing comments on the rewritten identity line are dropped: they describe the old routing). Everything else in the file — comments, ordering, other roles — is untouched. The result is re-parsed withconfig.Parseand the role's identity verified against the slug before anything is written; any miss returns an error.- In
identityNew: after the key is stored, when the verb runs in the hub (current == hub, the ROADMAP precedent frommilestone new) and--no-routewasn't given, applyrouteRoleto the local file and printrouted <role> → <slug> in .codecrew.yml — commit it via your next PR (--no-route to skip). On a spoke, with--no-route, or when the surgery errors, print the manual routing instruction exactly as today. - Tests (feat: request review from the reviewer-role holder #46): both file shapes, comment/sibling preservation, the trailing-comment drop, unknown-role and unparseable-result errors, and
--no-routeflag parsing. - Docs touch: the verb's paragraph in docs/identities.md and the SPEC §6 row say the routing is written for you in the hub.
Ask-the-human points
None — direction given by the operator on #73's finding.
Metadata
Metadata
Assignees
Labels
cc:taskCodeCrew: a task issue, attached to its milestone as a sub-issue (SPEC §4)
Activity
radiusred-cody commentedon Aug 24, 2026
Started by @radiusred-cody[bot].
radiusred-cody commentedon Aug 24, 2026
Deviation: one next-step line added beyond the plan —
3. optional: give it the crew logo under Display information: <settings URL>(org- vs personal-account URL chosen by owner type). Prompted by the operator mid-task (2026-08-24): a CodeCrew project logo is coming and should dress every crew App. The manifest has no avatar field and no API uploads one — the logo is a manual step on the App's settings page — so the verb's best move is handing over the right URL. Tested alongside the routing work.feat: route the role automatically when identity new runs in the hub (#…
docs: identity new routes the role and points at display settings (#76)
feat: route the role automatically when identity new runs in the hub (#…
docs: identity new routes the role and points at display settings (#76)