Harness Intelligence Wiki
SpecsWikiWiki Knowledge Maintenance

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. Every Tn is 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 the apps/wiki project. 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-grill run can use.
  • Release impact: the skills sync changes BASELINE_CHANGELOG.md, so release classification selects baseline. Registry publication is a separate request.

Context Pointers

AuthorityLocatorSelectorIdentityFreshness rule
ArchitectureARCHITECTURE.md @ 38221d75ARC-001…ARC-009, FLOW-001…FLOW-005, #spec-traceabilitycommit 38221d7500c7f259c1e9b2c2017b5e415a61ba67, SHA-256 37d4b792a9dbc1cd9e5f7960e232eaa5a52d7ca83ae86c603f998059c4fc1a65Local file SHA-256 must equal the identity. A change invalidates every task proof.
SpecSPEC.md @ b83ea6c5OUT-001…OUT-007, AC-001…AC-039, Accepted Technical/Testing Decisions, Verification Seamscommit b83ea6c572c49e844c454463d427f9c020677888, SHA-256 ec4f131ce53c0ea39cf31503cb43947b9620dc60dc0d0ce937e286f52f94bbcfSame 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.
Decisionsapps/wiki/content/docs/project/grilling/wiki-knowledge-maintenance-grill-log.md#q1…#q11commit bd90ddc64a3343d3cc5dee17c782a604ecbecc9fQ selectors must resolve. Do not reinterpret accepted answers.
Glossaryapps/wiki/content/docs/project/domains/wiki-knowledge-maintenance-glossary.mdx#languagecommit bd90ddc6Use canonical terms: project-owned wiki, raw source, ingest, wiki setup/adoption.
Karpathy sourceapps/wiki/raw/external/karpathy-llm-wiki/ac46de1ad27f/llm-wiki.md, source.jsoncommit 5060b0745c2c339df461c6c4b79fffff050f87d1, SHA-256 dc3efe98…7401Committed blob must hash to source.json.sha256.
Shared skills source/home/stefan/repos/skillsbranch mainHEAD d3986a6 at planning; pin 985e8dbgit 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:19 makes ingested: true a hard no-op. Changed specs never get refreshed (contradicts AC-016, AC-021).
  • concept-pages.md:10-11 reads raw/ files with ingested false but no skill marks them.
  • Log rules disagree: wiki-ingest.md:120 caps log.md at 50 entries (contradicts AC-036); requirements-grill/references/wiki-output.md hard-codes apps/wiki/log.md; create-spec logs only for the legacy surface. apps/wiki/log.md order is mixed (newest-first to entry 60, then oldest-first).
  • create-plan/SKILL.md:87 scans learnings only "when relevant". No plan records the knowledge it used (AC-025).
  • No skill runs wiki health checks. apps/wiki has check:content (projection drift) but no link check, no meta.json completeness check and no provenance check. HI-WIKI-003 already requires resolved links.
  • project/meta.json omits domains and backlog-provider; harness/meta.json omits lifecycle-flows and trust-and-adoption. These folders are probably absent from the sidebar.
  • apps/wiki/index.md sits outside the Fumadocs collection, uses wikilinks and still says "punks / dp CLI". llms.txt, llms-full.txt, per-page Markdown and search already serve the routed corpus.
  • apps/wiki/AGENTS.md has 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:test regex contracts: cd /home/stefan/repos/skills && node --test tests/<file>.contract.test.mjs. There is no package.json.

Proposed solution shape

Extend existing owners (no new skill, no CLI catalog change):

  1. docs-ingest-phase gains 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.
  2. docs-ingest-phase reconciliation references switch freshness from the ingested boolean to recorded source identity. They put flows before concepts, keep contradictions visible, update the discovery map and keep an uncapped chronological log (FLOW-003).
  3. create-plan gains a mandatory Wiki Context step and plan section (FLOW-004).
  4. requirements-grill and create-spec bookkeeping use the same log rule and resolve the wiki root from the project contract.
  5. apps/wiki gains the project-owned wiki contract in apps/wiki/AGENTS.md, a tested check:health script and a routed discovery map.
  6. 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

IDDecisionSource
P1Planning-only task identities; no Linear writes.User, 2026-10-08
P2Supersede IP-439 is deferred, not applied.User answer plus Q-boundary (product decision)
P3Extend existing skills; no new skill or catalog entry.User, 2026-10-08
P4Implementation branch feat/wiki-knowledge-maintenance from origin/main plus the five rebased spec commits. One PR to main.User, 2026-10-08
P5The 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
P6The AC-037 planning exercise is a readonly IP-439 consultation.User, 2026-10-08
P7All skill and prompt edits follow writing-for-agents (leading words, disclosure, completion criteria, no sediment).User, 2026-10-08
P8Provenance 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)
P9Integrated-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
P10log.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
P11The 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
P12Health 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
P13Skills 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/skills on checked-out main. Mirrors (.agents/skills, apps/cli/skills) change only through sync and hi 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) and tests/fixtures/v43/IP-453/skills/ (untracked, skills).
  • Shared machine: run builds and tests in a systemd-run --user --scope … nice -n 10 scope sized from live free -g and /proc/pressure data (/AGENTS.md). Clean all task-owned scratch before closeout.

Architecture contract

Target Ownership Topology

OwnerResponsibilityPublic entrypointMust not absorb
docs-ingest-phaseCapture, reconciliation, health outcome, recovery rules (ARC-004/005/009)SKILL.md router branchesProject paths, project check implementations, verifier assets
create-planConsultation and citation of knowledge (ARC-008)Wiki Context step + PLAN.md sectionIngest writes
requirements-grill, create-specTheir own artifact bookkeepingExisting referencesTheir own log policy (they use the shared rule)
apps/wikiContract, originals, corpus, discovery, structural checks (ARC-002/003/006/007)AGENTS.md, check:health, routesSkill workflow policy
apps/cliSync and distribute skills only (ARC-001)sync:skillsWiki 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_idOwnerObservable assertionEvidencedue_architecture_waveTasks
RAC-1docs-ingest-phaseRouter 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.mjsA1T1
RAC-2docs-ingest-phaseCapture 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 testA1T2
RAC-3docs-ingest-phaseHealth 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.mjsA1T3
RAC-4apps/wikicheck: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:ciA1T7
RAC-5docs-ingest-phaseFreshness 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.mjsA2T4
RAC-6create-plan, bookkeeping writersA 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.mjsA2T5, T6
RAC-7apps/wikiAGENTS.md names wiki location, raw home, article tree, discovery entrypoints, source owners and validation commands (AC-002).Inspection plus the T8 grep gateA2T8
RAC-8apps/cli / proofSync 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 skillsA3T11, T9, T10

Architecture Waves

architecture_waveTopology deltaEntryCriteria dueCheckpoint
A1 boundary establishmentContract, capture and health seams exist in skills; project check existsnoneRAC-1…RAC-4A1 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 sliceReconciliation, consultation and bookkeeping consume the A1 seams; project contract declares themA1 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 closureDistribution plus real proofA2 checkpointRAC-8 (+ regress all)Receipt verified; proof evidence recorded; migration ledger empty

Public Seam Contract

SeamOwnerAllowed consumers
Project wiki contract section in <wiki-root>/AGENTS.mdProjectAll wiki-writing and wiki-reading skills
source.json provenance record (P8)Project data, format defined by docs-ingest-phase/references/source-capture.mdCapture, reconciliation, health, check:health
scripts/verify-captured-source.mjs <path-to-source.json> [--ref <rev>]docs-ingest-phaseCapture and resume steps
check:health command (P12)apps/wikiHealth reference via the contract's validation commands
sources / ingested_revision frontmatter (P9)docs-ingest-phaseReconciliation, health, planning consultation
## Wiki Context section in PLAN.mdcreate-planimplement-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

WaveEligible tasksWhy
W1T0, T1, T2, T3No dependencies; disjoint write scopes
W2T4, T7T4 consumes the T1 contract, the T2 provenance format and the T3 pointers; T7 needs the T0 branch
W3T5, T6, T8T5/T6 point to the T4 discovery and log rules; T8 copies T1 field names and the T7 command
W4T11Needs every skills task and T8 (shared docs/README.md)
W5T9Needs synced skills, the health command and the contract
W6T10Needs 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, commits 5060b074…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 of PLAN.md before stash equals after pop.
  • wave_boundary: W1
  • description: git fetch origin. Stash only PLAN.md and the modified spec meta.json (git stash push --include-untracked -- <both paths>), because origin/main lacks the spec folder and the switch would refuse. Create feat/wiki-knowledge-maintenance from origin/main; cherry-pick 5060b074, bd90ddc6, 04f8a5e4, 38221d75, b83ea6c5 in order; pop the stash. Commit PLAN.md and meta.json path-limited as the plan commit. Push the branch with upstream.
  • validation: git log --oneline origin/main..HEAD shows six commits (five spec, one plan). Artifact SHA-256 values match. git stash list has no leftover entry from this task. git status keeps issue217/ 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.md as 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 of private-internal.md before/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.md defines: 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.md has 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-agents applicable_behavior: Keep the router legible: one trigger per branch, leading words (contract, gap, readiness), disclose detail into wiki-contract.md, end each step on a checkable completion criterion, phrase guardrails positively.
    • skill: tdd applicable_behavior: Write the regex contract test first and capture its failure before editing skill text.
    • skill: codebase-design applicable_behavior: Keep the contract field list inside wiki-contract.md; the router and other references only say "resolve the wiki contract".
  • tdd_status: required
  • tdd_target: The router names a wiki-contract branch, and wiki-contract.md requires 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; Karpathy source.json as the format example]
  • shared_runtime_resources: Skills working tree, file-disjoint. The script test creates a temporary Git repo under mktemp -d and removes it in after().
  • relevant_input_set: Context Pointers; skills branch = main; Karpathy source.json bytes.
  • 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 in raw/<origin>/<slug>/<revision12>/ with source.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 reads git show <ref>:<path> for the original, compares SHA-256 and size with source.json, checks each derived[].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 recipe git add -- <dir> then git 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-agents applicable_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: tdd applicable_behavior: Test the script through its CLI result on a real temporary Git repo before writing it.
    • skill: codebase-design applicable_behavior: The script interface is one source.json path plus an optional --ref; it holds no project paths and returns one result line plus an exit code.
    • skill: backend-recoverable-actions applicable_behavior: Treat preserve → commit → readback → extract as recoverable steps. Each failure leaves an explicit retriable state, and nothing is rolled back destructively.
  • 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.json format; verify-captured-source.mjs CLI
  • 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 of learning-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 in wiki-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-agents applicable_behavior: Split structural and semantic as two leading words with separate output fields; point to learning-artifacts.md outcomes instead of duplicating them.
    • skill: tdd applicable_behavior: The contract test fails before health.md exists.
  • tdd_status: required
  • tdd_target: health.md requires 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 under skills/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; T1 wiki-contract.md fields; T2 source-capture.md (P8 format); T3 health.md pointers; 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: true hard no-op with a freshness check against ingested_revision and sources (P9). A legacy boolean means "evaluate". Implementation status needs implementation evidence, not the existence of the notes file. Raw inputs come from verified source.json records, not ingested flags. 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 owning meta.json entry, 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 that raw/ is in HTTP exports (AC-024). Write log rule P10 as the single #log section of wiki-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-agents applicable_behavior: Prune sediment (the boolean no-op, the 50-entry cap, duplicated meta.json rules across three files) into one source of truth in fumadocs-routing.md; keep fresh/stale as leading words; sharpen each step's completion criterion.
    • skill: tdd applicable_behavior: Assert first that the hard no-op text and the 50-entry cap are absent and that the freshness rule is present.
  • tdd_status: required
  • tdd_target: wiki-ingest.md no longer treats ingested: true as a no-op and requires ingested_revision comparison.
  • red_command: cd /home/stefan/repos/skills && node --test tests/wiki-reconciliation.contract.test.mjs
  • expected_red_failure: The assertion that wiki-ingest.md has 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 the ingested: true no-op assertion (wiki-ingest.md line 19) and the missing ## Log section; 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_revision frontmatter; 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; T1 wiki-contract.md and T4 fumadocs-routing.md hashes (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.md adds ## Wiki Context to 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-agents applicable_behavior: One numbered step with a checkable criterion ("Wiki Context section names cited pages or states absence"); keep SKILL.md lean and put the section format in plan-schema.md.
    • skill: tdd applicable_behavior: The contract test fails until both files carry the step and the section.
  • tdd_status: required
  • tdd_target: plan-schema.md requires a Wiki Context section with explicit absence allowed.
  • red_command: cd /home/stefan/repos/skills && node --test tests/wiki-consultation.contract.test.mjs
  • expected_red_failure: The Wiki Context assertion 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 Context list 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 Context plan 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 changes section only (amended 2026-10-08 after the T4 gate: reduce the duplicated reference-repair and projection rule to a pointer to learning-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; T4 wiki-ingest.md#log hash.
  • 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, and create-spec logs on the routed surface too. Each file points to docs-ingest-phase/references/wiki-ingest.md#log and 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-agents applicable_behavior: Replace duplicated log rules with one pointer (single source of truth); remove the hard-coded path.
    • skill: tdd applicable_behavior: First assert that the hard-coded apps/wiki/log.md is absent.
  • tdd_status: required
  • tdd_target: wiki-output.md has no hard-coded apps/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, missing wiki-ingest.md#log pointer, 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-phase log 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.json hash; 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 owning meta.json pages unless that list has "..."; each page has title. Over raw/**/source.json: the file named in file exists and its SHA-256 and size match. Output: a JSON summary on --json, a human report otherwise, non-zero exit on any finding. Add check:health to package.json, add the test to test:ci, and add turbo inputs. Do not add check:health to 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: tdd applicable_behavior: Write a fixture test per failure class before the script; test through the CLI result.
    • skill: quality-types applicable_behavior: Use real fixture trees, not mocks; return typed findings with stable kind values.
    • skill: codebase-design applicable_behavior: Export one checkHealth(root) → Finding[] deep function with a thin CLI wrapper; tests call the CLI and the function, never internals.
    • skill: turborepo applicable_behavior: Declare the new script and fixtures as task inputs so cache invalidation stays correct.
  • tdd_status: required
  • tdd_target: Running check-health.mjs on a fixture with a broken relative link exits 1 and reports kind: "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:content current; 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:health CLI and --json finding 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.md field list]
  • shared_runtime_resources: Harness working tree, file-disjoint.
  • relevant_input_set: Context Pointers; T1 wiki-contract.md hash (the field names must match); T7 package.json script name.
  • wave_boundary: W3
  • description: Add a ## Wiki contract section with wiki location (apps/wiki), raw home (raw/, layout P8), canonical article tree (content/docs), discovery entrypoints (content/docs/project/index.mdx and section indexes, /llms.txt, /llms-full.txt, per-page Markdown, search; raw/ is outside the HTTP exports), source owners (specs/ and root docs/ projections via sync-content.mjs), and validation commands (check:content, check:health, test:ci). Keep the Skills table last. In docs/README.md, describe the knowledge-maintenance workflow, the new command, and fix the stale dev-mode claim (--turbopack).
  • validation: grep -c finds each required field heading; bun run --cwd apps/wiki check:content passes; the Skills table is still the final section. End with a path-limited commit. The skills pin line in docs/README.md stays 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-agents applicable_behavior: This is an AGENTS.md: every line costs context load. Use one terse line per contract field, point to commands instead of restating package.json, and add no no-ops.
  • 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/wiki project
  • 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 main commits and tag sync/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/** (via hi update); docs/runbooks/hi-cli-scaffolding.md; apps/wiki/content/docs/project/runbooks/hi-cli-scaffolding.md (via sync-content.mjs); BASELINE_CHANGELOG.md; pin line in docs/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; /tmp scratch for the clone, removed after use.
  • relevant_input_set: git -C /home/stefan/repos/skills branch --show-current = main; skills origin/main before 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.mjs against the baseline). Make path-limited commits as simosabba in dependency order so every commit's links resolve: capture (T2), health (T3), entry+contract (T1), reconciliation (T4), consultation (T5), bookkeeping (T6). Leave tests/fixtures/v43/IP-453/skills/ untracked. Push, tag sync/wiki-knowledge-maintenance-<sha12> and push the tag. Bump defaultRepositoryRef/defaultRepositoryCommit, update every quoted pin (grep the old SHA), run bun run sync:skills, verify that the receipt commit equals the pushed SHA, run hi update for .agents/skills, and run sync-content.mjs for the runbook mirror. Append BASELINE_CHANGELOG.md Unreleased notes covering these changes plus 3b0e174 and d3986a6 (P5). Make a path-limited Harness commit of the owned paths, then run release classification on the committed HEAD.
  • validation: Receipt commit = pushed SHA; diff -r between the skills checkout at the tag and apps/cli/skills is empty for the changed skills; git diff --exit-code origin/main -- apps/cli/src/registry apps/cli/src/data passes (AC-039); classification reports baseline.
  • 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/skills updates 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-cli applicable_behavior: Use hi update for the installed mirror and follow its post-command handoff; never edit .agents/skills by hand.
  • tdd_status: not_applicable
  • tdd_target: Distribution receipt.
  • red_command:
  • expected_red_failure:
  • green_command: jq -r .commit apps/cli/.devpunks-cache/skills-sync.json equals 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 main and 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/cli distribution
  • 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 folder meta.json, apps/wiki/index.md, apps/wiki/log.md, apps/wiki/package.json (check script 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.mjs and apps/wiki/scripts/sync-content.test.mjs, but only to rewrite repository-relative links in projected pages (sources in docs/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, and docs/reference/harness-intelligence.md, but only for links that a sync rewrite cannot fix. After editing, resync the projected copies through sync-content.mjs.
  • apps/wiki/content/docs/project/research/meta.json and the two research reports that escape the wiki, effect-prepare-script-simplification-research-report.md and issue-203-…, but only for link and navigation entries. T10 still owns its new artifact.
  • The navigation fixes in project/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.mdx and project/domains/harness.mdx (links to the empty harness/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:health result before/after.
  • wave_boundary: W5
  • description: Run the synced docs-ingest-phase as an operator would. (1) Wiki-contract readiness report with three separate results. (2) Capture: re-supply the pinned revision URL from source.json.retrieved_url (revision ac46de1a…), not the mutable gist URL; prove reuse of the identical verified original (AC-012) through verify-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 example project/domains/ knowledge-maintenance concept and flow pages), with sources frontmatter, attributed claims and visible open questions (including P2/IP-439). (4) Update the discovery map (project/index.mdx with "Applies when" cues), owning meta.json entries (fix the omitted domains, backlog-provider, lifecycle-flows, trust-and-adoption or record why they are intentional), apps/wiki/index.md as a pointer, and log.md (P10). (5) Run check:health until clean, then add it to the wiki check script. (6) Build and serve; fetch /llms.txt, the article's Markdown route and search, and record that raw/ is not exported. (7) Write IMPLEMENTATION-NOTES.md with ingested_revision fields.
  • validation: check:health, check:content and test:ci pass; 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-phase applicable_behavior: Run the synced skill end to end; record each outcome exactly as the skill defines it.
    • skill: writing-for-agents applicable_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-behavior applicable_behavior: Use falsifiable HTTP evidence (status, content type, presence of the new article in llms.txt).
  • 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:health no findings; test:ci 66/66; check-types pass.
  • codebase_design_notes: not_applicable
  • review_mode: cli
  • runtime_validation: required
  • runtime_target: The apps/wiki Next.js app (production build served locally on a portless URL)
  • runtime_evidence: GET /llms.txt lists the new article; GET on its Markdown route returns text/markdown with the sources content; a search query returns it; GET of a raw/ path returns 404.
  • runtime_cleanup: Stop the server process group; remove .next build output if task-created and not needed; verify the port is free.
  • architecture_wave: A3
  • behavior_owner: apps/wiki project + 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-plan Wiki 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-plan Wiki 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 Context section that cites the T9 knowledge and lists open conflicts (IP-439 proposes removing apps/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:health passes; Linear IP-439 updatedAt is unchanged (2026-09-02T16:42:02.858Z at 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-plan applicable_behavior: Run only its Wiki Context step; do not create an execution plan.
    • skill: writing-for-agents applicable_behavior: Keep the artifact a terse reference with explicit citations.
  • 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-plan consumer
  • integration_surface: Future planning
  • public_seam: ## Wiki Context section
  • 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 full node --test tests/ before T11 pushes.
  • Project: vitest fixture tests for check-health.mjs within test: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

GateCommands
TaskThe task's green_command
W1/W2 skillscd /home/stefan/repos/skills && node --test tests/
W2 projectcd apps/wiki && bun run test:ci && bun run check:content
A1/A2 checkpointsAs in Architecture Waves
W4/W5cd apps/wiki && bun run check && bun run check:health && bun run test:ci; wiki check-types; root bun run check scoped to changed workspaces
Releasenode 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

RiskMitigation
The real corpus has many health findingsT7 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 indexNo commits in W1/W2 (P13); T11 commits serially.
The sync pulls unrelated commitsAccepted (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 debtScope hook failures; record pre-existing ones with evidence; do not weaken the gate without user approval.
A metadata convention (P8–P12) proves wrong during T9Amend 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.json omissions are intentional. Non-blocking; T9 decides from evidence and records the reason.
  • The IP-439 supersession (P2). Deferred to a later requirements-grill run after the T10 consultation.

On this page