Case 01

Knowledge OS: from context to bounded execution

  • Navigation implemented
  • Work-order worker implemented
  • Nightly reconciliation pilot
  • Tool-discovery gate prototype

A canonical knowledge store and a work-order pipeline. AI agents find the right authority, act only on approved instructions, and report back for human acceptance.

Problem

AI-assisted projects pile up instructions, decisions and reports across many sessions and several AI participants. Without clear authority and navigation, an agent can act on stale context, or treat a proposal as permission to act.

Approach

Progressive disclosure. The Markdown knowledge store is organized in layers. A small bootstrap links to a system map. The map links to project entries, then procedures, then supporting evidence. Agents follow the links one hop at a time instead of guessing file paths.

Hybrid DSL work orders. Each order states goal, scope, permissions, steps, outputs and acceptance in compact key/value form. The human owner approves the exact text, and the approval is bound to that text's SHA-256 hash.

Human-controlled orchestration. Conversational AI participants review architecture and draft orders. Engineering agents execute them. Deterministic software runs the operations. Only the human owner approves and accepts.

Knowledge and execution boundaries Two separate stores. Documentation flows from bootstrap to system map to project authority to procedures and evidence. Execution flows from a structured work order, to human approval of the exact text, to an execution worker, to an attempt report, to verification and human acceptance. CANONICAL DOCUMENTATION Small bootstrap System map Project authority Procedures + evidence WORK-ORDER STATE (SEPARATE AUTHORITY) Structuredwork order Human approvesexact text (hash) Executionworker Attempt +report Verify +human accepts REPORT DOCUMENT STORED HERE
Read this diagram as text
  1. Documentation side: a small bootstrap links to a system map.
  2. The system map links to project authority, which links to procedures and evidence.
  3. Execution side (a separate authority): a structured work order is drafted.
  4. The human owner approves the exact text; the approval is bound to its hash.
  5. An execution worker runs the approved order and records an attempt and report.
  6. The report document is stored on the documentation side.
  7. Verification and human acceptance come last. A completed run is not acceptance.
Documentation and execution state have separate authorities and are not mirrored. A completed run does not mean human acceptance. Generic names; illustrative.

Worked example

Synthetic data · locally executed

Three invoices, two discrepancies, one bounded task

Fictional vendors and invented USD amounts. This is the full eight-field mixed Chinese/English DSL format used to describe work: Chinese field names with English task content. The demo order was never submitted, approved or dispatched.

Complete demo specification

任务ID=DEMO-INVOICE-001;目标=Reconcile three synthetic USD supplier invoices and explain each discrepancy;范围=demo/invoices/SYN-A.json|demo/invoices/SYN-B.json|demo/invoices/SYN-C.json,synthetic inputs only;权限=read listed inputs|create demo/report.json only|no email|no payments|no network|no real customer data;步骤=read each invoice→quantity × unit price→tax at 8 percent rounded half up to cents→expected total→compare stated amounts and record differences→sum totals;输出=demo/report.json;验收=check all three subtotals,taxes,totals and signed differences individually|aggregate totals reconcile|human review remains pending;回复格式=任务ID|状态|输出路径|证据|障碍

Example SHA-2562744b08d96dd2fe23d2665c040180de3d4253655d39d64046c3609dd415c8233

Hash of the exact UTF-8 DSL text above: one logical line, no BOM, no trailing newline. Visual wrapping adds no bytes. This is an example integrity hash, not an approval receipt.

Read the eight fields in English
任务ID · Task ID
DEMO-INVOICE-001 identifies this synthetic specification.
目标 · Goal
Reconcile three supplier invoices and explain differences.
范围 · Scope
Only the three explicitly listed synthetic JSON inputs.
权限 · Permissions
Read those inputs and create one report. No email, payments, network or real customer data.
步骤 · Steps
Multiply quantities by unit prices, calculate 8% tax rounded half up to cents, compare each amount, and sum totals.
输出 · Output
One local JSON reconciliation report.
验收 · Acceptance
Verify each subtotal, tax, total and signed difference, reconcile aggregates, then await human review.
回复格式 · Reply format
Task ID | status | output path | evidence | obstacles.

Inputs and reproducible results

Tax rule for this invented dataset: 8% of the recomputed subtotal, rounded half up to the nearest cent. All calculations use integer cents or decimal arithmetic. Positive differences mean the invoice states more than the recomputed amount.

  1. SYN-A · Fable Paperworks (fictional)

    Input: 3 × $12.50. Stated subtotal $37.50, tax $3.00, total $40.50.

    Recomputed: subtotal $37.50 + tax $3.00 = $40.50.

    Differences (stated − expected): subtotal +$0.00, tax +$0.00, total +$0.00. All stated amounts agree.

    Input SHA-256: 77f39cea36596f1b3fae48eeff72d357cffec0200b6e3dac18281af32bcebedd

  2. SYN-B · Imaginary Lantern Studio (fictional)

    Input: 2 × $80.00. Stated subtotal $165.00, tax $12.80, total $177.80.

    Recomputed: subtotal $160.00 + tax $12.80 = $172.80.

    Differences (stated − expected): subtotal +$5.00, tax +$0.00, total +$5.00. The stated subtotal is $5.00 too high; that error carries into the stated total. The stated tax agrees with the recomputed tax.

    Input SHA-256: d7283d8f6c708dd6a78d4962e61d90f8540a06d79dcc3423cd74efa4206e38db

  3. SYN-C · Pretend Harbor Supplies (fictional)

    Input: 5 × $19.99. Stated subtotal $99.95, tax $8.00, total $110.00.

    Recomputed: subtotal $99.95 + tax $8.00 = $107.95.

    Differences (stated − expected): subtotal +$0.00, tax +$0.00, total +$2.05. The stated subtotal and tax agree, but the stated total exceeds their sum by $2.05.

    Input SHA-256: b5e35126908a32ba50adf9f46bb93fa0720f161521cd9d04875492973b950a94

Aggregate: stated $328.30 − expected $321.25 = +$7.05. That is $5.00 + $2.05 across the two discrepant invoices. SYN-C tax: $99.95 × 8% = $7.996 → $8.00.

Output report SHA-256: 8ae458ff52852d18818ec76f9b70a2e1cda98d5199dda4190b556351099529ab. Input hashes describe the retained JSON bytes; amounts shown here are sufficient to repeat the arithmetic.

What actually ran

On November 24, 2026, this page's Codex executor ran a deterministic Python script in a separate local demo directory. It read the three synthetic JSON inputs and created a JSON report. A second implementation using integer-cent arithmetic checked every amount and difference in the same executor. The DSL was the specification; it was not interpreted by a DSL parser.

No independent agent ran or reviewed the demo. No demo scheduler claim, approval record or acceptance is asserted. File isolation and the script's observed operations are verified; this is not an operating-system sandbox or a proof that permissions are automatically enforced.

The real work order is separate

The enclosing portfolio implementation order, PORTFOLIO-DSL-DEMO-001, was approved by Brad and launched by the existing KOS worker. It authorized creating and checking this synthetic example and publishing this page. That real outer approval does not approve DEMO-INVOICE-001. Completion and human acceptance remain separate.

Validation boundary: one controlled synthetic run and a separate arithmetic cross-check by the same executor. This demonstrates a bounded specification and reproducible reconciliation, not autonomous approval, independent review, customer-data processing or reliability across tasks.

Engineering detail

  • ImplementedThe worker re-checks the approved text's hash before launch, records every attempt and event, and writes a create-only report for review.
  • ImplementedLocal PAUSE and STOP controls. Failed orders are never re-run automatically; recovery is a new order.
  • ImplementedTwo separate authorities. A work-order database holds execution state. The Markdown tree holds documentation and the reports themselves. Neither is mirrored into the other.
  • PilotRecursive improvement: a deterministic nightly reconciliation job with idempotency checks writes its report before committing its watermark. The pilot is in progress and has not yet been evaluated.
  • PrototypeAn isolated tool-discovery and preflight adapter with a passing test set. Positive fixtures are synthetic. It is not yet enforced for every submission.

What it does not claim

No measured productivity gain, token savings or production scale. The reconciliation job proposes fixes; it does not modify itself. Peer review between AI participants is coordinated by a human, not a self-governing agent swarm.

What I learned

Finding the governing document and finding all the relevant evidence are different problems. A hierarchy solves the first. Explicit provenance and capability discovery are needed for the second.