---
id: T-1161
name: "T-877 build: Auto-remediation in fw init — git hooks, enforcement baseline,
  start guidance"
description: >
  T-877 build: Auto-remediation in fw init — git hooks, enforcement baseline, start
  guidance

status: work-completed
workflow_type: build
owner: agent
horizon:
tags: []
components: []
related_tasks: []
created: 2026-04-12T12:13:05Z
last_update: '2026-06-11T22:23:41Z'
date_finished: 2026-04-12T12:57:47Z
bvp_scores_proposed:
  - ts: '2026-06-11T22:23:41Z'
    estimator: bvp-estimator-v1-heuristic
    scores:
      D1: 0
      D2: 0
      D3: 0
      D4: 0
      F-RECALL: 2
      F-ORCH: 0
      F3: 0
      F1: 0
      F2: 0
    rationale: D1=0 (no-signal); D2=0 (no-signal); D3=0 (no-signal); D4=0 
      (no-signal); F-RECALL=2 (body:lightly-promoted); F-ORCH=0 (no-signal); 
      F3=0 (no-signal); F1=0 (no-signal); F2=0 (no-signal)
    rubric_sha: e4a00f38e801
---

# T-1161: T-877 build: Auto-remediation in fw init — git hooks, enforcement baseline, start guidance

## Context

Build from T-877 GO. Real user hit 6 failure modes during install. F3 (git hooks), F5 (enforcement baseline), and F6 (start guidance) are auto-remediation fixes in `do_init()`. See `docs/reports/T-877-install-pipeline.md`.

## Acceptance Criteria

### Agent
- [x] `fw init` auto-installs git hooks when in a git repo
- [x] `fw init` auto-creates enforcement baseline if missing
- [x] `fw init` post-init message includes "start Claude Code" guidance

## Verification

bash -c 'grep -q "install-hooks\|install_hooks" lib/init.sh'
bash -c 'grep -q "enforcement.*baseline\|baseline" lib/init.sh'
bash -c 'grep -qi "claude\|agent" lib/init.sh'

## Decisions

<!-- Record decisions ONLY when choosing between alternatives.
     Skip for tasks with no meaningful choices.
     Format:
     ### [date] — [topic]
     - **Chose:** [what was decided]
     - **Why:** [rationale]
     - **Rejected:** [alternatives and why not]
-->

## Updates

### 2026-04-12T12:13:05Z — task-created [task-create-agent]
- **Action:** Created task via task-create agent
- **Output:** /opt/999-Agentic-Engineering-Framework/.tasks/active/T-1161-t-877-build-auto-remediation-in-fw-init-.md
- **Context:** Initial task creation

### 2026-04-12T12:14:17Z — status-update [task-update-agent]
- **Change:** status: started-work → captured
- **Reason:** Already implemented — git hooks (line 392), enforcement baseline (line 400), Claude Code guidance (line 490) all present in lib/init.sh

### 2026-04-12T12:56:53Z — status-update [task-update-agent]
- **Change:** status: captured → started-work

### 2026-04-12T12:57:47Z — status-update [task-update-agent]
- **Change:** status: started-work → work-completed

## Reviewer Verdict (v1.5)

- **Scan ID:** R-79baabc9
- **Timestamp:** 2026-06-02T14:55:35Z
- **Catalogue:** v1.3-seed
- **Overall:** PASS
- **Needs Human:** no
- **Findings:** none
