Deprecate issue-creator agent + require issue reference for agent spawns #58
No reviewers
Labels
No labels
domain:backend
domain:devops
domain:frontend
status:approved
status:in-progress
status:needs-fix
status:qa
type:bug
type:devops
type:feature
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ldraney/claude-custom!58
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "57-deprecate-issue-creator-require-issue-ref"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
issue-creatoragent type (agent def, settings, inject hook)check-agent-spawn.shfrom plan/project gate to issue reference gateChanges
agents/issue-creator.md— deletedsettings.json— removed issue-creator from agent typeshooks/check-agent-spawn.sh— new logic: require#[0-9]+or issue keyword for dev/QA/Explore; allowplan-for general-purpose (Dottie)hooks/inject-subagent-context.sh— removed issue-creator caseagents/betty-sue.md— removed issue-creator referencesTest Plan
Closes #57
Review Checklist
Related Notes
phase-7f-1-deprecate-issue-creator— phase noteplan-2026-02-26-tf-modularize-postgres— Phase 7f subphaseagent-spawn-conventions— convention to update after mergePR #58 Review
BLOCKERS
1. Orphaned
issue-creatorreferences not cleaned up (2 files)The PR deletes the agent definition and removes references from
betty-sue.md,settings.json, andinject-subagent-context.sh, but misses two files that still referenceissue-creator:/home/ldraney/claude-custom/hooks/block-write-tools.shline 3:/home/ldraney/claude-custom/skills/create-issue/SKILL.mdlines 7 and 20:The
create-issue/SKILL.mdis the more critical miss -- itsagent: issue-creatorfrontmatter field references a now-deleted agent definition. This skill will break at runtime. The skill either needs to be deleted, updated to reference a different agent, or have itsagent:field removed.2.
defaultModechange is undocumented scope creepThe diff changes
settings.jsonline 11 from"defaultMode": "plan"to"defaultMode": "dontAsk". This behavioral change (affects how Claude prompts for permission) is:This should either be reverted from this PR and handled separately, or explicitly documented in the PR body with rationale.
NITS
1. Broad regex in spawn hook could false-positive
The pattern
[Ii]ssueincheck-agent-spawn.shline 19 will match the word "issue" appearing anywhere in a prompt, even in unrelated context (e.g., "there is an issue with..." or "tissue"). A tighter pattern like[Ii]ssue #?[0-9]+|Forgejo issuewould be more precise. Non-blocking since the current pattern is permissive (allows too much rather than blocking valid spawns), but worth noting.2. Comment in
block-write-tools.shis stale (see BLOCKER 1)Even if you decide the comment is "just a comment," stale comments that reference deleted concepts erode trust in the codebase. Clean it up while you are here.
SOP COMPLIANCE
57-deprecate-issue-creator-require-issue-refreferences issue #57plan-2026-02-26-tf-modularize-postgresreferenced -- though this is a platform plan, not a claude-custom plan. The connection is indirect (Phase 7f subphase). Acceptable but unusual.defaultModechange is unrelated to the issueCloses #57VERDICT: NOT APPROVED
Two blockers must be addressed:
issue-creatorreferences inblock-write-tools.shandskills/create-issue/SKILL.mddefaultModechange or document it in the PR body with rationalePR #58 Re-Review
Re-review after fix commit
8a59730. Previous review found 2 blockers and 1 nit.BLOCKERS
None. Both previous blockers are resolved:
Orphaned issue-creator references (RESOLVED): Grep across the entire repo returns zero matches for
issue-creator. All six touch points are clean:agents/issue-creator.md-- deletedsettings.json-- matcher updated toqa|devhooks/inject-subagent-context.sh-- case removedhooks/block-write-tools.sh-- comment updatedagents/betty-sue.md-- bullet removedskills/create-issue/SKILL.md--agent:frontmatter removed, step 2 now referencestemplate-issueinstead ofagent-issue-creatorUndocumented defaultMode change (NOT APPLICABLE): The
defaultMode: "plan"insettings.jsonis a pre-existing value, not changed by this PR. The diff only touches the SubagentStart matcher line. No blocker here.NITS
#[0-9]+|[Ii]ssue|Forgejo issueon line 19 ofcheck-agent-spawn.shwill match any prompt containing the word "issue" regardless of context (e.g., "there's an issue with the build"). This is intentionally permissive and non-blocking, but worth noting for future tightening if false-allows become a problem.SOP COMPLIANCE
57-deprecate-issue-creator-require-issue-refreferences #57)plan-2026-02-26-tf-modularize-postgres)Closes #57present in PR bodyVERDICT: APPROVED