Skip to content

Experimental documentation — Needs review

This page completed the primary audit but requires Zach's review. Current documentation version: experimental.

Repository fracture execution plan

This is the concise operating plan for starting the Sagan repository split. The canonical fracture roadmap remains the authority when this checklist omits detail.

Destination repositories

Operate seven coordinated repositories under Sagan-Shoulak, transferring the existing sagan repository and creating the other six only afterward:

  1. sagan — language, compiler, CLI, LSP, DAP, packages, math, and units.
  2. sagan-vscode — VS Code client, grammars, VSIX, and editor tests.
  3. sagan-physics — physics packages, numerical models, and headless tests.
  4. sagan-render — rendering API, native backends, and graphical tests.
  5. sagan-workspace — bootstrap, exact ecosystem lock, integrated demos, and cross-repository tests.
  6. sagan-docs — one holistic official documentation site assembled from version-locked component documentation.
  7. sagan-space-game — the Sagan application, assets, tests, releases, and owner-reviewed SPACE_GAME_DESIGN.md.

The existing language repository moves into the organization first, after the transfer start gate passes and before any new split repository is created. Physics never depends on rendering, rendering never depends on physics, and the extension never owns language semantics.

Mandatory root contract

Before a repository is considered extracted, its root must contain:

  • README.md for users and contributors;
  • TECHNOLOGY.md for the conceptual architecture and how the moving parts fit;
  • MAINTAINERS.md for exact Bash commands, branching, testing, releasing, deployment, diagnosis, recovery, manifests, locks, CI, and an impact-based test-selection matrix;
  • a one-time CODEX_START.md for initial read-only onboarding, then durable AGENTS.md, TECHNOLOGY.md, and MAINTAINERS.md for teaching-first behavior, ecosystem chat routing, and repository-specific canonical sources;
  • machine-readable manifests, compatibility declarations, and exact locks; and
  • independently runnable focused tests, complete tests, documentation checks, CI, and release procedures.

Any documentation edit resets its page to status: review-needed, sets publication_ready: false, and clears all previous verification metadata until a human audits it again.

Workflow for every Codex change request

  1. Read the repository instructions, technology overview, maintainer guide, roadmap, manifests, locks, Git status, and relevant history without editing.
  2. Confirm repository ownership. If another specialized chat owns the work, recommend it and provide a ready-to-paste, context-complete handoff prompt.
  3. Start from current dev and create one short-lived codex/<request> branch.
  4. Implement only the authorized scope and preserve unrelated or concurrent work.
  5. Test only what the request changed first. Diagnose, refine, and repeat until the changed component works and every focused test passes.
  6. Commit only the intended paths and merge the completed request branch into dev.
  7. Rerun the relevant tests selected by the repository's impact matrix on the resulting dev. Documentation-only edits that do not affect executable examples run structural checks without testing every example; changed examples or supporting behavior run the relevant example tests. Resolve failures before declaring the request complete.
  8. Leave main untouched until reviewed publication promotion from dev. Promotion and release require the complete repository suite to pass.

Every repository's one-time CODEX_START.md must repeat this impact-based test rule, then its durable AGENTS.md and MAINTAINERS.md retain it after prompt deletion. Repository-specific prompts may strengthen this shared branch-test-refine-merge-verify clause, but none may omit or weaken it.

Start gate

Do not move code until all of the following are true:

  • repository names, visibility, ownership boundaries, and dependency direction are approved;
  • the current monorepo baseline is backed up, recorded by commit, and green;
  • schemas exist for component manifests, workspace locks, documentation exports, TECHNOLOGY.md, MAINTAINERS.md, and CODEX_START.md;
  • organization teams, branch protection, CI credentials, runners, and transfer permissions are understood;
  • the existing sagan transfer has an approved backup, redirect, remote-update, permission, integration, and rollback procedure;
  • canonical source, history-preservation, redirects, rollback, and partial-failure recovery are documented; and
  • the owner can bootstrap, test, and recover the baseline using checked-in instructions rather than chat history.

Extraction order

  1. Record contracts and inventory every source, test, document, workflow, release artifact, secret, runner, mirror, and deployment by destination.
  2. Transfer the intact primary sagan repository to Sagan-Shoulak, preserve GitHub redirects, update all remotes and organization-scoped integrations, and pass its focused, CI, documentation, and owner-recovery checks there. Do not create any split repository before this transfer is verified.
  3. Make each future component independently buildable and testable in the monorepo.
  4. Establish sagan-workspace with bootstrap, status, lock, restore, focused test, and complete integration commands.
  5. Establish sagan-docs and prove version-locked aggregate previews without changing the public site.
  6. Extract sagan-vscode; verify it against installed and pinned compiler/LSP artifacts and restore its official-docs section.
  7. Extract sagan-physics; publish and consume a real package artifact, run headless numerical tests, and restore its docs.
  8. Extract sagan-render; first define native-package metadata, then verify graphical evidence and installer consumption on supported platforms.
  9. Extract sagan-space-game; use only SPACE_GAME_DESIGN.md for canonical game context and verify both released-toolchain and workspace-override builds.
  10. Move cross-component demonstrations to sagan-workspace, leaving component-owned examples with their owners.
  11. Establish independent releases and holistic documentation publication, then promote a tested ecosystem lock.

Repeatable extraction gate

For each repository, repeat this loop before removing the original copy:

  1. Preserve relevant history and copy only owned material.
  2. Pass focused build, test, documentation, packaging, and platform checks.
  3. Pass independently against released dependencies.
  4. Add the exact commit to the workspace lock and pass ecosystem integration.
  5. Restore the component's official documentation section through aggregation.
  6. Pass a clean-chat onboarding drill and an owner-survivability drill.
  7. Verify artifacts, links, redirects, recovery, and parity with the source.
  8. Remove the old copy only after every gate passes and rollback is proven.

Completion gate

The fracture is complete only when all seven repositories are independently maintainable and releasable, the exact workspace lock recreates a known-good ecosystem, one official site publishes all approved component documentation, Space Game builds from an installed Sagan toolchain, every onboarding and survivability drill passes, and no required operation depends on chat history.