internal/

directory
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 22, 2026 License: MIT

Directories

Path Synopsis
Package adaptertest is the PRD §23 shared parity layer all hosts' adapters' plugin tests consume: fixtures (the committed §10 role profiles) and assertion helpers (skill/manifest drift pins) so cross-host invariants — the run-verb allowlist, the four anti-forgery statement literals, the plan/merge gate option text, the setup interview's terminal forms, hook command portability, matcher/ guard parity, the routed-selection prompt cue, and the blast-radius acceptance criterion the engine contributes to a risk-domain issue — have exactly one source instead of a copy per adapter that can silently drift apart.
Package adaptertest is the PRD §23 shared parity layer all hosts' adapters' plugin tests consume: fixtures (the committed §10 role profiles) and assertion helpers (skill/manifest drift pins) so cross-host invariants — the run-verb allowlist, the four anti-forgery statement literals, the plan/merge gate option text, the setup interview's terminal forms, hook command portability, matcher/ guard parity, the routed-selection prompt cue, and the blast-radius acceptance criterion the engine contributes to a risk-domain issue — have exactly one source instead of a copy per adapter that can silently drift apart.
Package agents renders the five dispatched role definitions `orch render-agents` writes for every enabled host.
Package agents renders the five dispatched role definitions `orch render-agents` writes for every enabled host.
Package bootstrap executes PRD §18 steps 10-15: given the answers an interview (internal/interview, internal/question) collected, it re-derives the terminal question.Complete document itself and composes internal/config, internal/instructions, internal/gitops, and internal/ghops into the one mechanical act that turns an approved interview into an open bootstrap pull request — a mechanical in-binary executor, no model subagent (decision 30).
Package bootstrap executes PRD §18 steps 10-15: given the answers an interview (internal/interview, internal/question) collected, it re-derives the terminal question.Complete document itself and composes internal/config, internal/instructions, internal/gitops, and internal/ghops into the one mechanical act that turns an approved interview into an open bootstrap pull request — a mechanical in-binary executor, no model subagent (decision 30).
Package cli implements the orch command surface (PRD §22).
Package cli implements the orch command surface (PRD §22).
Package codexusage recovers exact completed Codex child-rollout totals.
Package codexusage recovers exact completed Codex child-rollout totals.
Package config parses and validates the committed Orch configuration at .orchestrator/config.toml (PRD §17), then layers on the machine-local override file at config.local.toml when present.
Package config parses and validates the committed Orch configuration at .orchestrator/config.toml (PRD §17), then layers on the machine-local override file at config.local.toml when present.
Package execx defines the injectable external-command runner the orchestration core uses for git, gh, and host CLIs.
Package execx defines the injectable external-command runner the orchestration core uses for git, gh, and host CLIs.
execxtest
Package execxtest provides a scripted fake execx.Runner for transcript tests: each expected call is asserted in order and answered with a recorded result, so tests pin the exact argument vectors the core sends to git and gh without running either.
Package execxtest provides a scripted fake execx.Runner for transcript tests: each expected call is asserted in order and answered with a recorded result, so tests pin the exact argument vectors the core sends to git and gh without running either.
Package ghops executes the GitHub mechanics of the Delivery workflow (PRD §12 steps 6, 9, 13-17) through the authenticated gh CLI (PRD §5), via an injected execx.Runner: repository resolution, the PRD §13 label taxonomy, issue lifecycle, and PR open, status, required-CI state, and merge.
Package ghops executes the GitHub mechanics of the Delivery workflow (PRD §12 steps 6, 9, 13-17) through the authenticated gh CLI (PRD §5), via an injected execx.Runner: repository resolution, the PRD §13 label taxonomy, issue lifecycle, and PR open, status, required-CI state, and merge.
Package gitops executes the git mechanics of the Delivery workflow (PRD §12): per-issue feature branches and worktrees, post-merge cleanup, cleanliness and protected-branch preconditions (PRD §5, §15), and base-branch checkouts for reproducing failures (PRD §16).
Package gitops executes the git mechanics of the Delivery workflow (PRD §12): per-issue feature branches and worktrees, post-merge cleanup, cleanliness and protected-branch preconditions (PRD §5, §15), and base-branch checkouts for reproducing failures (PRD §16).
Package guard is the mechanical write-enforcement core behind the host-adapter PreToolUse hooks (PRD §23: "Assist reliably blocks tracked-file changes" and "Delivery cannot write outside registered worktrees").
Package guard is the mechanical write-enforcement core behind the host-adapter PreToolUse hooks (PRD §23: "Assist reliably blocks tracked-file changes" and "Delivery cannot write outside registered worktrees").
Package instructions renders, detects, upgrades, and removes the Orch-managed instruction block inside a repository's root AGENTS.md/CLAUDE.md file (PRD §19):
Package instructions renders, detects, upgrades, and removes the Orch-managed instruction block inside a repository's root AGENTS.md/CLAUDE.md file (PRD §19):
Package interview implements the pure `orch init` question engine (PRD §18): given the environment Detect found and the answers collected so far, Next derives the next question.Document to show — a batch of independent questions, the pre-approval summary, the terminal hand-off document, or an abort notice.
Package interview implements the pure `orch init` question engine (PRD §18): given the environment Detect found and the answers collected so far, Next derives the next question.Document to show — a batch of independent questions, the pre-approval summary, the terminal hand-off document, or an abort notice.
Package lockfile implements the exclusive cross-host Delivery lock (PRD §14): one active Delivery coordinator per repository across both hosts.
Package lockfile implements the exclusive cross-host Delivery lock (PRD §14): one active Delivery coordinator per repository across both hosts.
Package manifest renders and parses the PRD §13 audit record that every Orch issue and PR body carries: the approved objective, acceptance criteria, and required tests, including which of those tests the plan declared the repository's CI does not run; the selected role, the exact executor/reviewer model+effort and how the host actually delivered that effort; the routing rationale, escalations and substitutions, the config revision, and named verification commands and results with the commit each was gathered at.
Package manifest renders and parses the PRD §13 audit record that every Orch issue and PR body carries: the approved objective, acceptance criteria, and required tests, including which of those tests the plan declared the repository's CI does not run; the selected role, the exact executor/reviewer model+effort and how the host actually delivered that effort; the routing rationale, escalations and substitutions, the config revision, and named verification commands and results with the commit each was gathered at.
Package memhub is the mechanical PRD §20 client for the external memhub CLI.
Package memhub is the mechanical PRD §20 client for the external memhub CLI.
Package metrics is the mechanical PRD §21 recorder: one schema-versioned JSON document per Delivery run at .orchestrator/metrics/<run-id>.json, local-only and never transmitted.
Package metrics is the mechanical PRD §21 recorder: one schema-versioned JSON document per Delivery run at .orchestrator/metrics/<run-id>.json, local-only and never transmitted.
Package paths provides the safe-path and containment primitives (PRD §6, §15) the orchestration core builds on: canonical absolute paths with symlinks resolved, segment-aware containment checks for worktree enforcement, and discovery of the repository root that holds .orchestrator/.
Package paths provides the safe-path and containment primitives (PRD §6, §15) the orchestration core builds on: canonical absolute paths with symlinks resolved, segment-aware containment checks for worktree enforcement, and discovery of the repository root that holds .orchestrator/.
Package question defines the native-question-tool compatibility contract (PRD §18, §24 — resolving the deferred "native question-tool compatibility handling" decision): a JSON document the Go core emits describing 1-4 mutually independent questions, and the AnswerSet an adapter submits back.
Package question defines the native-question-tool compatibility contract (PRD §18, §24 — resolving the deferred "native question-tool compatibility handling" decision): a JSON document the Go core emits describing 1-4 mutually independent questions, and the AnswerSet an adapter submits back.
Package routing is Orch's pure role-routing and escalation policy core (PRD §9 roles, §10 default profiles, §11 routing and escalation).
Package routing is Orch's pure role-routing and escalation policy core (PRD §9 roles, §10 default profiles, §11 routing and escalation).
This file holds the shared infrastructure for the per-issue Delivery lifecycle verbs (PRD §12 steps 8-22), each in its own file:
This file holds the shared infrastructure for the per-issue Delivery lifecycle verbs (PRD §12 steps 8-22), each in its own file:
Package state persists the Assist/Delivery operating mode (PRD §7) in .orchestrator/state.json, machine-local and gitignored.
Package state persists the Assist/Delivery operating mode (PRD §7) in .orchestrator/state.json, machine-local and gitignored.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL