Skip to content

atomize-hq/system

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

225 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

System

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.

Current Status:

  • 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, and doctor.
  • The public setup family is system setup, system setup init, and system setup refresh.
  • Bare system setup routes to setup init when canonical .system/ truth is absent or invalid; otherwise it routes to setup refresh.
  • setup remains the durable product term. init is only the concrete first-run subcommand name.
  • setup refresh preserves canonical files by default. setup refresh --rewrite rewrites only setup-owned starter files, and setup refresh --reset-state resets 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; doctor classifies baseline readiness as SCAFFOLDED, PARTIAL_BASELINE, INVALID_BASELINE, or BASELINE_COMPLETE.
  • FEATURE_SPEC.md remains outside baseline setup and baseline doctor. The shipped feature-spec path stays packet-driven: pipeline compile stage.10_feature_spec emits model input payload, an external model or operator produces the completed markdown, and pipeline capture stage.10_feature_spec materializes 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 with system setup; only after replacing starter text with real canonical truth does system doctor become the ready-path next step.
  • The public baseline authoring family is system author charter, system author project-context, and system author environment-inventory.
  • The automation-safe structured-input authoring paths are system author charter --from-inputs <path|-> and system author project-context --from-inputs <path|->.
  • system author charter --validate --from-inputs <path|-> is the mutation-free charter preflight surface. --validate is not supported on guided system author charter.
  • system author charter --from-inputs <path|-> is deterministic and compiler-owned. The guided system author charter path remains the Codex-backed interview surface.
  • system doctor --json is the only machine-readable readiness surface for the installed system-charter-intake skill.
  • 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.sh owns the curated installed ~/system/ home: ~/system/bin/system is the only installed executable, ~/system/runtime-manifest.json remains part of the runtime contract, and installed static guidance lives under ~/system/resources/**.
  • Tagged GitHub Releases now publish curated ~/system/ bundles for macOS arm64 and Linux x86_64, together with SHA256SUMS.
  • scripts/system/install.sh is 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 preinstalled system binary.
  • tools/codex/dev-setup.sh is 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.
  • pipeline is the orchestration surface for route resolution, explicit stage compilation, explicit stage-output capture, and the shipped command family list, show, resolve, compile, capture, handoff emit, and state set.
  • Approved docs and contracts teach one declarative namespace root under core/**, including core/pipelines/, core/profiles/, and core/runners/.
  • Any retained references to top-level pipelines/, profiles/, runners/, or repo-root pipeline.yaml are historical-only wording and are not the approved declarative surface.
  • Planning packet generation reads canonical repo-local .system/ inputs.
  • execution.demo.packet is fixture-backed demo only. Live execution is explicitly refused.
  • Stage 10 stays truthful: pipeline compile emits payload-only model input, external model output produces the completed FEATURE_SPEC.md, and pipeline capture materializes 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 "setup is still a placeholder". Treat that as superseded wording, not active product authority.

Start Here

Repo Entry Points

Useful Commands In This Repo

Inspect the shipped command surface:

cargo run -p system-cli -- --help
cargo run -p system-cli -- pipeline --help

Inspect the current pipeline inventory:

cargo run -p system-cli -- pipeline list
cargo run -p system-cli -- pipeline show --id pipeline.foundation_inputs

See 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 --json

Exercise 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.yaml

Generate and install the Codex packaging layer:

bash tools/codex/generate.sh
bash tools/codex/install.sh
bash tools/codex/dev-setup.sh

Install the latest tagged public release without building locally:

curl -fsSL https://raw.githubusercontent.com/atomize-hq/system/main/scripts/system/install.sh | bash

Exercise the packet surfaces once canonical .system/ artifacts exist:

cargo run -p system-cli -- generate
cargo run -p system-cli -- inspect

Reduced-v1 Boundaries

  • pipeline compile --id <pipeline-id> --stage <stage-id> is the bounded M2 compile surface.
  • Plain pipeline compile success is payload-only stdout.
  • pipeline compile --explain is 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 --preview validates stdin, caches one typed materialization plan, and returns a deterministic capture_id.
  • pipeline capture apply --capture-id <capture-id> revalidates freshness and applies the cached plan transactionally.
  • For pipeline.foundation_inputs, the shipped capture stages are stage.04_charter_inputs, stage.05_charter_synthesize, stage.06_project_context_interview, stage.07_foundation_pack, and stage.10_feature_spec.
  • pipeline capture remains the only supported stage-output writer surface.
  • Stage 10 materialization stays compile -> external model output -> capture.
  • Compile and capture freshness recovery are explicit. Re-run pipeline resolve before retrying when route basis is missing, stale, or inactive.
  • Capture apply safety is scoped to system-coordinated single-writer flows.
  • inspect is the packet proof surface.
  • doctor is the recovery surface.

Repo Layout

  • crates/cli/: CLI binary and command-surface tests
  • crates/compiler/: compiler, resolver, rendering, and pipeline runtime logic
  • core/pipelines/: approved declarative pipeline definitions
  • core/profiles/: approved declarative profile packs and profile command surfaces
  • core/runners/: approved declarative runner allowlist and execution-guidance modules
  • core/stages/: approved stage source documents used by the compiler
  • core/library/: reusable authoring directives, templates, and shared planning inputs
  • core/schemas/: structured YAML contracts for generated artifacts
  • docs/: supported docs, contracts, and frozen legacy docs
  • tests/fixtures/foundation_flow_demo/: committed proof corpus for the pipeline.foundation_inputs happy/skip journey
  • artifacts/planning/reduced-v1-seam-pack/: reviewed reduced-v1 planning pack
  • tools/: legacy harness helpers plus current QA helpers

Legacy Reference

The Python harness remains in the repo to preserve prior scaffold behavior and generated-artifact examples. It is not the supported product path.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors