Rust-first planning/compiler CLI for the reduced-v1 system product.
The supported path is the Rust workspace in crates/. The older Python harness still ships in this repo, but only as frozen reference material while the cutover finishes.
- The governing repo-surface truth is C-01 Approved Repo Surface.
- The command-surface truth is C-02 Rust Workspace and CLI Command Surface.
- The interaction contract lives in DESIGN.md.
- The current top-level CLI surface is
setup,author,pipeline,generate,inspect, anddoctor. - The public setup family is
system setup,system setup init, andsystem setup refresh. - Bare
system setuproutes tosetup initwhen canonical.system/truth is absent or invalid; otherwise it routes tosetup refresh. setupremains the durable product term.initis only the concrete first-run subcommand name.setup refreshpreserves canonical files by default.setup refresh --rewriterewrites only setup-owned starter files, andsetup refresh --reset-stateresets only.system/state/**.- The canonical setup-created starter files are exactly
.system/charter/CHARTER.md,.system/project_context/PROJECT_CONTEXT.md, and.system/environment_inventory/ENVIRONMENT_INVENTORY.md. - The shipped starter templates are scaffolding only. Setup establishes the baseline file set;
doctorclassifies baseline readiness asSCAFFOLDED,PARTIAL_BASELINE,INVALID_BASELINE, orBASELINE_COMPLETE. FEATURE_SPEC.mdremains outside baseline setup and baselinedoctor. The shipped feature-spec path stays packet-driven:pipeline compile stage.10_feature_specemits model input payload, an external model or operator produces the completed markdown, andpipeline capture stage.10_feature_specmaterializes it.- Setup hands off to
system doctor, which renders the ordered baseline checklist and the next exact authoring command. - The repo-owned charter authoring method lives at
core/library/authoring/charter_authoring_method.md. - This repository does not ship completed canonical
.system/truth at repo root. On a fresh clone, start withsystem setup; only after replacing starter text with real canonical truth doessystem doctorbecome the ready-path next step. - The public baseline authoring family is
system author charter,system author project-context, andsystem author environment-inventory. - The automation-safe structured-input authoring paths are
system author charter --from-inputs <path|->andsystem author project-context --from-inputs <path|->. system author charter --validate --from-inputs <path|->is the mutation-free charter preflight surface.--validateis not supported on guidedsystem author charter.system author charter --from-inputs <path|->is deterministic and compiler-owned. The guidedsystem author charterpath remains the Codex-backed interview surface.system doctor --jsonis the only machine-readable readiness surface for the installedsystem-charter-intakeskill.- Codex packaging authored skill inputs live under
install/system-home/. Repo-local.agents/skills/*trees are thin generated projections only. The installed home is~/system/, installed thin projections live under~/system/.agents/skills/*, and~/.codex/skills/system*is discovery glue only. tools/codex/install.showns the curated installed~/system/home:~/system/bin/systemis the only installed executable,~/system/runtime-manifest.jsonremains part of the runtime contract, and installed static guidance lives under~/system/resources/**.- Tagged GitHub Releases now publish curated
~/system/bundles formacOS arm64andLinux x86_64, together withSHA256SUMS. scripts/system/install.shis the thin public installer wrapper. It downloads the correct tagged release bundle, verifies the checksum, installs~/system/, and refreshes~/.codex/skills/system*without requiring a preinstalledsystembinary.tools/codex/dev-setup.shis the dev-only symlink path. Normal install is copy-based, and re-running normal install after dev setup replaces those symlinks with copied directories cleanly.pipelineis the orchestration surface for route resolution, explicit stage compilation, explicit stage-output capture, and the shipped command familylist,show,resolve,compile,capture,handoff emit, andstate set.- Approved docs and contracts teach one declarative namespace root under
core/**, includingcore/pipelines/,core/profiles/, andcore/runners/. - Any retained references to top-level
pipelines/,profiles/,runners/, or repo-rootpipeline.yamlare historical-only wording and are not the approved declarative surface. - Planning packet generation reads canonical repo-local
.system/inputs. execution.demo.packetis fixture-backed demo only. Live execution is explicitly refused.- Stage
10stays truthful:pipeline compileemits payload-only model input, external model output produces the completedFEATURE_SPEC.md, andpipeline capturematerializes that body. pipeline handoff emit --id <pipeline-id> --consumer <consumer-id>is the shipped downstream handoff-emission wedge for the named consumer flow.
Historical reference only:
- Earlier M4/M5 docs used the phrase "
setupis still a placeholder". Treat that as superseded wording, not active product authority.
- Supported docs index: docs/README.md
- Supported product entrypoint: docs/START_HERE.md
- Exact command surface: docs/SUPPORTED_COMMANDS.md
- CLI vocabulary: docs/CLI_PRODUCT_VOCABULARY.md
- Command hierarchy and front door: docs/CLI_COMMAND_HIERARCHY.md
- Output anatomy: docs/CLI_OUTPUT_ANATOMY.md
- Operator journey and conformance notes: docs/CLI_OPERATOR_JOURNEY.md
- Release notes: CHANGELOG.md
- Active implementation plan: PLAN.md
- Broader long-range vision: docs/VISION.md
- Current backlog: TODOS.md
- Reduced-v1 seam pack: artifacts/planning/reduced-v1-seam-pack/README.md
- Legacy docs index: docs/legacy/README.md
Inspect the shipped command surface:
cargo run -p system-cli -- --help
cargo run -p system-cli -- pipeline --helpInspect the current pipeline inventory:
cargo run -p system-cli -- pipeline list
cargo run -p system-cli -- pipeline show --id pipeline.foundation_inputsSee the M6 setup family and recovery handoff:
cargo run -p system-cli -- setup
cargo run -p system-cli -- setup init
cargo run -p system-cli -- setup refresh
cargo run -p system-cli -- doctor
cargo run -p system-cli -- doctor --jsonExercise the shipped deterministic charter surfaces:
cargo run -p system-cli -- author charter --validate --from-inputs tools/fixtures/charter_inputs/runtime_smoke_valid.yaml
cargo run -p system-cli -- author charter --from-inputs tools/fixtures/charter_inputs/runtime_smoke_valid.yamlGenerate and install the Codex packaging layer:
bash tools/codex/generate.sh
bash tools/codex/install.sh
bash tools/codex/dev-setup.shInstall the latest tagged public release without building locally:
curl -fsSL https://raw.githubusercontent.com/atomize-hq/system/main/scripts/system/install.sh | bashExercise the packet surfaces once canonical .system/ artifacts exist:
cargo run -p system-cli -- generate
cargo run -p system-cli -- inspectpipeline compile --id <pipeline-id> --stage <stage-id>is the bounded M2 compile surface.- Plain
pipeline compilesuccess is payload-only stdout. pipeline compile --explainis the compile proof surface for that same result.pipeline capture --id <pipeline-id> --stage <stage-id>is the bounded M3/M3.5 writer surface.pipeline capture --previewvalidates stdin, caches one typed materialization plan, and returns a deterministiccapture_id.pipeline capture apply --capture-id <capture-id>revalidates freshness and applies the cached plan transactionally.- For
pipeline.foundation_inputs, the shipped capture stages arestage.04_charter_inputs,stage.05_charter_synthesize,stage.06_project_context_interview,stage.07_foundation_pack, andstage.10_feature_spec. pipeline captureremains the only supported stage-output writer surface.- Stage
10materialization stayscompile -> external model output -> capture. - Compile and capture freshness recovery are explicit. Re-run
pipeline resolvebefore retrying when route basis is missing, stale, or inactive. - Capture apply safety is scoped to
system-coordinated single-writer flows. inspectis the packet proof surface.doctoris the recovery surface.
crates/cli/: CLI binary and command-surface testscrates/compiler/: compiler, resolver, rendering, and pipeline runtime logiccore/pipelines/: approved declarative pipeline definitionscore/profiles/: approved declarative profile packs and profile command surfacescore/runners/: approved declarative runner allowlist and execution-guidance modulescore/stages/: approved stage source documents used by the compilercore/library/: reusable authoring directives, templates, and shared planning inputscore/schemas/: structured YAML contracts for generated artifactsdocs/: supported docs, contracts, and frozen legacy docstests/fixtures/foundation_flow_demo/: committed proof corpus for thepipeline.foundation_inputshappy/skip journeyartifacts/planning/reduced-v1-seam-pack/: reviewed reduced-v1 planning packtools/: legacy harness helpers plus current QA helpers
The Python harness remains in the repo to preserve prior scaffold behavior and generated-artifact examples. It is not the supported product path.
- Legacy docs index: docs/legacy/README.md
- Harness mechanics: docs/legacy/HARNESS.md
- Legacy system model: docs/legacy/SYSTEM_MODEL.md