agent-project-knowledge-engine. It was archived on August 22, 2026 and merged into the 040rc1 branch. Every scope boundary, subtask split, dependency order, Git commit hash, and acceptance record below comes directly from the archived artifacts in the repository (docs/comet/archive/2026-08-22-agent-project-knowledge-engine/).
This change refactored Project Knowledge from ad-hoc ripgrep scans of local Markdown at query time into a full system featuring SQLite FTS5 + ripgrep hybrid recall, structured Project Knowledge units, a controlled learning pipeline, CLI management commands, Dashboard views, and an evaluation suite.

Supervisor running live in Codex
The recording below shows how Supervisor Change launches independent sessions in Codex, assigns isolated worktrees to ready subtasks, and coordinates progress end to end (the video illustrates the multi-session scheduling mechanism; all subtask splits, commit hashes, and 49-item acceptance metrics below come from theagent-project-knowledge-engine archive):
Why the parent task had to hold the final gate
The refactor spanned query planning, SQLite full-text indexing, knowledge-unit data models, plugin events, CLI commands, Dashboard frontend views, and evaluation scripts. Although each layer could be built in stages, the finished system had to satisfy five cross-cutting guarantees together:- Retrieval and fallback: Local Provider defaults to SQLite FTS5 + ripgrep hybrid recall and falls back cleanly to plain-text search when FTS5 is unavailable;
- Strict isolation from Personal Memory: Project Knowledge and Personal Memory maintain separate storage, ownership, and token budgets;
- Verifiable provenance: Every extracted knowledge unit links to concrete file sources—never fabricated and never replacing direct code verification;
- Failure isolation: Index errors, unreadable files, or adapter failures must never block normal development workflows;
- End-to-end consistency: CLI, Dashboard, context injection, Retrieval Eval, and Agent A/B tests share the exact same capability boundary.
Splitting into 3 feature subtasks along real data dependencies
Inchildren.yaml (comet.native.children.v2 format), the plan was split along data dependencies into three sequential feature subtasks:
The dependency chain was:
Isolated worktrees and serial merges into the integration branch
Each of the three feature subtasks was implemented and verified in its own Git worktree without touching the target main branch. Once verified, the Runtime merged them serially into the Supervisor integration branch, leaving three clean integration commits:
Keeping each child’s implementation commit distinct from its integration merge commit preserves full traceability: the Runtime knows exactly which candidate passed local verification, whether the integration baseline satisfies downstream dependencies, and how to reject stale or duplicate callbacks.
Parent final Verify surfaced two rounds of cross-module gaps
After all three feature subtasks merged, the change did not jump straight to Archive—it entered parent global Verify. The archivedverification.md records two rounds of real cross-module defects:
Because these gaps spanned all three modules, single-module unit tests missed them. Unraveling the three already-integrated subtasks to patch them would have broken verified boundaries and blurred the scope of the new fixes. Instead, the Runtime preserved the integration branch and returned the parent to Shape to tighten acceptance criteria and update the subtask plan.
Appending a repair subtask to close the gaps cleanly
In the finalchildren.yaml, the parent kept the first three subtasks closed and appended a fourth dedicated closure subtask:
project-knowledge-closure targeted the exact 10 acceptance gaps surfaced by parent Verify (source boundaries, targeted incremental refreshes, activation conditions, multi-worktree isolation, and end-to-end evals). In commit 3cd0c25b, it closed the edge cases across knowledge-unit parsing, learning flows, plugin integration, file persistence, and two eval scripts while preserving all three prior integration commits untouched.
Full 49-item final acceptance and separating unrelated test noise
In cycle 4, Verifier attempt 2 passed completely.verification.md recorded the full evidence:
- All 49 end-to-end acceptance criteria marked
passed; - Child verifications, serial parent integrations, and the full parent check suite all completed;
- Focused tests, Native framework tests, TypeScript typecheck, and production build all passed;
- All 3 high-risk findings flagged by independent code review were resolved, with zero remaining critical blockers.
/comet Skill length limit) raised a warning. Verify recorded that external pre-existing issue transparently without misclassifying it as a defect of this feature or letting unrelated noise obscure the verified evidence for all 49 core criteria.
Unified Archive and a single clean merge to the target branch
Once parent final verification passed, the Runtime produced archive commitde780ce2, and commit 58b6dfb2 merged comet/agent-project-knowledge-engine into 040rc1. The target branch saw one complete, fully audited merge:
Takeaways: when to choose Supervisor Change
Deciding whether to use Supervisor Change is not just about opening multiple windows to save time—it comes down to three questions: are module dependencies clear, can each slice be verified in isolation, and do you need a single unified final acceptance gate over the whole goal?
Continue reading: Supervisor Change: safe parallel execution for large tasks, Native Loop: from implementation to trustworthy delivery, and Verification and repair.

