Skip to content

feat: add evidence-based task graph backfill - #122

Closed
blast-hardcheese wants to merge 4 commits into
mainfrom
s2s-todo-graph-backfill-0497b5d707
Closed

blast-hardcheese wants to merge 4 commits into
mainfrom
s2s-todo-graph-backfill-0497b5d707

Conversation

@blast-hardcheese

@blast-hardcheese blast-hardcheese commented Nov 30, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Add a reviewed-plan task graph backfill with strict validation, per-task atomic apply, cycle-checked task dependencies, and durable evidence/resolution receipts.
  • Add separate read-only discovery across exact task/neighbor references, indexed history, and bounded subject searches. Discovery preserves qualified provenance and leaves unsupported outcomes unresolved.

Test plan

  • pytest -q tests/test_task_backfill.py tests/test_task_backfill_discovery.py — 33 passed.
  • Ruff check, Ruff format check, and git diff --check passed.
  • GitHub CI run 47203783968 passed on head e0477ea89d1f0d26cd4bf0535b8d76450a2bed8e, including pytest -n auto --dist loadfile --timeout 300.
  • Bounded read-only discovery reviewed 226 active open tasks: 17 acted-on/still-open, 209 unknown, and zero verified completions or supersessions. Unknown tasks remained open; the open-task count was 226 before and after. External evidence coverage is partial, so unresolved source matches remain unknown. Task IDs, evidence excerpts, and dry-run files remain private.

Risk notes

  • Discovery is read-only and does not create plans or modify tasks. The separate reviewed-plan apply path was not used against the live graph.
  • The PR remains work-in-progress while the current-head Adapt review is unavailable in this runtime.

Not run

  • Full Adapt review of the new discovery module on the current head; GitHub has not reported an Adapt Review check for the current head, and browser access is blocked by the host.

Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@blast-hardcheese blast-hardcheese added the work-in-progress Fixes or validation in progress label Nov 30, 2026 — with ChatGPT Codex Connector

@adaptcom adaptcom Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confidence Score: 2/5

Summary

Score reconciled from 3/5 because the review includes a blocking finding.

Adds a standalone evidence-gated task backfill runner with plan validation and tests. Additive and isolated; main risks are enrich overwriting existing edge weights and a dry-run summary that overstates what apply will do.

Important Files Changed

File Overview
src/kindex/task_backfill.py New plan validator/runner; enrich overwrites edge weight, dry-run summary overcounts
tests/test_task_backfill.py Six happy/guard-path tests; no CLI, inventory, enrich or invalid-target coverage
docs/task-graph-backfill.md Workflow doc; 'existing edges left intact' contradicts enrich behavior

Findings

  • tests/test_task_backfill.py — No tests for inventory_open_tasks, main() via subprocess (REVIEW.md CLI pattern), enrich, missing/unsupported targets, or invalid decision evidence.
  • CHANGELOG.md has no [Unreleased] entry for this feature, unlike every recent feature/fix PR.

Reviewed 528566c...fe07f02 · ↻ Re-run review · View in Adapt

Comment thread src/kindex/task_backfill.py Resolved
Comment thread src/kindex/task_backfill.py Resolved
Comment thread src/kindex/task_backfill.py Resolved
Comment thread src/kindex/task_backfill.py Resolved
Comment thread src/kindex/task_backfill.py Resolved
Comment thread src/kindex/task_backfill.py Resolved
Comment thread src/kindex/task_backfill.py Resolved
Comment thread src/kindex/task_backfill.py Resolved
Comment thread src/kindex/task_backfill.py Resolved
Comment thread docs/task-graph-backfill.md Resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

work-in-progress Fixes or validation in progress

Development

Successfully merging this pull request may close these issues.

1 participant