fix: remove deprecated agent type references from hooks and settings #128
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!128
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "126-clean-deprecated-agent-refs"
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
Remove dead code references to 6 deprecated agent types (
dev-backend,dev-frontend,devops,dev-qa,frontend-qa,devops-qa) from hooks and settings. These types were deprecated in Phase 12 and their schema entries already removed in PR #125.Changes
hooks/inject-subagent-context.sh-- removed 6 case branches for deprecated agent types (18 lines of dead code). Remaining branches:qa,dev,general-purpose|dottie, and*wildcard.settings.json-- removed 6 deprecated types from the SubagentStart matcher on line 232. Remaining matcher:qa|dev|general-purpose|dottie|penny.Test Plan
dev,qa,dottie,general-purpose) produce correct context output*wildcard and exit cleanly (exit 0, no output)settings.jsonvalidates as correct JSONgrepfor deprecated type names in hooks/settings returns zero matchesReview Checklist
Related
plan-pal-e-agency(traceability)Self-Review: PASS
Diff: 2 files, +1 -19 (pure deletion)
inject-subagent-context.sh: Removed 6 deprecated case branches (
frontend-qa,dev-qa,devops-qa,dev-backend,dev-frontend,devops). Remaining branches (qa,dev,general-purpose|dottie,*) are correct and tested.settings.json: Removed 6 deprecated types from SubagentStart matcher. Remaining matcher
qa|dev|general-purpose|dottie|pennycovers all current agent types.Verified:
*wildcard cleanlyVerdict: approve -- ready for human review.
PR #128 Review
DOMAIN REVIEW
Tech stack: Bash (shell hooks) + JSON (settings config). This is agent infrastructure -- hooks that inject context into Claude Code subagents.
Shell quality:
qa,dev,general-purpose|dottie,*) are clean and consistent.*wildcard fallback correctly exits 0 with no output, so deprecated types that somehow get spawned degrade gracefully.set -euo pipefailis properly set.jqusage is correct.JSON quality:
qa|dev|general-purpose|dottie|pennycorrectly reflects the 5 active agent types that have agent config files inagents/.Observation (not introduced by this PR):
pennyis in thesettings.jsonSubagentStart matcher but has no corresponding case branch ininject-subagent-context.sh. When penny spawns, the hook falls through to*and exits with no context injection. Penny's context comes from her agent frontmatter (agents/penny.md) instead, so this is not broken -- but it is an asymmetry worth tracking. This predates this PR (introduced in PR #121).BLOCKERS
None. This is a pure dead-code removal with no new functionality.
NITS
Stale
.deprecatedfiles: Theagents/directory still contains 6.deprecatedfiles (dev-backend.md.deprecated,dev-frontend.md.deprecated,devops.md.deprecated,frontend-qa.md.deprecated,dev-qa.md.deprecated,devops-qa.md.deprecated). These are outside the scope of this issue (which targets hooks/settings only), but could be tracked as follow-up cleanup.Penny/hook asymmetry: As noted above,
pennyis matched insettings.jsonbut has no case branch in the hook. The hook fires but produces no output. Consider either adding a penny case branch or documenting that penny relies solely on frontmatter context. Again, pre-existing -- not introduced here.SOP COMPLIANCE
126-clean-deprecated-agent-refsreferences issue #126plan-pal-e-agencyfix: remove deprecated agent type references from hooks and settingsis descriptive and uses conventional commit formatPROCESS OBSERVATIONS
.deprecatedfiles serve as a breadcrumb trail but could eventually be cleaned up in a separate issue.VERDICT: APPROVED