# Pass 2 — Dependency graph (direct leverage)

Date: 2026-05-16

## Proposed `blocked_by` / `unlocks` edges

Below are the edges I'd add to `todos.json` via patch.json. Each is inferred from the task's note text, the System Contract memory, or the canonical strategy taxonomy memory.

### Foundation P0 chain

```
run-scientific-layer-migrations (P0, owner=user)
  └─→ p0-daily-summary-view (P0, claude)
       └─→ (transitive: every downstream scorecard/monthly/accountability bug
            that traces to "three surfaces recomputing P&L differently")

p0-indicator-alerts-ddl (P0, owner=user)
  └─→ audit-webhook-coverage (P1, claude)
       └─→ wire-webhooks (P1, claude)
            ├─→ remove-na-labels (none, claude)
            ├─→ smb-rubric-grading (none, claude)
            ├─→ overtrading-detect (none, claude)
            ├─→ per-trade-charts (none, claude)
            └─→ strategy-followed-plan (none, claude)

p0-identity-fn (P0, claude — compounding infra)
  ├─→ shared-user-dropdown (P1, claude)
  ├─→ multi-trader-scorecards (none, claude)
  └─→ add-user-role-approval (P1, claude — schema half of identity)
       ├─→ strategy-upload-ui (none, claude)
       ├─→ roberto-classifier-overrides-persist (P2, roberto)
       └─→ (gates: phase-4-trader-selector, monthly-per-trader-view)

p0-freshness-dashboard (P0, claude — compounding infra)
  └─→ param-surface-freshness (P1, claude)
  ↑ depends_on cron-update-freshness (P1, user)
  ↑ depends_on freshness-db-source-side (P1, claude)

catalog-refactor-shared-json (P1, claude — compounding infra)
  ├─→ refactor-gen-scorecard-py-classify-entry-to-use-re (P1, claude)
  ├─→ refactor-strategies-page-to-render-from-system-str (P2, claude)
  ├─→ add-strategy-id-column-to-indicator-alerts-main-jo (P0, claude)
  │    └─→ wire-live-grade-column-into-accountability-hud-v2- (P1, claude — HUD off-limits)
  └─→ alex-range-break-register (P1, alex)

p0-param-surface-registry (P0, claude — compounding infra)
  ├─→ param-surface-strategy-registry (P1, claude)
  └─→ param-surface-freshness (P1, claude)
       ↑ also depends on p0-freshness-dashboard
```

### Strategy rules chain

```
strategy-vpi-rules (P1, claude — property=scorecards [drift])
  ├─→ strategy-vpi-backtest (P1, claude)
  ├─→ mgp-strategy-templates (P1, claude — property=mgp)
  └─→ strategy-align-scorecard-pie (none, claude — property=scorecards)

strategy-backside-rules (none, claude — property=scorecards [drift])
  ├─→ strategy-backside-backtest (none, claude)
  └─→ strategy-align-scorecard-pie (shared with vpi-rules)

mgp-sip-db (none, claude — property=mgp)
  ├─→ strategy-planned-vs-actual (none, claude — property=mgp)
  └─→ strategy-followed-plan (none, claude — property=mgp)

alex-range-break-rules (P1, alex)
  ├─→ alex-range-break-backtest (P1, alex)
  └─→ alex-range-break-register (P1, alex)
       ↑ also depends on catalog-refactor-shared-json
```

### Phase-4 multi-trader chain

```
multi-trader-scorecards (none, claude — should be P1; missing priority)
  ├─→ phase-4-trader-selector (P1, claude)
  ├─→ phase-4-trader-feedback-loop (P1, user)
  ├─→ monthly-per-trader-view (P2, claude)
  ├─→ phase-4-per-trader-playbook-focus (P2, user)
  └─→ me-vs-firm (none, claude)
       ↑ also depends on shared-user-dropdown + add-user-role-approval
```

### Accountability-v2 promotion chain

```
acct-v2-services-task-scheduler (P1, jimbo)
  └─→ acct-v2-promote-dev-to-prod (P1, user)

acct-v2-kore-tick-bridge-forward-test (P1, user)
  ├─→ acct-v2-retire-v1-marks-fast-daemon (P2, jimbo)
  └─→ acct-v2-promote-dev-to-prod (P1, user)
```

### MGP cluster

```
mgp-cron-skipped-5-14 (P0, owner="James" [casing drift])
  └─→ unblocks the Monday MGP cutover plan (mgp-drop-vital-independent-source is in_progress)

mgp-historical-pages-cleanup (P0, owner=james — compliance)
  └─→ (no successor on board; one-shot)
```

### risk_hud cluster (architectural decision upstream)

```
risk-hud-accountability-hud-dedup-review (P1, user — decision task)
  ├─→ risk-hud-stop-gauge (P1, claude)
  ├─→ risk-hud-summary-row (P1, claude)
  ├─→ risk-hud-sort-risk (none, claude)
  ├─→ risk-hud-auto-refresh (none, claude)
  └─→ risk-hud-api-wire (P1, claude)
```

Every risk_hud build task is gated on the decision; building more into a property that might be retired is anti-leverage. Patch sets `blocked_by=["risk-hud-accountability-hud-dedup-review"]` on all five.

## No-longer-blocked candidates (newly unblocked)

These tasks have an `EXPLICIT_BLOCKED_BY` upstream that's **already completed**:

- **identity-resolution-fn → SUPERSEDED 2026-05-08** by `p0-identity-fn`. Already closed; not an unblock event.
- No other false-blocks discovered.

## Unlock count tally (top 10)

Used in Pass 9 weekend pick ranking.

| id | unlock_count | downstream ids |
|---|---|---|
| add-user-role-approval | 4 | strategy-upload-ui, roberto-classifier-overrides-persist, phase-4-trader-selector, monthly-per-trader-view |
| catalog-refactor-shared-json | 4 | refactor-gen-scorecard-py..., refactor-strategies-page..., add-strategy-id-column..., alex-range-break-register |
| multi-trader-scorecards | 4 | phase-4-trader-selector, phase-4-trader-feedback-loop, monthly-per-trader-view, phase-4-per-trader-playbook-focus, me-vs-firm |
| wire-webhooks | 5 | remove-na-labels, smb-rubric-grading, overtrading-detect, per-trade-charts, strategy-followed-plan |
| p0-identity-fn | 3 | shared-user-dropdown, multi-trader-scorecards, add-user-role-approval (semantic dep) |
| strategy-vpi-rules | 3 | strategy-vpi-backtest, mgp-strategy-templates, strategy-align-scorecard-pie |
| p0-param-surface-registry | 2 | param-surface-strategy-registry, param-surface-freshness |
| data-freshness-audit | 2 | fix-pipeline-0417, fix-missing-days |
| refactor-scientific-overlay-js-to-load-from-system | 2 | refactor-gen-scorecard-py..., split-td-vwap-from-vwap-pull-in-in-classifier |
| risk-hud-accountability-hud-dedup-review | 5 | the 5 risk-hud-* build tasks (decision unblock) |

## Symmetry check

For each `blocked_by(X, Y)` proposed above, the inverse `unlocks(Y, X)` is also stored on Y. Patch.json maintains both ends — apply_audit_patch.py just iterates entries.

## Notes on graph quality

- **No cycles detected.**
- **Longest chain**: `p0-indicator-alerts-ddl → audit-webhook-coverage → wire-webhooks → strategy-followed-plan` (4 hops). Indicates webhook enrichment is the single biggest leverage cluster.
- **Most-blocked task**: `acct-v2-promote-dev-to-prod` has 2 hard upstream blockers (services + Kore bridge). Correctly flagged in original task note.
- **Orphan tasks** (no edges in or out): hot-key-managment-sell-of-postion (design phase, P2), locate-bitcoin-todos (P2, user, 10 days no progress), pm-priority-viz (none, claude), pm-calendar-view (none, claude). These are noise for now.
