Feature: Remove plan/phase hooks from enforcement layer #168
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#168
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Type
Feature
Lineage
standalone — discovered during plan deprecation audit 2026-03-26
Repo
forgejo_admin/claude-customUser Story
As Betty Sue (PM),
I want the enforcement layer to stop validating plan/phase artifacts,
So that the system reflects the kanban-over-plans convention and doesn't enforce deprecated patterns.
Context
convention-kanban-over-plans(2026-03-24) declared plans deprecated. But 5 hook code points still reference plans/phases. These create confusion: agents see phase validation hooks and assume phases are current. The enforcement pyramid (conventions → SOPs → hooks) must be consistent — if the convention says plans are dead, the hooks must stop enforcing plan patterns.File Targets
Remove
check-phase-template.sh— entire hook orphaned. Validatesnote_type="phase"structure. No longer needed.hooks/check-phase-template.sh(delete or rename to.deprecated)Remove plan routing from
check-note-template.sh— lines 53-55 routeplantag totemplate-plan. Remove this case.hooks/check-note-template.shlines 53-55Remove phase item_type from
check-board-item.sh— lines 60-63 validate phase items requirenote_slug. Remove this case.hooks/check-board-item.shlines 60-63Update
remind-update-docs.sh— line 34 mentions "plan notes, phase status." Update to reference board items and project pages instead.hooks/remind-update-docs.shline ~34Update
settings.json— removecheck-phase-template.shfrom PreToolUse hooks onmcp__pal-e-docs__create_note.settings.json(find the check-phase-template.sh registration)Files NOT to touch:
check-agent-spawn.sh— no plan dependency (only validates issue reference pattern)label-on-branch.sh,label-on-pr.sh,label-on-verdict.sh— no plan dependencyboard-item-on-merge.sh— matches by forgejo_issue_url, no plan dependencyAcceptance Criteria
check-phase-template.shremoved or disablednote_type="phase"no longer triggers validationplanno longer routes to template-plan validationitem_type="issue"still validated (forgejo_issue_url required)Test Expectations
Constraints
Checklist
Related
project-pal-e-agency— projectstory:pm-scope— user storyarch:enforcement— architecture componentconvention-kanban-over-plans— the convention this implementsScope Review: NEEDS_REFINEMENT
Review note:
review-396-2026-03-26Ticket identifies 5 correct file targets but misses the 3 largest plan/phase code points in the hooks directory.
hooks/session-start-context.sh(lines 112-260+) — ~150 lines of active plan-fetching logic (queriesnotes?tags=plan,active, injects plan TOCs, extracts phase titles for semantic search). Runs every session start. This is the highest-impact omission.hooks/stop-doc-checkin.sh(lines 9-10) — references "plans advanced" and "plan notes." Runs every session stop.hooks/inject-subagent-context.sh(line 2) — comment says "plan/SOP context." Minor, comment-only.Refinement: 2 missed files (one critical)
Per review
review-396-2026-03-26:Critical Missing File Target
hooks/session-start-context.shlines 112-260+ — ~150 lines querying pal-e-docs fornotes?tags=plan,active, fetching plan details/TOCs, extracting in-progress phase titles for semantic search, injecting into session startup context. This is the LARGEST plan/phase code point in the hook system and runs on every session start. Must be updated to query boards/project pages instead of plans/phases.Minor Missing File Target
hooks/stop-doc-checkin.shlines 9-10 — references "plans advanced" and "plan notes in pal-e-docs" in session-end reminder. Update to reference board items and project pages.Updated Acceptance Criteria (appended)
session-start-context.shno longer queries plan/phase notes — queries boards and project pages insteadstop-doc-checkin.shno longer references plans/phasesScope Review: READY (re-review)
Review note:
review-396-2026-03-26-r2Refinement comment addresses the critical session-start-context.sh gap. All 7 plan/phase-containing hook files now identified with verified line references. 8 acceptance criteria are agent-testable. No blocking dependencies. Scope is complete and ready for execution.