Skip to content

Track: deploy + backfill + drift-watch for KG risk-layer fix (follow-up to #231) #234

Description

@Number531

Follow-up tracking for the KG risk-layer fix merged in #232 (commit 1c70dcc6, closes #231). The code fix is on main; these items ensure it actually takes effect and that the defect class is guarded going forward.

1. Deploy (required for future sessions to benefit)

2. Remediate already-affected past sessions (0 risk nodes)

These ran before the fix and do not self-heal; re-ingest + rebuild + re-embed:

3. Anti-recurrence (producer↔consumer schema-drift class)

The root cause was the risk-aggregator's output schema drifting from the KG consumer. Guards:

  • Contract test test/sdk/kg-phase7-risk-parser.test.js fails loudly on the next risk-aggregator schema change (legacy + current schema pinned).
  • Confirm CI runs it. The KG tests are node --test style, but npm run test:sdk invokes jest — verify these files actually execute in CI (or port to jest), else the contract anchor is inert in CI.
  • Generalize: any other structured JSON deliverable the KG/synthesis consumes should be added to JSON_REPORT_FILENAMES (src/config/hookDBBridgeConfig.js) rather than left .md-only.

4. Housekeeping

  • Remove the local recovery worktree once unneeded: git worktree remove /Users/ej/Super-Legal-231 (+ delete branch fix/231-kg-risk-wt, ref wip/231-kg-risk-recovery).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions