$npx -y skills add NeoLabHQ/context-engineering-kit --skill actualizeReconcile the project's FPF state with recent repository changes
| 1 | # Actualize Knowledge Base |
| 2 | |
| 3 | This command is a core part of maintaining a living assurance case. It keeps your FPF knowledge base (`.fpf/`) in sync with the evolving reality of your project's codebase. |
| 4 | |
| 5 | The command performs a three-part audit against recent git changes to surface potential context drift, stale evidence, and outdated decisions. This aligns with the **Observe** phase of the FPF Canonical Evolution Loop (B.4) and helps manage **Epistemic Debt** (B.3.4). |
| 6 | |
| 7 | ## Action (Run-Time) |
| 8 | |
| 9 | ### Step 1: Check Git Changes |
| 10 | |
| 11 | Run git commands to identify changes since last actualization: |
| 12 | |
| 13 | ```bash |
| 14 | # Get current commit hash |
| 15 | git rev-parse HEAD |
| 16 | |
| 17 | # Check for changes since last known baseline |
| 18 | # (Read .fpf/.baseline file if it exists, otherwise use initial commit) |
| 19 | git diff --name-only <baseline_commit> HEAD |
| 20 | |
| 21 | # List all changed files |
| 22 | git diff --stat <baseline_commit> HEAD |
| 23 | ``` |
| 24 | |
| 25 | ### Step 2: Analyze Report for Context Drift |
| 26 | |
| 27 | 1. Review changed files for core project configuration: |
| 28 | - `package.json`, `go.mod`, `Cargo.toml`, `requirements.txt` |
| 29 | - `Dockerfile`, `docker-compose.yml` |
| 30 | - `.env.example`, config files |
| 31 | |
| 32 | 2. If configuration files changed: |
| 33 | - Re-read project structure (README, config files) |
| 34 | - Compare detected context with `.fpf/context.md` |
| 35 | - Present diff to user |
| 36 | |
| 37 | 3. Ask user if they want to update `context.md` |
| 38 | |
| 39 | ### Step 3: Analyze Report for Evidence Staleness (Epistemic Debt) |
| 40 | |
| 41 | 1. Read all evidence files in `.fpf/evidence/` |
| 42 | 2. Check `carrier_ref` field in each evidence file |
| 43 | 3. Cross-reference with changed files from git diff |
| 44 | 4. If a referenced file changed: |
| 45 | - Flag the evidence as **STALE** |
| 46 | - Note which hypothesis is affected |
| 47 | |
| 48 | ### Step 4: Analyze Report for Decision Relevance |
| 49 | |
| 50 | 1. Read all DRR files in `.fpf/decisions/` |
| 51 | 2. Trace back to source evidence and hypothesis files |
| 52 | 3. If foundational files changed: |
| 53 | - Flag the DRR as **POTENTIALLY OUTDATED** |
| 54 | |
| 55 | ### Step 5: Update Baseline |
| 56 | |
| 57 | Create/update `.fpf/.baseline` file: |
| 58 | |
| 59 | ``` |
| 60 | # FPF Actualization Baseline |
| 61 | # Last actualized: 2025-01-15T16:00:00Z |
| 62 | commit: abc123def456 |
| 63 | ``` |
| 64 | |
| 65 | ### Step 6: Present Findings |
| 66 | |
| 67 | Output a structured report: |
| 68 | |
| 69 | ```markdown |
| 70 | ## Actualization Report |
| 71 | |
| 72 | **Baseline**: abc123 (2025-01-10) |
| 73 | **Current**: def456 (2025-01-15) |
| 74 | **Files Changed**: 42 |
| 75 | |
| 76 | ### Context Drift |
| 77 | |
| 78 | The following configuration files have changed: |
| 79 | - package.json (+5 dependencies) |
| 80 | - Dockerfile (base image updated) |
| 81 | |
| 82 | **Action Required**: Review and update `.fpf/context.md` if constraints have changed. |
| 83 | |
| 84 | ### Stale Evidence (3 items) |
| 85 | |
| 86 | | Evidence | Hypothesis | Changed File | |
| 87 | |----------|------------|--------------| |
| 88 | | ev-benchmark-api | api-optimization | src/api/handler.ts | |
| 89 | | ev-test-auth | auth-module | src/auth/login.ts | |
| 90 | | ev-perf-db | db-indexing | migrations/002.sql | |
| 91 | |
| 92 | **Action Required**: Re-validate to refresh evidence for affected hypotheses. |
| 93 | |
| 94 | ### Decisions to Review (1 item) |
| 95 | |
| 96 | | DRR | Affected By | |
| 97 | |-----|-------------| |
| 98 | | DRR-2025-01-10-api-design | src/api/handler.ts changed | |
| 99 | |
| 100 | **Action Required**: Consider re-evaluating decision via `/fpf:propose-hypotheses`. |
| 101 | |
| 102 | ### Summary |
| 103 | |
| 104 | - Context drift detected: YES |
| 105 | - Stale evidence: 3 items |
| 106 | - Decisions to review: 1 item |
| 107 | |
| 108 | Run `/fpf:decay` for detailed freshness management. |
| 109 | ``` |
| 110 | |
| 111 | ## File: .fpf/.baseline |
| 112 | |
| 113 | Track the last actualization point: |
| 114 | |
| 115 | ```yaml |
| 116 | # FPF Actualization Baseline |
| 117 | last_actualized: 2025-01-15T16:00:00Z |
| 118 | commit: abc123def456789 |
| 119 | branch: main |
| 120 | ``` |
| 121 | |
| 122 | ## When to Run |
| 123 | |
| 124 | - **Before starting new work**: Ensure knowledge base is current |
| 125 | - **After major changes**: Sync evidence with code changes |
| 126 | - **Weekly maintenance**: Part of regular hygiene |
| 127 | - **Before decisions**: Ensure evidence is still valid |