OKF Harness
This unified entrypoint routes setup and workspace maintenance without making the user choose a mode.
Required Behavior
- Classify the request as setup, discovery, repair, check, ingest, reconciliation, answer, graph, or an explicit combination.
- Resolve the workspace with the launcher before choosing the route:
npx @okf-harness/setup@latest launch -- status --json
- Read the launcher's machine-readable result.
WORKSPACE_NOT_FOUND routes to discovery or setup. RUNTIME_PIN_MISSING means run data.adoptCommand exactly and retry. CONFIG_INVALID and runtime execution failures stop the workflow with the reported problem.
- For a resolved workspace, run every Harness command through
npx @okf-harness/setup@latest launch --workspace <workspace> -- <runtime-arguments> and read its JSON before continuing.
- Load only the setup, discovery, or repair reference when that route needs it. Daily workspace routes use the commands below.
- Before persistent setup writes, state the resolved workspace name, path, and agent target unless the user supplied all three.
- After any wiki edit, run the workspace check and report its status. If files changed, name the changed files.
- Use the CLI
data.refresh object when present without claiming that workspace-local guidance exists unless the result confirms it.
Workspace Routes
npx @okf-harness/setup@latest launch --workspace <workspace> -- check --json
npx @okf-harness/setup@latest launch --workspace <workspace> -- source add <source> --json
npx @okf-harness/setup@latest launch --workspace <workspace> -- ingest plan <source-id> --json
npx @okf-harness/setup@latest launch --workspace <workspace> -- source list --json
npx @okf-harness/setup@latest launch --workspace <workspace> -- source reconcile <prior-source-id> <revision-source-id> --note "<judgment-note>" --json
npx @okf-harness/setup@latest launch --workspace <workspace> -- evidence "<question>" --json
npx @okf-harness/setup@latest launch --workspace <workspace> -- read <concept-id-or-path> --json
npx @okf-harness/setup@latest launch --workspace <workspace> -- graph --json
- Ingest registers source material, prepares the plan, then lets the agent read the registered source and make bounded wiki edits; the CLI does not synthesize wiki content.
- Reconciliation reads both immutable registered revisions, updates every affected wiki claim, checks the workspace, then records the exact revision edge.
- Answers use synthesized
wiki/ evidence from evidence, plus at most one continuation-cue read. Normal answers do not read raw source bodies.
- Graph uses
--open only when the user asks to open the report.
Setup-Plus-Source
- Validate every requested local source before creating a workspace. Report every missing, non-file, or unreadable input before writing.
- Treat URLs as source pointers; do not fetch or imply their contents were captured.
- After setup or selection, register each accepted source and prepare its ingest plan through the launcher. Continue into wiki synthesis only when the user requested it and the current session can safely edit the resolved workspace.
- On failure, report the first-loop blocker with one concrete next action.
Completion Contract
- Setup, discovery, and repair finish only when the selected reference's completion condition is met.
- Check reports status, conformance, Harness findings, and the first concrete next step.
- Ingest reports the source ID, changed wiki paths, check status, and unresolved questions.
- Reconciliation finishes only after the exact prior-and-revision edge is acknowledged.
- Answer cites supporting concept paths and source IDs and states material evidence limits.
- Graph reports the generated HTML and backlinks paths.
Hard Rules
- Do not create a workspace skeleton by hand; use the setup route's runtime command.
- Do not initialize a non-empty non-workspace directory in place.
- Do not install or repair extra agent clients unless the user explicitly asks.
- Never edit
raw/sources/; register corrected material as a new source.
- Never invent source IDs, citations, dates, claims, command output, or an
okfh query command.
- Keep knowledge-base work outside OKF Harness and repository dependency graphs out of this skill.
Routes
1---2name: okf-harness-bootstrap3description: OKF Harness4---5# OKF Harness67This unified entrypoint routes setup and workspace maintenance without making the user choose a mode.89## Required Behavior10111. Classify the request as setup, discovery, repair, check, ingest, reconciliation, answer, graph, or an explicit combination.122. Resolve the workspace with the launcher before choosing the route:1314```bash15npx @okf-harness/setup@latest launch -- status --json16```17183. Read the launcher's machine-readable result. `WORKSPACE_NOT_FOUND` routes to discovery or setup. `RUNTIME_PIN_MISSING` means run `data.adoptCommand` exactly and retry. `CONFIG_INVALID` and runtime execution failures stop the workflow with the reported problem.194. For a resolved workspace, run every Harness command through `npx @okf-harness/setup@latest launch --workspace <workspace> -- <runtime-arguments>` and read its JSON before continuing.205. Load only the setup, discovery, or repair reference when that route needs it. Daily workspace routes use the commands below.216. Before persistent setup writes, state the resolved workspace name, path, and agent target unless the user supplied all three.227. After any wiki edit, run the workspace check and report its status. If files changed, name the changed files.238. Use the CLI `data.refresh` object when present without claiming that workspace-local guidance exists unless the result confirms it.2425## Workspace Routes2627```bash28npx @okf-harness/setup@latest launch --workspace <workspace> -- check --json29npx @okf-harness/setup@latest launch --workspace <workspace> -- source add <source> --json30npx @okf-harness/setup@latest launch --workspace <workspace> -- ingest plan <source-id> --json31npx @okf-harness/setup@latest launch --workspace <workspace> -- source list --json32npx @okf-harness/setup@latest launch --workspace <workspace> -- source reconcile <prior-source-id> <revision-source-id> --note "<judgment-note>" --json33npx @okf-harness/setup@latest launch --workspace <workspace> -- evidence "<question>" --json34npx @okf-harness/setup@latest launch --workspace <workspace> -- read <concept-id-or-path> --json35npx @okf-harness/setup@latest launch --workspace <workspace> -- graph --json36```3738- Ingest registers source material, prepares the plan, then lets the agent read the registered source and make bounded wiki edits; the CLI does not synthesize wiki content.39- Reconciliation reads both immutable registered revisions, updates every affected wiki claim, checks the workspace, then records the exact revision edge.40- Answers use synthesized `wiki/` evidence from `evidence`, plus at most one continuation-cue `read`. Normal answers do not read raw source bodies.41- Graph uses `--open` only when the user asks to open the report.4243## Setup-Plus-Source4445- Validate every requested local source before creating a workspace. Report every missing, non-file, or unreadable input before writing.46- Treat URLs as source pointers; do not fetch or imply their contents were captured.47- After setup or selection, register each accepted source and prepare its ingest plan through the launcher. Continue into wiki synthesis only when the user requested it and the current session can safely edit the resolved workspace.48- On failure, report the first-loop blocker with one concrete next action.4950## Completion Contract5152- Setup, discovery, and repair finish only when the selected reference's completion condition is met.53- Check reports status, conformance, Harness findings, and the first concrete next step.54- Ingest reports the source ID, changed wiki paths, check status, and unresolved questions.55- Reconciliation finishes only after the exact prior-and-revision edge is acknowledged.56- Answer cites supporting concept paths and source IDs and states material evidence limits.57- Graph reports the generated HTML and backlinks paths.5859## Hard Rules6061- Do not create a workspace skeleton by hand; use the setup route's runtime command.62- Do not initialize a non-empty non-workspace directory in place.63- Do not install or repair extra agent clients unless the user explicitly asks.64- Never edit `raw/sources/`; register corrected material as a new source.65- Never invent source IDs, citations, dates, claims, command output, or an `okfh query` command.66- Keep knowledge-base work outside OKF Harness and repository dependency graphs out of this skill.6768## Routes6970- [Setup](references/setup.md)71- [Discovery](references/discovery.md)72- [Repair](references/repair.md)