Wiki Knowledge Maintenance: execution plan
Wiki Knowledge Maintenance execution plan
Authority and current state
The user started Full Delivery (delivery-phase) on 2026-10-08 with "pickup architecture and plan and run".
task_identity_mode: planning-only. On 2026-10-08 the user declined the Linear projection. EveryTnis the execution identity. No provider parent, milestone, blocker or readback claim exists.architecture_applicability: architecture-bearing. Evidence: tasks change one capability cumulatively across six shared skills and theapps/wikiproject. They add public seams: the project wiki contract, the provenance record, the health command and the plan Wiki Context section.- Deferred decision: the user asked to supersede Fog IP-439. This plan does not apply it, because the decision is a product decision plus a Linear mutation. T10 produces the readonly consultation that a later
requirements-grillrun can use. - Release impact: the skills sync changes
BASELINE_CHANGELOG.md, so release classification selects baseline. Registry publication is a separate request.
Context Pointers
| Authority | Locator | Selector | Identity | Freshness rule |
|---|---|---|---|---|
| Architecture | ARCHITECTURE.md @ 38221d75 | ARC-001…ARC-009, FLOW-001…FLOW-005, #spec-traceability | commit 38221d7500c7f259c1e9b2c2017b5e415a61ba67, SHA-256 37d4b792a9dbc1cd9e5f7960e232eaa5a52d7ca83ae86c603f998059c4fc1a65 | Local file SHA-256 must equal the identity. A change invalidates every task proof. |
| Spec | SPEC.md @ b83ea6c5 | OUT-001…OUT-007, AC-001…AC-039, Accepted Technical/Testing Decisions, Verification Seams | commit b83ea6c572c49e844c454463d427f9c020677888, SHA-256 ec4f131ce53c0ea39cf31503cb43947b9620dc60dc0d0ce937e286f52f94bbcf | Same as above. Amended in T9: the retained blob at b83ea6c5 stays the identity. A local difference that touches only the ingest bookkeeping frontmatter (ingested_revision, last_ingested) keeps the pointer fresh. This follows apps/wiki/AGENTS.md (ingest may update SPEC frontmatter) and the wiki-ingest.md#freshness bookkeeping rule. Check: git diff b83ea6c5 -- SPEC.md shows only those lines. |
| Decisions | apps/wiki/content/docs/project/grilling/wiki-knowledge-maintenance-grill-log.md | #q1…#q11 | commit bd90ddc64a3343d3cc5dee17c782a604ecbecc9f | Q selectors must resolve. Do not reinterpret accepted answers. |
| Glossary | apps/wiki/content/docs/project/domains/wiki-knowledge-maintenance-glossary.mdx | #language | commit bd90ddc6 | Use canonical terms: project-owned wiki, raw source, ingest, wiki setup/adoption. |
| Karpathy source | apps/wiki/raw/external/karpathy-llm-wiki/ac46de1ad27f/ | llm-wiki.md, source.json | commit 5060b0745c2c339df461c6c4b79fffff050f87d1, SHA-256 dc3efe98…7401 | Committed blob must hash to source.json.sha256. |
| Shared skills source | /home/stefan/repos/skills | branch main | HEAD d3986a6 at planning; pin 985e8db | git branch --show-current must print main before any edit. |
Remote retention at planning: origin/docs/wiki-knowledge-maintenance = b83ea6c5. Local bytes of both artifacts equal the retained blobs.
Initial situation and problem
Discovery on 2026-10-08 (shared-skills agent and apps/wiki agent; readonly) found:
- No skill captures supplied raw sources into Git or verifies a committed blob. Provenance exists only as one hand-written
source.json(Karpathy). docs-ingest-phase/references/wiki-ingest.md:19makesingested: truea hard no-op. Changed specs never get refreshed (contradicts AC-016, AC-021).concept-pages.md:10-11readsraw/files withingestedfalse but no skill marks them.- Log rules disagree:
wiki-ingest.md:120capslog.mdat 50 entries (contradicts AC-036);requirements-grill/references/wiki-output.mdhard-codesapps/wiki/log.md;create-speclogs only for the legacy surface.apps/wiki/log.mdorder is mixed (newest-first to entry 60, then oldest-first). create-plan/SKILL.md:87scans learnings only "when relevant". No plan records the knowledge it used (AC-025).- No skill runs wiki health checks.
apps/wikihascheck:content(projection drift) but no link check, nometa.jsoncompleteness check and no provenance check.HI-WIKI-003already requires resolved links. project/meta.jsonomitsdomainsandbacklog-provider;harness/meta.jsonomitslifecycle-flowsandtrust-and-adoption. These folders are probably absent from the sidebar.apps/wiki/index.mdsits outside the Fumadocs collection, uses wikilinks and still says "punks/dpCLI".llms.txt,llms-full.txt, per-page Markdown and search already serve the routed corpus.apps/wiki/AGENTS.mdhas no raw-home, discovery-entrypoint or source-owner contract in the form AC-002 needs.- The CLI only detects and excludes the wiki (
apps/cli/src/registry/shape.ts:20-35). It writes no wiki files. AC-039 holds today and must keep holding. - Skills tests are
node:testregex contracts:cd /home/stefan/repos/skills && node --test tests/<file>.contract.test.mjs. There is nopackage.json.
Proposed solution shape
Extend existing owners (no new skill, no CLI catalog change):
docs-ingest-phasegains three disclosed references and router branches: wiki-contract (FLOW-001), source-capture (FLOW-002) and health (FLOW-005). It also ships one deterministic script that reads back a committed source.docs-ingest-phasereconciliation references switch freshness from theingestedboolean to recorded source identity. They put flows before concepts, keep contradictions visible, update the discovery map and keep an uncapped chronological log (FLOW-003).create-plangains a mandatory Wiki Context step and plan section (FLOW-004).requirements-grillandcreate-specbookkeeping use the same log rule and resolve the wiki root from the project contract.apps/wikigains the project-owned wiki contract inapps/wiki/AGENTS.md, a testedcheck:healthscript and a routed discovery map.- Skills are pushed, tagged and synced through the existing pin. Then a real proof in this repository ingests knowledge and a later planning exercise uses it.
Resolved decision ledger
| ID | Decision | Source |
|---|---|---|
| P1 | Planning-only task identities; no Linear writes. | User, 2026-10-08 |
| P2 | Supersede IP-439 is deferred, not applied. | User answer plus Q-boundary (product decision) |
| P3 | Extend existing skills; no new skill or catalog entry. | User, 2026-10-08 |
| P4 | Implementation branch feat/wiki-knowledge-maintenance from origin/main plus the five rebased spec commits. One PR to main. | User, 2026-10-08 |
| P5 | The sync tag includes the two unsynced skills commits (3b0e174, d3986a6); BASELINE_CHANGELOG.md Unreleased lists them. Update (T8 gate): origin/main already pins d3986a6 (sync/scoped-delivery-validation-d3986a6a5a57). The stale-branch observation does not hold, so the T11 changelog lists only this delivery's skill changes. | User, 2026-10-08 |
| P6 | The AC-037 planning exercise is a readonly IP-439 consultation. | User, 2026-10-08 |
| P7 | All skill and prompt edits follow writing-for-agents (leading words, disclosure, completion criteria, no sediment). | User, 2026-10-08 |
| P8 | Provenance record name stays source.json beside the original in raw/<origin>/<slug>/<revision12>/. The existing fields stay. A new optional derived array lists derived representations as {file, sha256, from_sha256, method}. | Plan-owned (SPEC Remaining Implementation Choices) |
| P9 | Integrated-knowledge freshness: frontmatter sources lists {path, sha256} for each consulted original. Ingested specs and notes record ingested_revision (Git blob ID at ingest). A legacy ingested: true without ingested_revision means "freshness unknown: evaluate". | Plan-owned |
| P10 | log.md is append-only, oldest-first, with no cap. An archive is allowed only when the root log keeps a link to it. The current mixed order is kept as history. New entries append at the end. The single home of this rule is docs-ingest-phase/references/wiki-ingest.md (#log section, T4). health.md, wiki-output.md and wiki-bookkeeping.md only point to it. | Plan-owned; AC-036 |
| P11 | The root/topic discovery map is routed content/docs/project/index.mdx plus section indexes, each with an "Applies when" cue. apps/wiki/index.md becomes repository bookkeeping that points to the routed map. | Plan-owned; AC-023, AC-024 |
| P12 | Health command name: bun run --cwd apps/wiki check:health. It checks links, meta.json membership, required frontmatter and source.json integrity. It reports only structure. Semantic findings stay in the health reference outcome. | Plan-owned; AC-032 |
| P13 | Skills tasks do not commit. T11 makes path-limited commits per concern on skills main, then pushes, tags and syncs. | Plan-owned; avoids a shared Git index between workers |
Assumptions and constraints
- Skills edits happen only in
/home/stefan/repos/skillson checked-outmain. Mirrors (.agents/skills,apps/cli/skills) change only through sync andhi update(AC-038). - The installer boundary stays unchanged. No task edits
apps/cli/src/registry/**or catalog data (AC-039). Ordinary ingest never writes Project Verifier assets. - Preserve unrelated work:
.devpunks/delivery/issue217/(untracked, harness) andtests/fixtures/v43/IP-453/skills/(untracked, skills). - Shared machine: run builds and tests in a
systemd-run --user --scope … nice -n 10scope sized from livefree -gand/proc/pressuredata (/AGENTS.md). Clean all task-owned scratch before closeout.
Architecture contract
Target Ownership Topology
| Owner | Responsibility | Public entrypoint | Must not absorb |
|---|---|---|---|
docs-ingest-phase | Capture, reconciliation, health outcome, recovery rules (ARC-004/005/009) | SKILL.md router branches | Project paths, project check implementations, verifier assets |
create-plan | Consultation and citation of knowledge (ARC-008) | Wiki Context step + PLAN.md section | Ingest writes |
requirements-grill, create-spec | Their own artifact bookkeeping | Existing references | Their own log policy (they use the shared rule) |
apps/wiki | Contract, originals, corpus, discovery, structural checks (ARC-002/003/006/007) | AGENTS.md, check:health, routes | Skill workflow policy |
apps/cli | Sync and distribute skills only (ARC-001) | sync:skills | Wiki files, wiki setup |
Declared Dependency Graph
Allowed edges only. Forbidden: a skill hard-codes apps/wiki when the contract gives the root; apps/wiki code imports or depends on skill files; the CLI writes or checks wiki content beyond detection; ingest writes Project Verifier assets.
Responsibility Acceptance Criteria
| criterion_id | Owner | Observable assertion | Evidence | due_architecture_wave | Tasks |
|---|---|---|---|---|---|
| RAC-1 | docs-ingest-phase | Router selects wiki-contract before capture or ingest. A gap report names the exact missing destination and writes nothing (AC-001–AC-005). | node --test tests/wiki-knowledge-entry.contract.test.mjs | A1 | T1 |
| RAC-2 | docs-ingest-phase | Capture preserves bytes, makes a path-limited commit, reads back the blob, and reports one of the outcomes: not captured, saved-uncommitted, unverified or committed (AC-006–AC-015, AC-027, AC-028). | node --test tests/wiki-source-capture.contract.test.mjs plus the script fixture test | A1 | T2 |
| RAC-3 | docs-ingest-phase | Health outcome separates structural results from semantic findings, records refresh outcomes and keeps chronology (AC-032–AC-036, AC-029, AC-030). | node --test tests/wiki-health.contract.test.mjs | A1 | T3 |
| RAC-4 | apps/wiki | check:health fails on a broken link, a missing meta.json entry, missing frontmatter or a source.json hash mismatch, and passes on a clean fixture. | bun run --cwd apps/wiki test:ci | A1 | T7 |
| RAC-5 | docs-ingest-phase | Freshness uses the recorded source identity; flows precede concepts; contradictions stay visible; discovery map and log update before a complete claim (AC-016–AC-022, AC-031). | node --test tests/wiki-reconciliation.contract.test.mjs | A2 | T4 |
| RAC-6 | create-plan, bookkeeping writers | A plan records Wiki Context or explicit absence and returns findings; all writers use one log rule and the contract root (AC-025, AC-026, AC-036). | node --test tests/wiki-consultation.contract.test.mjs tests/wiki-bookkeeping.contract.test.mjs | A2 | T5, T6 |
| RAC-7 | apps/wiki | AGENTS.md names wiki location, raw home, article tree, discovery entrypoints, source owners and validation commands (AC-002). | Inspection plus the T8 grep gate | A2 | T8 |
| RAC-8 | apps/cli / proof | Sync receipt names the pushed skills commit; the proof connects source → article → llms.txt/Markdown route → IP-439 plan citation; no CLI wiki ownership change and no verifier asset change (AC-037–AC-039). | T11 receipt; T9 runtime evidence; T10 artifact; git diff --exit-code origin/main -- apps/cli/src/registry apps/cli/src/data and node --test tests/v43-verifier-ownership.contract.test.mjs in skills | A3 | T11, T9, T10 |
Architecture Waves
| architecture_wave | Topology delta | Entry | Criteria due | Checkpoint |
|---|---|---|---|---|
| A1 boundary establishment | Contract, capture and health seams exist in skills; project check exists | none | RAC-1…RAC-4 | A1 task tests green; skills suite gate holds against the baseline; git -C /home/stefan/repos/skills status --short shows only owned paths plus the pre-existing untracked fixture |
| A2 vertical slice | Reconciliation, consultation and bookkeeping consume the A1 seams; project contract declares them | A1 checkpoint for consumers (T4 needs T1–T3; T8 needs T1, T7) | RAC-5…RAC-7 (+ regress RAC-1…RAC-4) | Skills suite gate holds; the wiki-ingest.md log-rule anchor that T3 and T6 point to resolves; test:ci green |
| A3 final closure | Distribution plus real proof | A2 checkpoint | RAC-8 (+ regress all) | Receipt verified; proof evidence recorded; migration ledger empty |
Public Seam Contract
| Seam | Owner | Allowed consumers |
|---|---|---|
Project wiki contract section in <wiki-root>/AGENTS.md | Project | All wiki-writing and wiki-reading skills |
source.json provenance record (P8) | Project data, format defined by docs-ingest-phase/references/source-capture.md | Capture, reconciliation, health, check:health |
scripts/verify-captured-source.mjs <path-to-source.json> [--ref <rev>] | docs-ingest-phase | Capture and resume steps |
check:health command (P12) | apps/wiki | Health reference via the contract's validation commands |
sources / ingested_revision frontmatter (P9) | docs-ingest-phase | Reconciliation, health, planning consultation |
## Wiki Context section in PLAN.md | create-plan | implement-spec, docs-ingest-phase (return of findings) |
Migration Ledger
Empty. The legacy ingested: true without ingested_revision is a permanent, defined read rule (P9), not a temporary seam.
Dependency graph and execution waves
| Wave | Eligible tasks | Why |
|---|---|---|
| W1 | T0, T1, T2, T3 | No dependencies; disjoint write scopes |
| W2 | T4, T7 | T4 consumes the T1 contract, the T2 provenance format and the T3 pointers; T7 needs the T0 branch |
| W3 | T5, T6, T8 | T5/T6 point to the T4 discovery and log rules; T8 copies T1 field names and the T7 command |
| W4 | T11 | Needs every skills task and T8 (shared docs/README.md) |
| W5 | T9 | Needs synced skills, the health command and the contract |
| W6 | T10 | Needs the T9 knowledge |
Waves label the earliest frontier. Release is recomputed after each Task Gate.
Harness commits. Each Harness task (T0, T7, T8, T11, T9, T10) ends its Task Gate with a path-limited commit of its owned paths on feat/wiki-knowledge-maintenance. T11 commits before release classification, because classification reads committed trees. Delivery closeout pushes and opens the P4 pull request.
Skills suite baseline (2026-10-08, skills main d3986a6). cd /home/stefan/repos/skills && node --test tests/*.test.mjs → 276 tests, 262 pass, 14 fail. Pre-existing failing tests: TAP numbers 1, 19, 79, 211–216, 219, 220, 225, 226, 231 (glossary closure, requirements-grill brainstorm gate, parallel-research durable report, spec compiler and delivery routing). A suite gate passes when no test outside this set fails and every new test passes. Changing a baseline failure is out of scope.
Tasks
Shared values for every task: task_identity_mode: planning-only, backlog_item_id: not_applicable, backlog_item_url: not_applicable, relation_mode: unprojected, backlog_sync_skip_reason: User chose planning-only delivery on 2026-10-08; no Linear projection exists. Each task repeats them below for standalone use.
T0: Prepare the implementation branch
- depends_on: []
- location:
/home/stefan/repos/harness-intelligence(Git refs) - owned_paths: [branch
feat/wiki-knowledge-maintenance,apps/wiki/content/docs/project/specs/wiki/knowledge-maintenance/PLAN.md,apps/wiki/content/docs/project/specs/wiki/knowledge-maintenance/meta.json] - read_dependencies: [Context Pointers,
origin/main, commits5060b074…b83ea6c5] - shared_runtime_resources: Harness working tree; exclusive while switching branches. Preserve
.devpunks/delivery/issue217/. - relevant_input_set:
git rev-parse origin/main; the five spec commit IDs; SHA-256 of ARCHITECTURE/SPEC after cherry-pick must equal the Context Pointers; SHA-256 ofPLAN.mdbefore stash equals after pop. - wave_boundary: W1
- description:
git fetch origin. Stash onlyPLAN.mdand the modified specmeta.json(git stash push --include-untracked -- <both paths>), becauseorigin/mainlacks the spec folder and the switch would refuse. Createfeat/wiki-knowledge-maintenancefromorigin/main; cherry-pick5060b074,bd90ddc6,04f8a5e4,38221d75,b83ea6c5in order; pop the stash. CommitPLAN.mdandmeta.jsonpath-limited as the plan commit. Push the branch with upstream. - validation:
git log --oneline origin/main..HEADshows six commits (five spec, one plan). Artifact SHA-256 values match.git stash listhas no leftover entry from this task.git statuskeepsissue217/untracked. - status: Complete
- log: Complete. Branch from origin/main + 5 spec commits (log.md conflict resolved by keeping both appends) + plan commit 5951809ef; pushed.
- files edited/created:
- task_identity_mode: planning-only
- backlog_item_id: not_applicable
- backlog_item_url: not_applicable
- relation_mode: unprojected
- backlog_sync_skip_reason: User chose planning-only delivery on 2026-10-08; no Linear projection exists.
- assigned_skills: []
- implementation_skill_guidance: []
- tdd_status: not_applicable
- tdd_target: Branch topology only.
- red_command:
- expected_red_failure:
- green_command:
git log --oneline origin/main..HEAD - reason_not_testable: Git bookkeeping; no behavior change.
- red_evidence: not_applicable (no RED/GREEN; see reason_not_testable)
- green_evidence: not_applicable (no RED/GREEN; see reason_not_testable); validation evidence in log
- codebase_design_notes: not_applicable
- review_mode: cli
- runtime_validation: not_required
- runtime_target: not_applicable
- runtime_evidence: not_applicable
- runtime_cleanup: not_applicable
T1: docs-ingest-phase entry and wiki-contract branch
- depends_on: []
- location:
/home/stefan/repos/skills/skills/phases/docs-ingest-phase/ - owned_paths: [
skills/phases/docs-ingest-phase/SKILL.md,skills/phases/docs-ingest-phase/phases/router.md,skills/phases/docs-ingest-phase/references/wiki-contract.md(new),tests/wiki-knowledge-entry.contract.test.mjs(new)] - read_dependencies: [ARCHITECTURE ARC-001, ARC-002, FLOW-001; SPEC AC-001–AC-005, AC-039; Q2, Q6, Q8;
docs-ingest-phase/phases/private-internal.md;apps/wiki/AGENTS.mdas the example contract] - shared_runtime_resources: Skills working tree, file-disjoint; no commits (P13).
- relevant_input_set: Context Pointers;
git -C /home/stefan/repos/skills branch --show-current=main; hash ofprivate-internal.mdbefore/after checks. - wave_boundary: W1
- description: Add router branches: wiki setup/adoption, supplied-source capture, health/maintenance, plus the existing private/public paths. Every branch first resolves the wiki contract.
wiki-contract.mddefines: required contract fields (wiki location, raw home, canonical article tree, discovery entrypoints, source owners, validation commands); adopt-without-replacing rules; authorized-setup rules with no installer ownership; exact gap reporting that writes no canonical content; separate readiness for source storage, knowledge/navigation and rendering, including unavailable checks; capture allowed when storage is ready, without onboarding or deploy (AC-005). - validation: The new contract test passes. Router lists each branch with one trigger.
wiki-contract.mdhas a completion criterion per step. - status: Complete
- log: Complete (gate passed). Uncommitted until T11; 22/22 GREEN.
- files edited/created:
- task_identity_mode: planning-only
- backlog_item_id: not_applicable
- backlog_item_url: not_applicable
- relation_mode: unprojected
- backlog_sync_skip_reason: User chose planning-only delivery on 2026-10-08; no Linear projection exists.
- assigned_skills: [
writing-for-agents,tdd,codebase-design] - implementation_skill_guidance:
- skill:
writing-for-agentsapplicable_behavior: Keep the router legible: one trigger per branch, leading words (contract, gap, readiness), disclose detail intowiki-contract.md, end each step on a checkable completion criterion, phrase guardrails positively. - skill:
tddapplicable_behavior: Write the regex contract test first and capture its failure before editing skill text. - skill:
codebase-designapplicable_behavior: Keep the contract field list insidewiki-contract.md; the router and other references only say "resolve the wiki contract".
- skill:
- tdd_status: required
- tdd_target: The router names a wiki-contract branch, and
wiki-contract.mdrequires separate storage, knowledge/navigation and rendering readiness plus an exact gap with no write. - red_command:
cd /home/stefan/repos/skills && node --test tests/wiki-knowledge-entry.contract.test.mjs - expected_red_failure: ENOENT for
references/wiki-contract.md, or the router assertion fails. - green_command:
cd /home/stefan/repos/skills && node --test tests/wiki-knowledge-entry.contract.test.mjs tests/skill-activation-boundaries.contract.test.mjs tests/show-me.contract.test.mjs tests/v43-verifier-ownership.contract.test.mjs - reason_not_testable:
- red_evidence:
node --test tests/wiki-knowledge-entry.contract.test.mjs→ exit 1, tests 10, pass 1, fail 9 (ENOENT references/wiki-contract.md; router link and description assertions). - green_evidence: GREEN command → tests 22, pass 22, fail 0 (baseline of the three existing files before edits: 12/12).
- codebase_design_notes: The router is the one public entry. The contract reference is a deep module: callers ask "resolve contract", and the field list stays inside it.
- review_mode: cli
- runtime_validation: not_required
- runtime_target: not_applicable
- runtime_evidence: not_applicable
- runtime_cleanup: not_applicable
- architecture_wave: A1
- behavior_owner:
docs-ingest-phase - integration_surface: Agent invocation of
docs-ingest-phase - public_seam: Router branches; project wiki contract section
- topology_delta: New entry edge from the router to the project contract (ARC-001 → ARC-002)
- forbidden_ownership: Hard-coded project paths; creation of wiki app files by the installer; verifier assets
- temporary_seams: none
- responsibility_acceptance_criteria: [RAC-1]
T2: Source-capture branch and readback script
- depends_on: []
- location:
/home/stefan/repos/skills/skills/phases/docs-ingest-phase/ - owned_paths: [
skills/phases/docs-ingest-phase/references/source-capture.md(new),skills/phases/docs-ingest-phase/scripts/verify-captured-source.mjs(new),tests/wiki-source-capture.contract.test.mjs(new),tests/fixtures/wiki-source-capture/**(new)] - read_dependencies: [ARC-003, ARC-004, FLOW-002,
#source-durability-and-partial-outcomes; AC-006–AC-015, AC-027, AC-028; Q4, Q5, Q7; Karpathysource.jsonas the format example] - shared_runtime_resources: Skills working tree, file-disjoint. The script test creates a temporary Git repo under
mktemp -dand removes it inafter(). - relevant_input_set: Context Pointers; skills branch =
main; Karpathysource.jsonbytes. - wave_boundary: W1
- description:
source-capture.md: acquire (an unavailable source means "not captured"; a URL, summary or command exit is never proof); preserve exact bytes or text inraw/<origin>/<slug>/<revision12>/withsource.json(P8); reuse identical bytes; keep a changed source as a new revision without overwriting; keep PDF originals with attributed derived text; keep meeting transcript and notes distinct, with no claim about unavailable content; make a path-limited commit (git commit --only -- <owned paths>) that preserves unrelated staged and working changes; read back with the script; report one of: not captured, saved-uncommitted, unverified, committed; a knowledge no-op still captures (AC-014); a local commit does not prove remote retention. The script readsgit show <ref>:<path>for the original, compares SHA-256 and size withsource.json, checks eachderived[].from_sha256, and exits non-zero with a reason. - validation: The contract test passes. The script test proves: match → exit 0; tampered blob → exit 1; uncommitted file → exit 1 with "not committed".
- status: Complete
- log: Complete (gate passed). 7/7 GREEN; script reads blobs via
git cat-file blob; commit recipegit add -- <dir>thengit commit --only. - files edited/created:
- task_identity_mode: planning-only
- backlog_item_id: not_applicable
- backlog_item_url: not_applicable
- relation_mode: unprojected
- backlog_sync_skip_reason: User chose planning-only delivery on 2026-10-08; no Linear projection exists.
- assigned_skills: [
writing-for-agents,tdd,codebase-design,backend-recoverable-actions] - implementation_skill_guidance:
- skill:
writing-for-agentsapplicable_behavior: Use the leading word original for preserved bytes and derived for extracted text; one outcome list; a completion criterion per capture step; no restated environment facts. - skill:
tddapplicable_behavior: Test the script through its CLI result on a real temporary Git repo before writing it. - skill:
codebase-designapplicable_behavior: The script interface is onesource.jsonpath plus an optional--ref; it holds no project paths and returns one result line plus an exit code. - skill:
backend-recoverable-actionsapplicable_behavior: Treat preserve → commit → readback → extract as recoverable steps. Each failure leaves an explicit retriable state, and nothing is rolled back destructively.
- skill:
- tdd_status: required
- tdd_target:
node scripts/verify-captured-source.mjs <source.json>exits 1 when the committed blob differs from the recorded SHA-256. - red_command:
cd /home/stefan/repos/skills && node --test tests/wiki-source-capture.contract.test.mjs - expected_red_failure: ENOENT for the script and the reference.
- green_command:
cd /home/stefan/repos/skills && node --test tests/wiki-source-capture.contract.test.mjs - reason_not_testable:
- red_evidence:
node --test tests/wiki-source-capture.contract.test.mjs→ 7/7 fail (MODULE_NOT_FOUND for the script, ENOENT for the reference). - green_evidence: Same command → 7/7 pass; full suite 296/282/14 (baseline failure names only); script printed OK for the committed Karpathy record.
- codebase_design_notes: The script is the deep verification seam. Its interface is one path plus an optional ref, and it has no project-specific paths.
- review_mode: cli
- runtime_validation: not_required
- runtime_target: not_applicable
- runtime_evidence: not_applicable
- runtime_cleanup: not_applicable
- architecture_wave: A1
- behavior_owner:
docs-ingest-phase - integration_surface: The capture branch selected by the router
- public_seam:
source.jsonformat;verify-captured-source.mjsCLI - topology_delta: Adds ARC-004 → ARC-003 write-and-verify edge
- forbidden_ownership: Remote push or backup; repository-wide
git add -A; editing originals - temporary_seams: none
- responsibility_acceptance_criteria: [RAC-2]
T3: Health and recovery branch
- depends_on: []
- location:
/home/stefan/repos/skills/skills/phases/docs-ingest-phase/ - owned_paths: [
skills/phases/docs-ingest-phase/references/health.md(new),tests/wiki-health.contract.test.mjs(new)] - read_dependencies: [ARC-009, FLOW-005; AC-029–AC-036; Q3, Q7, Q8, Q9;
references/learning-artifacts.md; P8–P12] - shared_runtime_resources: Skills working tree, file-disjoint.
- relevant_input_set: Context Pointers; skills branch =
main; hash oflearning-artifacts.md. - wave_boundary: W1
- description:
health.md: run the contract's validation commands (structural: frontmatter, links, navigation, source references) and record them separately from a scoped semantic pass (stale claims, contradictions, missing connections or synthesis, discovery gaps) with a resolution or explicit unresolved status. Learning refresh records keep, update, consolidate, replace, delete or mark-stale, and repairs affected references. Projections update through canonical source owners; a missing projection source never authorizes deleting routed knowledge. Chronology: point to the P10 log rule inwiki-ingest.md#log(T4 writes that section; the A2 checkpoint verifies the anchor). Resume reads durable source, Git and output evidence and continues only missing work, with no duplicate originals or repeated integration claims. Before overlapping writes, re-read current state and preserve concurrent changes or report a conflict. - validation: The contract test passes.
- status: Complete
- log: Complete (gate passed). 3/3 GREEN.
- files edited/created:
- task_identity_mode: planning-only
- backlog_item_id: not_applicable
- backlog_item_url: not_applicable
- relation_mode: unprojected
- backlog_sync_skip_reason: User chose planning-only delivery on 2026-10-08; no Linear projection exists.
- assigned_skills: [
writing-for-agents,tdd] - implementation_skill_guidance:
- skill:
writing-for-agentsapplicable_behavior: Split structural and semantic as two leading words with separate output fields; point tolearning-artifacts.mdoutcomes instead of duplicating them. - skill:
tddapplicable_behavior: The contract test fails beforehealth.mdexists.
- skill:
- tdd_status: required
- tdd_target:
health.mdrequires separate structural and semantic records and forbids deletion based only on projection-source disappearance. - red_command:
cd /home/stefan/repos/skills && node --test tests/wiki-health.contract.test.mjs - expected_red_failure: ENOENT for
references/health.md. - green_command:
cd /home/stefan/repos/skills && node --test tests/wiki-health.contract.test.mjs - reason_not_testable:
- red_evidence:
node --test tests/wiki-health.contract.test.mjs→ ENOENT references/health.md; two further slices failed on their assertions before each edit. - green_evidence: Same command → tests 3, pass 3, fail 0.
- codebase_design_notes: Health consumes project commands only through the contract. It does not implement checks.
- review_mode: cli
- runtime_validation: not_required
- runtime_target: not_applicable
- runtime_evidence: not_applicable
- runtime_cleanup: not_applicable
- architecture_wave: A1
- behavior_owner:
docs-ingest-phase - integration_surface: The health branch selected by the router
- public_seam: Health outcome record
- topology_delta: Adds the ARC-009 → project-check edge through the contract
- forbidden_ownership: Check implementations; verifier assets
- temporary_seams: none
- responsibility_acceptance_criteria: [RAC-3]
T4: Reconciliation freshness, ordering, discovery and log
- depends_on: [T1, T2, T3]
- location:
/home/stefan/repos/skills/skills/phases/docs-ingest-phase/ - owned_paths: [
skills/phases/docs-ingest-phase/phases/private-internal.md,skills/phases/docs-ingest-phase/agents/openai.yaml(amended 2026-10-08 after T1: the interface text still names only two paths),references/wiki-ingest.md,references/concept-pages.md,references/flow-pages.md,references/fumadocs-routing.md,references/learning-artifacts.md(all underskills/phases/docs-ingest-phase/),tests/wiki-reconciliation.contract.test.mjs(new)] - read_dependencies: [ARC-005–ARC-007, ARC-009, FLOW-003,
#knowledge-compilation-and-reuse; AC-016–AC-024, AC-027, AC-031, AC-035, AC-036; Q3, Q7, Q8, Q9; T1wiki-contract.mdfields; T2source-capture.md(P8 format); T3health.mdpointers; P9–P11] - shared_runtime_resources: Skills working tree, file-disjoint.
- relevant_input_set: Context Pointers; skills branch =
main; T1/T2/T3 file hashes at task start. - wave_boundary: W2
- description: Replace the
ingested: truehard no-op with a freshness check againstingested_revisionandsources(P9). A legacy boolean means "evaluate". Implementation status needs implementation evidence, not the existence of the notes file. Raw inputs come from verifiedsource.jsonrecords, notingestedflags. Required flows finish before dependent concepts, and a flow failure stops them (AC-020). Merge into the owning article; keep contradictions and unaccepted choices attributed and visibly unresolved. Each changed routed article needs an owningmeta.jsonentry, a discovery-map entry with an "Applies when" cue, and resolved links before a complete claim (AC-022, AC-023). Machine views use the same corpus; never claim thatraw/is in HTTP exports (AC-024). Write log rule P10 as the single#logsection ofwiki-ingest.md(remove the 50-entry cap). The ingest outcome distinguishes partial integration from completed integration (AC-027). Missing route, output or validation work stays recorded as unfinished (AC-031). - validation: The new contract test passes. Existing tests that read these files still pass.
- status: Complete
- log: Complete (gate passed). 11/11 GREEN; suite = 14 baseline failures; also owns openai.yaml (amendment).
- files edited/created:
- task_identity_mode: planning-only
- backlog_item_id: not_applicable
- backlog_item_url: not_applicable
- relation_mode: unprojected
- backlog_sync_skip_reason: User chose planning-only delivery on 2026-10-08; no Linear projection exists.
- assigned_skills: [
writing-for-agents,tdd] - implementation_skill_guidance:
- skill:
writing-for-agentsapplicable_behavior: Prune sediment (the boolean no-op, the 50-entry cap, duplicatedmeta.jsonrules across three files) into one source of truth infumadocs-routing.md; keep fresh/stale as leading words; sharpen each step's completion criterion. - skill:
tddapplicable_behavior: Assert first that the hard no-op text and the 50-entry cap are absent and that the freshness rule is present.
- skill:
- tdd_status: required
- tdd_target:
wiki-ingest.mdno longer treatsingested: trueas a no-op and requiresingested_revisioncomparison. - red_command:
cd /home/stefan/repos/skills && node --test tests/wiki-reconciliation.contract.test.mjs - expected_red_failure: The assertion that
wiki-ingest.mdhas no hard no-op fails on the current line 19. - green_command:
cd /home/stefan/repos/skills && node --test tests/wiki-reconciliation.contract.test.mjs tests/v43-verifier-ownership.contract.test.mjs tests/wayfinder-lifecycle.contract.test.mjs - reason_not_testable:
- red_evidence:
node --test tests/wiki-reconciliation.contract.test.mjs→ failed on theingested: trueno-op assertion (wiki-ingest.md line 19) and the missing## Logsection; each later slice failed before its edit. One test (partial integration) passed on first run; no RED observed for it. - green_evidence: Same command → 11/11; GREEN set 64/53/11 (11 baseline wayfinder failures, identical names before/after); full suite 307/293/14.
- codebase_design_notes: Single source of truth for navigation and discovery rules in
fumadocs-routing.md; other references point to it. - review_mode: cli
- runtime_validation: not_required
- runtime_target: not_applicable
- runtime_evidence: not_applicable
- runtime_cleanup: not_applicable
- architecture_wave: A2
- behavior_owner:
docs-ingest-phase - integration_surface: The private/internal ingest path
- public_seam:
sources/ingested_revisionfrontmatter; discovery-map entry shape - topology_delta: ARC-005 reads ARC-003 provenance and writes ARC-006/ARC-007
- forbidden_ownership: Accepting product decisions; deleting knowledge because a projection source disappeared
- temporary_seams: none
- responsibility_acceptance_criteria: [RAC-5]
T5: create-plan Wiki Context
- depends_on: [T1, T4]
- location:
/home/stefan/repos/skills/skills/agnostic/planning/create-plan/ - owned_paths: [
skills/agnostic/planning/create-plan/SKILL.md,skills/agnostic/planning/create-plan/references/plan-schema.md,tests/wiki-consultation.contract.test.mjs(new)] - read_dependencies: [ARC-007, ARC-008, FLOW-004; AC-023, AC-025, AC-026; Q3, Q9; P9, P11]
- shared_runtime_resources: Skills working tree, file-disjoint.
- relevant_input_set: Context Pointers; skills branch =
main; T1wiki-contract.mdand T4fumadocs-routing.mdhashes (contract resolution and discovery-map entry shape). - wave_boundary: W3
- description: Replace the "scan … when relevant" line with a required Wiki Context step: resolve the contract; select articles from the root/topic map and search, not the full wiki; check material claims against primary evidence; record the knowledge used, stale or contradictory claims and their resolution, or explicit "no applicable context"; send novel evidence-backed findings to
docs-ingest-phase, or record a knowledge no-op.plan-schema.mdadds## Wiki Contextto the plan contract. - validation: The new contract test and the existing create-plan tests pass.
- status: Complete
- log: Complete (gate passed). 3/3 GREEN; adds the contract-gap rule (record missing fields + No applicable context), accepted.
- files edited/created:
- task_identity_mode: planning-only
- backlog_item_id: not_applicable
- backlog_item_url: not_applicable
- relation_mode: unprojected
- backlog_sync_skip_reason: User chose planning-only delivery on 2026-10-08; no Linear projection exists.
- assigned_skills: [
writing-for-agents,tdd] - implementation_skill_guidance:
- skill:
writing-for-agentsapplicable_behavior: One numbered step with a checkable criterion ("Wiki Context section names cited pages or states absence"); keepSKILL.mdlean and put the section format inplan-schema.md. - skill:
tddapplicable_behavior: The contract test fails until both files carry the step and the section.
- skill:
- tdd_status: required
- tdd_target:
plan-schema.mdrequires aWiki Contextsection with explicit absence allowed. - red_command:
cd /home/stefan/repos/skills && node --test tests/wiki-consultation.contract.test.mjs - expected_red_failure: The
Wiki Contextassertion fails. - green_command:
cd /home/stefan/repos/skills && node --test tests/wiki-consultation.contract.test.mjs tests/architecture-convergence.contract.test.mjs tests/create-plan-backlog-tasks.contract.test.mjs tests/v43-context-reconciliation.contract.test.mjs tests/wayfinder-lifecycle.contract.test.mjs tests/scoped-delivery-validation.contract.test.mjs tests/review-phase-graph.contract.test.mjs tests/show-me.contract.test.mjs tests/routed-glossary-consumers.contract.test.mjs tests/scoped-agent-guidance.contract.test.mjs tests/agent-workflow-contract.test.mjs(baseline failures in these files stay allowed) - reason_not_testable:
- red_evidence:
node --test tests/wiki-consultation.contract.test.mjs→ 3/3 fail (no Wiki Context step; old learning-scan line present; no## Wiki Contextlist item). - green_evidence: Same command → 3/3 pass; focused set 94/82/12 with identical failing names before/after; full suite 313/299/14.
- codebase_design_notes: Consultation is a read-only consumer; findings return through the ingest entry, not through direct writes.
- review_mode: cli
- runtime_validation: not_required
- runtime_target: not_applicable
- runtime_evidence: not_applicable
- runtime_cleanup: not_applicable
- architecture_wave: A2
- behavior_owner:
create-plan - integration_surface: Planning runs
- public_seam:
## Wiki Contextplan section - topology_delta: Adds the ARC-008 → ARC-007 read edge and the ARC-008 → ARC-005 return edge
- forbidden_ownership: Wiki writes from planning
- temporary_seams: none
- responsibility_acceptance_criteria: [RAC-6]
T6: Shared bookkeeping rule for grill and spec writers
- depends_on: [T1, T4]
- location:
/home/stefan/repos/skills/skills/agnostic/requirements/requirements-grill/references/,/home/stefan/repos/skills/skills/agnostic/planning/create-spec/references/ - owned_paths: [
skills/agnostic/requirements/requirements-grill/references/wiki-output.md,skills/agnostic/planning/create-spec/references/wiki-bookkeeping.md,tests/wiki-bookkeeping.contract.test.mjs(new),skills/phases/docs-ingest-phase/references/health.md## Lifecycle changessection only (amended 2026-10-08 after the T4 gate: reduce the duplicated reference-repair and projection rule to a pointer tolearning-artifacts.md#refresh-outcomes)] - read_dependencies: [ARC-009, FLOW-005-STEP-004; AC-036; Q3; P10;
tests/requirements-grill-composition.contract.test.mjs,tests/routed-glossary-consumers.contract.test.mjs] - shared_runtime_resources: Skills working tree, file-disjoint.
- relevant_input_set: Context Pointers; skills branch =
main; T4wiki-ingest.md#loghash. - wave_boundary: W3
- description: Both writers resolve the wiki root from the project contract instead of hard-coding
apps/wiki. They append chronological log entries through the P10 rule, andcreate-speclogs on the routed surface too. Each file points todocs-ingest-phase/references/wiki-ingest.md#logand carries no copy of the rule. - validation: The new and existing tests pass.
- status: Complete
- log: Complete (gate passed). 3/3 GREEN; health.md lifecycle reduced to a pointer; wiki-health test adjusted to require the pointer.
- files edited/created:
- task_identity_mode: planning-only
- backlog_item_id: not_applicable
- backlog_item_url: not_applicable
- relation_mode: unprojected
- backlog_sync_skip_reason: User chose planning-only delivery on 2026-10-08; no Linear projection exists.
- assigned_skills: [
writing-for-agents,tdd] - implementation_skill_guidance:
- skill:
writing-for-agentsapplicable_behavior: Replace duplicated log rules with one pointer (single source of truth); remove the hard-coded path. - skill:
tddapplicable_behavior: First assert that the hard-codedapps/wiki/log.mdis absent.
- skill:
- tdd_status: required
- tdd_target:
wiki-output.mdhas no hard-codedapps/wiki/log.md, and both files point to the shared log rule. - red_command:
cd /home/stefan/repos/skills && node --test tests/wiki-bookkeeping.contract.test.mjs - expected_red_failure: The hard-coded-path assertion fails.
- green_command:
cd /home/stefan/repos/skills && node --test tests/wiki-bookkeeping.contract.test.mjs tests/requirements-grill-composition.contract.test.mjs tests/routed-glossary-consumers.contract.test.mjs tests/wayfinder-lifecycle.contract.test.mjs(baseline failures in these files stay allowed) - reason_not_testable:
- red_evidence:
node --test tests/wiki-bookkeeping.contract.test.mjs→ 3/3 fail (hard-coded apps/wiki, missingwiki-ingest.md#logpointer, missing routed-surface spec entry). - green_evidence: Same command → 3/3 pass; targeted set 44/33/11 (identical baseline names); full suite 313/299/14.
- codebase_design_notes: not_applicable
- review_mode: cli
- runtime_validation: not_required
- runtime_target: not_applicable
- runtime_evidence: not_applicable
- runtime_cleanup: not_applicable
- architecture_wave: A2
- behavior_owner:
requirements-grill,create-spec - integration_surface: Grill close and spec compilation
- public_seam: unchanged (consumes the P10 rule)
- topology_delta: Bookkeeping writers depend on the
docs-ingest-phaselog rule - forbidden_ownership: A separate log policy
- temporary_seams: none
- responsibility_acceptance_criteria: [RAC-6]
T7: apps/wiki check:health
- depends_on: [T0]
- location:
/home/stefan/repos/harness-intelligence/apps/wiki/ - owned_paths: [
apps/wiki/scripts/check-health.mjs(new),apps/wiki/scripts/check-health.test.mjs(new),apps/wiki/test-fixtures/health/**(new),apps/wiki/package.json,turbo.json] - read_dependencies: [ARC-006, ARC-007, ARC-009, FLOW-005-STEP-002; AC-022, AC-024, AC-032; P8, P12;
apps/wiki/scripts/sync-content.mjs(style); rules HI-WIKI-001, HI-WIKI-003, HI-DOCS-001] - shared_runtime_resources: Harness working tree, file-disjoint from T8; vitest single worker.
- relevant_input_set: Context Pointers;
turbo.jsonhash; rule registry files. - wave_boundary: W2
- description: A Node script with no new dependencies. Over
content/docs: relative Markdown links and/docs/...links resolve to a page; every page and folder appears in its owningmeta.jsonpagesunless that list has"..."; each page hastitle. Overraw/**/source.json: the file named infileexists and its SHA-256 and size match. Output: a JSON summary on--json, a human report otherwise, non-zero exit on any finding. Addcheck:healthtopackage.json, add the test totest:ci, and add turbo inputs. Do not addcheck:healthto the root CI gate in this task: the current corpus has known findings that T9 resolves. - validation: Fixture tests prove each failure class plus a clean pass. Record a real-corpus run as evidence for T9. End with a path-limited commit of the owned paths.
- status: Complete
- log: Complete (gate passed). Commit 1b6aa37fa; test:ci 64/64; real corpus 38 findings (30 link, 8 navigation) handed to T9; turbo.json unchanged (existing globs cover inputs).
- files edited/created:
- task_identity_mode: planning-only
- backlog_item_id: not_applicable
- backlog_item_url: not_applicable
- relation_mode: unprojected
- backlog_sync_skip_reason: User chose planning-only delivery on 2026-10-08; no Linear projection exists.
- assigned_skills: [
tdd,quality-types,codebase-design,turborepo] - implementation_skill_guidance:
- skill:
tddapplicable_behavior: Write a fixture test per failure class before the script; test through the CLI result. - skill:
quality-typesapplicable_behavior: Use real fixture trees, not mocks; return typed findings with stablekindvalues. - skill:
codebase-designapplicable_behavior: Export onecheckHealth(root) → Finding[]deep function with a thin CLI wrapper; tests call the CLI and the function, never internals. - skill:
turborepoapplicable_behavior: Declare the new script and fixtures as task inputs so cache invalidation stays correct.
- skill:
- tdd_status: required
- tdd_target: Running
check-health.mjson a fixture with a broken relative link exits 1 and reportskind: "link". - red_command:
cd /home/stefan/repos/harness-intelligence/apps/wiki && bunx vitest run scripts/check-health.test.mjs - expected_red_failure: Module not found for
check-health.mjs. - green_command:
cd /home/stefan/repos/harness-intelligence/apps/wiki && bun run test:ci && bun run check:content - reason_not_testable:
- red_evidence:
cd apps/wiki && bunx vitest run scripts/check-health.test.mjs→Failed to load url ./check-health.mjs(link tracer), then one failing case per class (navigation, frontmatter, source) before each slice; recovered usage-argument case exited 1 instead of 2 before its fix. - green_evidence:
bun run test:ci→ 5 files, 64 tests passed;check:contentcurrent; lint and oxfmt clean on owned files. - codebase_design_notes: One exported
checkHealth(root) → Finding[]plus a thin CLI. Each finding kind is independent; no Fumadocs runtime import. - review_mode: cli
- runtime_validation: not_required
- runtime_target: not_applicable
- runtime_evidence: not_applicable
- runtime_cleanup: not_applicable
- architecture_wave: A1
- behavior_owner:
apps/wiki - integration_surface: The project validation command declared in the contract
- public_seam:
check:healthCLI and--jsonfinding shape - topology_delta: Adds the project-owned structural check (ARC-009 project side)
- forbidden_ownership: Semantic judgments; imports from skills
- temporary_seams: none
- responsibility_acceptance_criteria: [RAC-4]
T8: Project wiki contract and operator docs
- depends_on: [T0, T1, T7]
- location:
/home/stefan/repos/harness-intelligence/apps/wiki/AGENTS.md,/home/stefan/repos/harness-intelligence/docs/README.md - owned_paths: [
apps/wiki/AGENTS.md,docs/README.md] - read_dependencies: [ARC-002, FLOW-001; AC-001–AC-004, AC-024, AC-039; Q2, Q6, Q8; P8–P12; T1
wiki-contract.mdfield list] - shared_runtime_resources: Harness working tree, file-disjoint.
- relevant_input_set: Context Pointers; T1
wiki-contract.mdhash (the field names must match); T7package.jsonscript name. - wave_boundary: W3
- description: Add a
## Wiki contractsection with wiki location (apps/wiki), raw home (raw/, layout P8), canonical article tree (content/docs), discovery entrypoints (content/docs/project/index.mdxand section indexes,/llms.txt,/llms-full.txt, per-page Markdown, search;raw/is outside the HTTP exports), source owners (specs/and rootdocs/projections viasync-content.mjs), and validation commands (check:content,check:health,test:ci). Keep the Skills table last. Indocs/README.md, describe the knowledge-maintenance workflow, the new command, and fix the stale dev-mode claim (--turbopack). - validation:
grep -cfinds each required field heading;bun run --cwd apps/wiki check:contentpasses; the Skills table is still the final section. End with a path-limited commit. The skills pin line indocs/README.mdstays unchanged here; T11 owns it. - status: Complete
- log: Complete (gate passed). Commit 7308b0837. The plan's 'Skills section last' check was a plan error (three sections already followed Skills); order kept.
- files edited/created:
- task_identity_mode: planning-only
- backlog_item_id: not_applicable
- backlog_item_url: not_applicable
- relation_mode: unprojected
- backlog_sync_skip_reason: User chose planning-only delivery on 2026-10-08; no Linear projection exists.
- assigned_skills: [
writing-for-agents] - implementation_skill_guidance:
- skill:
writing-for-agentsapplicable_behavior: This is anAGENTS.md: every line costs context load. Use one terse line per contract field, point to commands instead of restatingpackage.json, and add no no-ops.
- skill:
- tdd_status: not_applicable
- tdd_target: Contract fields present in
apps/wiki/AGENTS.md. - red_command:
- expected_red_failure:
- green_command:
grep -E 'Raw home|Article tree|Discovery|Source owners|Validation' apps/wiki/AGENTS.md && bun run --cwd apps/wiki check:content - reason_not_testable: Guidance-document edit; no runtime behavior.
- red_evidence: not_applicable (no RED/GREEN; see reason_not_testable)
- green_evidence: not_applicable (no RED/GREEN; see reason_not_testable); validation evidence in log
- codebase_design_notes: not_applicable
- review_mode: cli
- runtime_validation: not_required
- runtime_target: not_applicable
- runtime_evidence: not_applicable
- runtime_cleanup: not_applicable
- architecture_wave: A2
- behavior_owner:
apps/wikiproject - integration_surface: Every wiki-consuming skill
- public_seam: Project wiki contract section
- topology_delta: Materializes ARC-002 for the proof repository
- forbidden_ownership: Workflow policy belonging to skills
- temporary_seams: none
- responsibility_acceptance_criteria: [RAC-7]
T11: Push, tag and sync shared skills
- depends_on: [T0, T1, T2, T3, T4, T5, T6, T8]
- location:
/home/stefan/repos/skills,/home/stefan/repos/harness-intelligence/apps/cli/scripts/,/home/stefan/repos/harness-intelligence/docs/ - owned_paths: [skills
maincommits and tagsync/wiki-knowledge-maintenance-<sha12>;apps/cli/scripts/sync-skills-repo.mjs;apps/cli/skills/**(sync output);apps/cli/.devpunks-cache/skills-sync.json;.agents/skills/**(viahi update);docs/runbooks/hi-cli-scaffolding.md;apps/wiki/content/docs/project/runbooks/hi-cli-scaffolding.md(viasync-content.mjs);BASELINE_CHANGELOG.md; pin line indocs/README.md(after T8 is merged in the tree)] - read_dependencies: [AC-038; Q11; memory flow for skills sync;
apps/cli/scripts/classify-release-impact.mjs] - shared_runtime_resources: Skills Git index and remote (exclusive); network to GitHub;
/tmpscratch for the clone, removed after use. - relevant_input_set:
git -C /home/stefan/repos/skills branch --show-current=main; skillsorigin/mainbefore push; all skills contract tests green at the pushed SHA. - wave_boundary: W4
- description: Verify the skills branch is
main. Run the suite gate (node --test tests/*.test.mjsagainst the baseline). Make path-limited commits assimosabbain dependency order so every commit's links resolve: capture (T2), health (T3), entry+contract (T1), reconciliation (T4), consultation (T5), bookkeeping (T6). Leavetests/fixtures/v43/IP-453/skills/untracked. Push, tagsync/wiki-knowledge-maintenance-<sha12>and push the tag. BumpdefaultRepositoryRef/defaultRepositoryCommit, update every quoted pin (grep the old SHA), runbun run sync:skills, verify that the receiptcommitequals the pushed SHA, runhi updatefor.agents/skills, and runsync-content.mjsfor the runbook mirror. AppendBASELINE_CHANGELOG.mdUnreleased notes covering these changes plus3b0e174andd3986a6(P5). Make a path-limited Harness commit of the owned paths, then run release classification on the committedHEAD. - validation: Receipt commit = pushed SHA;
diff -rbetween the skills checkout at the tag andapps/cli/skillsis empty for the changed skills;git diff --exit-code origin/main -- apps/cli/src/registry apps/cli/src/datapasses (AC-039); classification reportsbaseline. - status: Complete
- log: Complete (gate passed). Skills commits 2319349, 0500473, 83478d8, 3da47eb pushed; tag sync/wiki-knowledge-maintenance-3da47ebbf8ec; Harness commit 56c22bf8e; receipt commit = 3da47ebb; synced dirs byte-equal; classification releaseKind=baseline; AC-039 paths unchanged. Deviation:
.agents/skillsupdates only on baseline adoption after Registry publication (not requested); T9 reads the synced apps/cli/skills copy. - files edited/created:
- task_identity_mode: planning-only
- backlog_item_id: not_applicable
- backlog_item_url: not_applicable
- relation_mode: unprojected
- backlog_sync_skip_reason: User chose planning-only delivery on 2026-10-08; no Linear projection exists.
- assigned_skills: [
hi-cli] - implementation_skill_guidance:
- skill:
hi-cliapplicable_behavior: Usehi updatefor the installed mirror and follow its post-command handoff; never edit.agents/skillsby hand.
- skill:
- tdd_status: not_applicable
- tdd_target: Distribution receipt.
- red_command:
- expected_red_failure:
- green_command:
jq -r .commit apps/cli/.devpunks-cache/skills-sync.jsonequals the pushed SHA;node apps/cli/scripts/classify-release-impact.mjs --base origin/main --head HEAD - reason_not_testable: Distribution and bookkeeping; the behavior is proven by the T1–T6 tests at the pushed SHA.
- red_evidence: not_applicable (no RED/GREEN; see reason_not_testable)
- green_evidence: not_applicable (no RED/GREEN; see reason_not_testable); validation evidence in log
- codebase_design_notes: not_applicable
- review_mode: cli
- runtime_validation: required
- runtime_target: GitHub skills remote and the Harness sync script
- runtime_evidence: Remote
mainand tag resolve to the pushed SHA (git ls-remote); receipt matches. - runtime_cleanup: Remove the sync script's temporary clone if it stays in
/tmp; keep the tag and commits (deliverables). - architecture_wave: A3
- behavior_owner:
apps/clidistribution - integration_surface:
sync:skills,hi update - public_seam: unchanged
- topology_delta: Distributes the new skill seams (ARC-001)
- forbidden_ownership: Registry publication; catalog or pack changes
- temporary_seams: none
- responsibility_acceptance_criteria: [RAC-8]
T9: Real proof: capture, ingest and discovery in this repository
- depends_on: [T7, T8, T11]
- location:
/home/stefan/repos/harness-intelligence/apps/wiki/ - owned_paths: [
apps/wiki/content/docs/project/index.mdx,apps/wiki/content/docs/project/meta.json,apps/wiki/content/docs/harness/meta.json,apps/wiki/content/docs/project/domains/wiki-knowledge-maintenance*.mdx(new concept/flow pages; the existing glossary stays unchanged unless ingest requires an update),apps/wiki/content/docs/project/domains/meta.json,apps/wiki/content/docs/project/domains/index.mdx(if present),apps/wiki/content/docs/project/specs/wiki/knowledge-maintenance/IMPLEMENTATION-NOTES.md(new), spec foldermeta.json,apps/wiki/index.md,apps/wiki/log.md,apps/wiki/package.json(checkscript only),apps/wiki/raw/external/karpathy-llm-wiki/ac46de1ad27f/source.json(only if P8 requires a field)]. Excluded:PLAN.md(coordinator), projected copies (edit their sources),project/research/**(T10). Any other page that the health run flags requires a plan amendment before an edit.
Amendment (2026-10-08, after the T7 gate). The real-corpus run (check:health --json) found 38 problems: 30 link, 8 navigation, 0 frontmatter, 0 source. To reach a clean check:health within AC-022 and AC-035, T9 also owns:
apps/wiki/scripts/sync-content.mjsandapps/wiki/scripts/sync-content.test.mjs, but only to rewrite repository-relative links in projected pages (sources indocs/runbooks,docs/reference) to links that resolve or to the GitHub blob URL. This requires a TDD RED first.docs/runbooks/codex-typescript-mcp.md,docs/runbooks/hi-cli-scaffolding.md,docs/reference/dp-requirements.md,docs/reference/hi-requirements.md, anddocs/reference/harness-intelligence.md, but only for links that a sync rewrite cannot fix. After editing, resync the projected copies throughsync-content.mjs.apps/wiki/content/docs/project/research/meta.jsonand the two research reports that escape the wiki,effect-prepare-script-simplification-research-report.mdandissue-203-…, but only for link and navigation entries. T10 still owns its new artifact.- The
navigationfixes inproject/grilling/meta.json,project/public-docs/meta.json,project/tech-debt/(index page or link),specs/cli/issue-197-scaffold-lifecycle/BACKLOG-RESULT.md(one link),get-started/basic-usage.mdxandproject/domains/harness.mdx(links to the emptyharness/lifecycle-flows). For the empty folder, either remove the dead link or record that the omission is intentional. Do not invent content.
Second amendment (2026-10-08, during T9). sync-content.mjs mergeMeta() rewrites project/meta.json pages from a hard-coded list. To fix the domains and backlog-provider navigation findings, T9 may add those two conditional entries in mergeMeta(), in a separate RED/GREEN cycle.
T9 runs the sync-content.mjs part as a TDD sub-slice: tdd_status is required for that sub-slice, and the RED is bunx vitest run scripts/sync-content.test.mjs with a new projected-link case.
- read_dependencies: [Synced
docs-ingest-phase; T7 health output; AC-012, AC-016–AC-024, AC-031–AC-037; Karpathy source; this delivery's diff] - shared_runtime_resources: A Next.js production build or dev server on a portless URL (exclusive port), started in a resource scope and stopped after the checks.
- relevant_input_set: Synced skills receipt SHA; Karpathy committed blob SHA-256;
check:healthresult before/after. - wave_boundary: W5
- description: Run the synced
docs-ingest-phaseas an operator would. (1) Wiki-contract readiness report with three separate results. (2) Capture: re-supply the pinned revision URL fromsource.json.retrieved_url(revisionac46de1a…), not the mutable gist URL; prove reuse of the identical verified original (AC-012) throughverify-captured-source.mjs. If the bytes differ, record a new revision (AC-013) instead. (3) Ingest the source plus this implementation into the owning routed article (for exampleproject/domains/knowledge-maintenance concept and flow pages), withsourcesfrontmatter, attributed claims and visible open questions (including P2/IP-439). (4) Update the discovery map (project/index.mdxwith "Applies when" cues), owningmeta.jsonentries (fix the omitteddomains,backlog-provider,lifecycle-flows,trust-and-adoptionor record why they are intentional),apps/wiki/index.mdas a pointer, andlog.md(P10). (5) Runcheck:healthuntil clean, then add it to the wikicheckscript. (6) Build and serve; fetch/llms.txt, the article's Markdown route and search, and record thatraw/is not exported. (7) WriteIMPLEMENTATION-NOTES.mdwithingested_revisionfields. - validation:
check:health,check:contentandtest:cipass; runtime fetch evidence is recorded; the health outcome lists structural and semantic results separately. End with a path-limited commit. - status: Complete
- log: Complete (gate passed). Commits 1b0fea010, e7258daf4. Capture reuse verified (AC-012); 38 structural findings fixed; check now runs check:health; runtime: /llms.txt lists new pages, Markdown route text/markdown, search hit, raw/ 404. Found pre-existing defect: /docs/.mdx 404 (proxy.ts not compiled) — follow-up.
- files edited/created:
- task_identity_mode: planning-only
- backlog_item_id: not_applicable
- backlog_item_url: not_applicable
- relation_mode: unprojected
- backlog_sync_skip_reason: User chose planning-only delivery on 2026-10-08; no Linear projection exists.
- assigned_skills: [
docs-ingest-phase,writing-for-agents,verify-behavior] - implementation_skill_guidance:
- skill:
docs-ingest-phaseapplicable_behavior: Run the synced skill end to end; record each outcome exactly as the skill defines it. - skill:
writing-for-agentsapplicable_behavior: Discovery-map entries are context pointers: front-load the leading word, give one "Applies when" trigger per branch, and add no restated content. - skill:
verify-behaviorapplicable_behavior: Use falsifiable HTTP evidence (status, content type, presence of the new article inllms.txt).
- skill:
- tdd_status: not_applicable
- tdd_target: End-to-end proof on real content.
- red_command:
- expected_red_failure:
- green_command:
cd /home/stefan/repos/harness-intelligence/apps/wiki && bun run check:health && bun run check:content && bun run test:ci - reason_not_testable: Content and runtime proof; behavior tests live in T1–T7.
- red_evidence: sync-content TDD sub-slice:
bunx vitest run scripts/sync-content.test.mjs→ projected-link case 1 failed / 6 passed; navigation case 1 failed / 7 passed. - green_evidence: Same command → 7 then 8 passed;
check:healthno findings;test:ci66/66;check-typespass. - codebase_design_notes: not_applicable
- review_mode: cli
- runtime_validation: required
- runtime_target: The
apps/wikiNext.js app (production build served locally on a portless URL) - runtime_evidence:
GET /llms.txtlists the new article;GETon its Markdown route returnstext/markdownwith thesourcescontent; a search query returns it;GETof araw/path returns 404. - runtime_cleanup: Stop the server process group; remove
.nextbuild output if task-created and not needed; verify the port is free. - architecture_wave: A3
- behavior_owner:
apps/wikiproject +docs-ingest-phase - integration_surface: Fumadocs routes and repository readers
- public_seam: unchanged
- topology_delta: none (proof)
- forbidden_ownership: Project Verifier assets; CLI wiki files
- temporary_seams: none
- responsibility_acceptance_criteria: [RAC-8]
T10: Later planning exercise: IP-439 consultation
- depends_on: [T9]
- location:
/home/stefan/repos/harness-intelligence/apps/wiki/content/docs/project/research/ - owned_paths: [
apps/wiki/content/docs/project/research/ip-439-knowledge-consultation.md(new),apps/wiki/content/docs/project/research/meta.json,apps/wiki/log.md(append only, after T9)] - read_dependencies: [Synced
create-planWiki Context step; T9 articles and discovery map; Linear IP-439 (read only)] - shared_runtime_resources: none (readonly Linear read).
- relevant_input_set: T9 article blob IDs; IP-439
updatedAt. - wave_boundary: W6
- description: Run the
create-planWiki Context step for the deferred question "does this capability supersede IP-439?". Select context from the map (not the full wiki), check claims against primary evidence, and write a consultation artifact with a## Wiki Contextsection that cites the T9 knowledge and lists open conflicts (IP-439 proposes removingapps/wiki; the accepted spec keeps it). Return novel findings to ingest or record a knowledge no-op. Make no Linear write. - validation: The artifact has a Wiki Context section with cited routed links;
check:healthpasses; Linear IP-439updatedAtis unchanged (2026-09-02T16:42:02.858Zat planning). End with a path-limited commit. - status: Complete
- log: Complete (gate passed). Commit cb7596199. IP-439 updatedAt unchanged (2026-09-02T16:42:02.858Z). Returned findings R1–R3 routed to docs-ingest phase.
- files edited/created:
- task_identity_mode: planning-only
- backlog_item_id: not_applicable
- backlog_item_url: not_applicable
- relation_mode: unprojected
- backlog_sync_skip_reason: User chose planning-only delivery on 2026-10-08; no Linear projection exists.
- assigned_skills: [
create-plan,writing-for-agents] - implementation_skill_guidance:
- skill:
create-planapplicable_behavior: Run only its Wiki Context step; do not create an execution plan. - skill:
writing-for-agentsapplicable_behavior: Keep the artifact a terse reference with explicit citations.
- skill:
- tdd_status: not_applicable
- tdd_target: Consultation artifact.
- red_command:
- expected_red_failure:
- green_command:
cd /home/stefan/repos/harness-intelligence/apps/wiki && bun run check:health - reason_not_testable: Proof artifact; no code.
- red_evidence: not_applicable (no RED/GREEN; see reason_not_testable)
- green_evidence: not_applicable (no RED/GREEN; see reason_not_testable); validation evidence in log
- codebase_design_notes: not_applicable
- review_mode: cli
- runtime_validation: not_required
- runtime_target: not_applicable
- runtime_evidence: not_applicable
- runtime_cleanup: not_applicable
- architecture_wave: A3
- behavior_owner:
create-planconsumer - integration_surface: Future planning
- public_seam:
## Wiki Contextsection - topology_delta: none (proof)
- forbidden_ownership: Accepting the IP-439 decision; Linear writes
- temporary_seams: none
- responsibility_acceptance_criteria: [RAC-8]
Testing strategy
- Skills: one new regex contract test per task (
node:test), plus the fullnode --test tests/before T11 pushes. - Project: vitest fixture tests for
check-health.mjswithintest:ci. - End to end: the T9 real-content run with HTTP evidence, then the T10 consumer.
- Structural checks and semantic reconciliation are reported separately. A green check does not claim semantic accuracy or deployed access (SPEC Accepted Testing Decisions).
Validation gates
| Gate | Commands |
|---|---|
| Task | The task's green_command |
| W1/W2 skills | cd /home/stefan/repos/skills && node --test tests/ |
| W2 project | cd apps/wiki && bun run test:ci && bun run check:content |
| A1/A2 checkpoints | As in Architecture Waves |
| W4/W5 | cd apps/wiki && bun run check && bun run check:health && bun run test:ci; wiki check-types; root bun run check scoped to changed workspaces |
| Release | node apps/cli/scripts/classify-release-impact.mjs --base origin/main --head HEAD reports baseline with non-empty Unreleased notes |
Review routes through review-phase after implementation. Docs ingest of this delivery is T9 itself; the delivery docs-ingest phase verifies freshness or records a no-op.
Risks and mitigations
| Risk | Mitigation |
|---|---|
| The real corpus has many health findings | T7 does not gate root CI; T9 resolves or explicitly records each finding before it adds check:health to check. |
| Concurrent skills workers corrupt the Git index | No commits in W1/W2 (P13); T11 commits serially. |
| The sync pulls unrelated commits | Accepted (P5); listed in the changelog. |
Known local test noise (stage.test.ts fails on clean main; /tmp tmpfs ENOSPC) | Run the CLI tests with a disk-backed TMPDIR; compare against origin/main before attributing failures. |
| Pre-commit hook fails on pre-existing lint debt | Scope hook failures; record pre-existing ones with evidence; do not weaken the gate without user approval. |
| A metadata convention (P8–P12) proves wrong during T9 | Amend the plan within accepted bounds before dependent work; a change to an accepted guarantee routes to requirements-grill. |
External research used
None beyond the retained sources. The Karpathy gist is already preserved at commit 5060b074. The Fumadocs behavior (collection, llms.txt, Markdown routes, search) was observed in apps/wiki source code during discovery, and no web or opensrc lookup was needed. Plan review: one readonly plan-reviewer pass found 2 blockers, 6 major and 4 minor findings, and all were applied to this revision.
Wiki Context
This plan consulted the knowledge-maintenance grill status/log, the glossary, the Karpathy research report, apps/wiki/AGENTS.md, docs/README.md and the rule registry (HI-WIKI-001, HI-WIKI-003, HI-DOCS-001, HI-REPO-004). Stale claims checked against primary evidence: apps/wiki/index.md "punks/dp CLI" (stale; T9), docs/README.md --webpack dev claim (stale; T8), and meta.json omissions (T9). No other routed article covers this capability yet.
Unresolved questions
- Whether the four
meta.jsonomissions are intentional. Non-blocking; T9 decides from evidence and records the reason. - The IP-439 supersession (P2). Deferred to a later
requirements-grillrun after the T10 consultation.