Context: Orchestration

Terms describing lifecycle and runtime orchestration semantics.

Repository

Definition The local git repository that a Project is initialized from and executes within.
Context Orchestration
Status canonical
Applicable to 3.x
Note Use this term when the repository boundary itself matters, especially for repository-scoped identity and sync semantics.
Related terms Project, Build

Project

Definition Entire repository initialized for Spec Kitty workflow execution.
Context Orchestration
Status canonical
Applicable to 1.x, 2.x

Mission Type

Definition Reusable workflow blueprint that configures mission actions, templates, and guardrails.
Context Orchestration
Status canonical
Applicable to 1.x, 2.x

Build

Definition One checkout or worktree execution context inside a Repository, identified by machine and build-scoped runtime identity.
Context Orchestration
Status canonical
Applicable to 3.x
Note Use this term when distinguishing per-worktree or per-machine runtime context from the repository boundary itself.
Related terms Repository, Mission Run

Mission

Definition Concrete tracked item stored under kitty-specs/<mission-slug>/ and linked to exactly one Mission Type.
Context Orchestration
Status canonical
Applicable to 1.x, 2.x
Note This is the generic tracked-item noun across software, research, planning, and documentation work.

Mission Run

Definition Runtime collaboration/execution container for one mission session.
Context Orchestration
Status canonical
Applicable to 1.x, 2.x
Scoping rule Runtime events should be scoped by mission_run_id as primary identity where available

Feature

Definition Compatibility alias for a Mission whose mission type is software-dev.
Context Orchestration
Status canonical (compatibility)
Applicable to 1.x, 2.x
Note Allowed on legacy software-delivery surfaces, but not a co-equal canonical architecture noun.

Work Package

Definition Executable slice of work inside a mission plan, typically represented as WPxx tasks.
Context Orchestration
Status canonical
Applicable to 1.x, 2.x

Mission Action

Definition Outer lifecycle action for a mission, such as specify, plan, implement, review, or accept.
Context Orchestration
Status canonical
Applicable to 1.x, 2.x
Related terms Mission Type, Step Contract, Procedure

Step Contract

Definition Structured contract for one mission action, including step sequencing, guard evaluation, prompt binding, and delegation hooks.
Context Orchestration
Status canonical
Applicable to 1.x, 2.x
Related terms Mission Action, Mission-Runtime YAML, Procedure

Workflow

Definition Umbrella prose term for the overall flow of work.
Context Orchestration
Status canonical (generic prose only)
Applicable to 1.x, 2.x
Rule Use Mission Type, Mission Action, Step Contract, or Procedure when precision matters.

WorkPackage (Alias)

Definition Legacy lexical variant of Work Package.
Context Orchestration
Status canonical
Applicable to 1.x, 2.x
Canonical entry Work Package

Lane

Definition Work package state position in the canonical lifecycle FSM. Canonical lanes: planned, claimed, in_progress, for_review, done, blocked, canceled. Alias: doing -> in_progress.
Context Orchestration
Status canonical
Applicable to 1.x, 2.x

Mission-Runtime YAML

Definition Configuration file (mission-runtime.yaml) that defines a mission type's step graph, action ordering, dependencies, and prompt-template bindings.
Context Orchestration
Status canonical
Applicable to 1.x, 2.x
Related terms Mission Type, Step Dependency, Step Contract, Command Template

Step Dependency

Definition A declared relationship saying "this step cannot start until that step finishes." Defined in mission-runtime YAML to enforce ordering.
Context Orchestration
Status canonical
Applicable to 1.x, 2.x
Related terms Mission-Runtime YAML, Step Sequence

Step Sequence

Definition The order in which mission steps execute, determined by the step list and dependency graph in mission-runtime YAML.
Context Orchestration
Status canonical
Applicable to 1.x, 2.x
Related terms Step Dependency, Mission-Runtime YAML

Command Template

Definition A markdown file that provides the prompt for a specific mission action. Located in the mission type's template directory and loaded at runtime based on mission type and agent configuration.
Context Orchestration
Status canonical
Applicable to 1.x, 2.x
Related terms Template Resolution, Mission-Runtime YAML

Template Resolution

Definition The process of finding and loading the correct command template for a given mission action, considering which mission type is active and which agent is running.
Context Orchestration
Status canonical
Applicable to 1.x, 2.x
Related terms Command Template

Mission Discovery

Definition How the runtime finds and loads mission-type definition files (mission.yaml, mission-runtime.yaml) from configured mission-pack roots at startup.
Context Orchestration
Status canonical
Applicable to 1.x, 2.x
Related terms Mission Type, Mission-Runtime YAML

Command Envelope

Definition Standard JSON wrapper used to send commands to the orchestrator API. Contains identity fields, a version number, and the command payload.
Context Orchestration
Status canonical
Applicable to 1.x, 2.x
Related terms Orchestrator API, Contract Version, JSON

Contract Version

Definition Version number on the orchestrator API that tells consumers whether the API has changed in a breaking way.
Context Orchestration
Status canonical
Applicable to 1.x, 2.x
Related terms Orchestrator API, Command Envelope

Orchestrator API

Definition JSON-based interface that lets external orchestration tools interact with spec-kitty CLI operations programmatically, without going through the human-facing CLI.
Context Orchestration
Status canonical
Applicable to 1.x, 2.x
Related terms Command Envelope, API

Decision

Definition A structured choice presented to the Human-in-Charge (HiC) or their delegated agent during the next-command loop. Each decision describes what needs to happen next and offers options to advance the mission. In event-backed runtimes, a pending Decision is tracked until answered, then closed.
Context Orchestration
Status canonical
Applicable to 1.x, 2.x, 3.x
Lifecycle In event-backed runtimes, opened by Decision Input Request; closed by Decision Input Answer.
SaaS projection Materialised as a DecisionInboxItem (pending → answered) in the TeamSpace.
Not to be confused with SaaS Decision (an immutable recorded past collaboration choice); SaaS DecisionPoint (a first-class team-consultation entity that can be widened, deferred, or resolved independently of the loop). See the SaaS domain glossary at architecture/domain-glossary.md.
Related terms Decision Kind, Decision Input Request, Decision Input Answer, Human-in-Charge (HiC)

Decision Kind

Definition The type of choice being presented — for example, selecting which step to run next, resolving a conflict, or assigning a work package to an agent. In the spec-kitty next --json contract this is carried as the top-level kind field; DecisionInputRequested events are emitted only for decision_required choices and do not repeat that field.
Context Orchestration
Status canonical
Applicable to 1.x, 2.x, 3.x
Related terms Decision, Decision Input Request

Decision Input Request

Definition The event emitted by the runtime when it opens a Decision and requires a response from the HiC or a delegated agent. Carries the question text, candidate options, step context, and a unique decision_id. Opening a Decision Input Request is what makes a Decision "pending".
Context Orchestration
Status canonical
Applicable to 2.x, 3.x
Event type DecisionInputRequested (in spec-kitty-events)
SaaS effect Creates a DecisionInboxItem row with state=pending.
Related terms Decision, Decision Input Answer, Mission Run

Decision Input Answer

Definition The event emitted when the HiC or a delegated agent answers a pending Decision. Carries the chosen answer, the actor identity, and the originating decision_id. Answering closes the Decision; the loop continues.
Context Orchestration
Status canonical
Applicable to 2.x, 3.x
Event type DecisionInputAnswered (in spec-kitty-events)
SaaS effect Updates the matching DecisionInboxItem to state=answered.
Related terms Decision, Decision Input Request

Runtime Bridge

Definition The adapter that connects the CLI's decision loop to the mission execution engine. It translates internal runtime decisions into the format the HiC or agent sees while keeping mission identity separate from mission-run identity.
Context Orchestration
Status canonical
Applicable to 1.x, 2.x
Related terms Decision, Human-in-Charge (HiC)

Mission State Derivation

Definition The process of figuring out where a mission currently stands by reading filesystem artifacts and event logs, so the system can determine what mission actions are available next.
Context Orchestration
Status canonical
Applicable to 1.x, 2.x
Related terms Mission Run, Decision

Base Branch

Definition Overloaded key with two distinct scopes. (1) At the mission level (branch-context JSON output): alias for target_branch — the branch the mission is rooted in; base_branch and target_branch carry the same value in branch-context output. (2) At the worktree/WP level (WP prompt frontmatter): the specific git branch from which the individual lane worktree was created; this may be a lane branch (e.g. kitty/mission-010-feature-lane-a) rather than the target branch itself. JSON key: base_branch.
Context Orchestration
Status canonical
Applicable to 3.x
Related terms Target Branch, Planning Base Branch, Lane

Branch Strategy Gate

Definition The mission-create guard for PR-bound missions that requires an explicit operator or agent decision before planning artifacts are written on a primary branch. Interactive callers may confirm at the prompt; non-interactive callers record the already-made decision with --branch-strategy already-confirmed. When the recommended feature-branch path is chosen, pass --start-branch so the CLI switches before scaffold writes.
Context Orchestration
Status canonical
Applicable to 3.x
Related terms PR-Bound Mission, Primary Branch, Feature Branch, Start Branch

Current Branch

Definition The git branch checked out in the main repository at the moment a workflow command is invoked. Read ephemerally from the working tree; never persisted in any mission artifact. Exposed as current_branch / CURRENT_BRANCH in branch-context JSON output. Since WP07 (FR-012), spec-kitty does not use current_branch to derive the mission target — it reads target_branch from meta.json instead, so the branch contract is stable regardless of which branch the operator is on.
Context Orchestration
Status canonical
Applicable to 3.x
Related terms Target Branch, Base Branch

Feature Branch

Definition A dedicated git branch for PR-bound mission planning and implementation work, typically named feat/<slug> for feature work or fix/<slug> for bug-fix work. It is distinct from the primary branch and is the recommended start point when a mission is expected to become a pull request.
Context Orchestration
Status canonical
Applicable to 3.x
Related terms PR-Bound Mission, Primary Branch, Start Branch, Target Branch

Merge Target Branch

Definition The branch where completed work-package code must ultimately land. Stored in every WP prompt's frontmatter (alongside planning_base_branch) to give implementing agents an explicit merge destination. In meta.json: legacy alias for target_branch, read as a fallback by resolve_planning_branch_from_meta() for pre-WP03 missions. In 3.x all three — target_branch, planning_base_branch, and merge_target_branch — carry the same value; the separation makes intent explicit in agent-facing prompts and prevents the "prep branch leak" (pre-WP07 pattern). JSON key: merge_target_branch.
Context Orchestration
Status canonical
Applicable to 3.x
Related terms Target Branch, Planning Base Branch, Work Package

Planning Base Branch

Definition The branch active in the repository root checkout when WP prompts were generated (at finalize-tasks time). Stored in every WP prompt's frontmatter and in lanes.json to root lane-worktree allocation correctly regardless of which branch the operator is on when running finalize-tasks. In 3.x equals target_branch. Introduced alongside merge_target_branch to close the "prep branch leak" bug (pre-WP07): when finalize-tasks ran from a temporary prep/... branch, that branch leaked into WP frontmatter and crashed lane allocation once the prep branch was deleted. JSON key: planning_base_branch.
Context Orchestration
Status canonical
Applicable to 3.x
Related terms Target Branch, Merge Target Branch, Lane, Work Package

Primary Branch

Definition The repository's default integration branch, normally resolved from origin/HEAD and commonly named main, master, or develop. The specify branch-context output exposes this value as primary_branch only for branch-strategy recommendation; it is not automatically the mission's target_branch once target_branch has been persisted in meta.json.
Context Orchestration
Status canonical
Applicable to 3.x
Related terms Current Branch, Target Branch, Feature Branch, Branch Strategy Gate

PR-Bound Mission

Definition A mission expected to land through a pull request rather than direct work on the primary branch. During mission create, --pr-bound activates the branch strategy gate so the branch choice is explicit before planning artifacts are written.
Context Orchestration
Status canonical
Applicable to 3.x
Related terms Branch Strategy Gate, Feature Branch, Primary Branch

Start Branch

Definition The branch passed to mission create with --start-branch. The CLI creates or switches to this branch before writing mission scaffolding, and it must match --target-branch when both options are supplied so mission metadata and the checked-out branch describe the same planning branch.
Context Orchestration
Status canonical
Applicable to 3.x
Related terms Feature Branch, Target Branch, Branch Strategy Gate

Target Branch

Definition The git branch on which a mission's code, planning artifacts, and status events must ultimately land. Persisted in meta.json under the key target_branch at mission create time and never overwritten. Read by resolve_planning_branch_from_meta() as the canonical key; merge_target_branch is its legacy alias in older meta.json fixtures. Since WP07 (FR-012), all downstream commands — finalize-tasks, implement, review, merge — derive the branch contract from this stored value, not from current_branch at invocation time. In branch-context JSON output, target_branch and base_branch carry the same value at the mission level.
Context Orchestration
Status canonical
Applicable to 2.x, 3.x
Related terms Base Branch, Planning Base Branch, Merge Target Branch, Current Branch, Mission

Tracker Connector

Definition Outbound integration boundary that projects host lifecycle state to external tracker systems without transferring lifecycle authority.
Context Orchestration
Status canonical
Applicable to 1.x, 2.x
Related terms Target Branch, Orchestrator API, WPStatusChanged

Tracker Connector Boundary (Alias)

Definition Architecture-facing alias for Tracker Connector.
Context Orchestration
Status canonical
Applicable to 1.x, 2.x
Canonical entry Tracker Connector