From e8dea9c8bcbf00433af539cdd3db69f2581bf34c Mon Sep 17 00:00:00 2001 From: Matteo Cherubini Date: Tue, 9 Jun 2026 15:27:58 +0200 Subject: [PATCH] feat: introduce two-phase Ingest process with manifest --- templates/agents-genome.md | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/templates/agents-genome.md b/templates/agents-genome.md index 9c12ba7..df4c38c 100644 --- a/templates/agents-genome.md +++ b/templates/agents-genome.md @@ -89,18 +89,23 @@ Execute in this order before any file operation: _Triggered by new file in `raw/`._ +**Phase 1 — Semantic Pass (Agent Skill)** 1. Read source once. 2. Create `wiki/sources/.md` — summary + key points. 3. Per entity (person, tool, org): create or update `wiki/entities/.md`. 4. Per concept (pattern, theory, decision): create or update `wiki/concepts/.md`. 5. Check each touched page for contradictions → apply §Conflict if found. -6. Append entry to `wiki/index.md` (bottom of relevant section). -7. Append log entry: `INGEST | `. -8. Run scoped lint on pages created or modified in this session. Report issues in PR description. Do not auto-fix. -9. Commit on `feat/ai-ingest-`. Open PR using `templates/pr-description.md`. +6. **Final action:** Write `.ingest-manifest.json` at the genome root. +7. **STOP.** Do not proceed to index, log, lint, commit, or PR — these are Phase 2. + +**Phase 2 — Deterministic Post-Processing (`run-ingest.sh`)** +_Executed automatically by the orchestrator after Phase 1._ +8. Append entry to `wiki/index.md` (bottom of relevant section). +9. Append log entry: `INGEST | `. +10. Run scoped lint on pages created or modified in this session. Report issues in PR description. Do not auto-fix. +11. Commit on `feat/ai-ingest-`. Open PR using `templates/pr-description.md`. _Private source_ (`PRIVATE_CONTEXT: enabled` required): - - All output → `wiki/private/.md` only. - PR title: `[PRIVATE] ingest: `.