Work plan

Compile a bounded objective or code-intake change set into a dependency-safe Runx execution plan, with deterministic checks for evidence preservation, mutation boundaries, catalog references, and skill-package ownership. Use before multi-step or cross-surface work; this skill plans but does not execute.

You’re reading version 0.2.13. Go to the current version

Overview

Turn one objective into a plan that downstream runners can consume without reinterpreting the source request.

In the manual

Runner

  • code-plan-agent

Declared by its execution profile. Read the profile

SKILL.md

Code Plan

Turn one objective into a plan that downstream runners can consume without reinterpreting the source request.

Procedure

  1. Start from objective. When change_set is supplied by code-intake, preserve it exactly; do not rewrite its target surfaces, invariants, success criteria, or commencement decision.
  2. Classify the plan as workspace_change or skill_package. Skill-package authoring belongs to skill-build; do not route it through a generic repo-change step.
  3. Split work at authority, mutation, dependency, and review boundaries. Keep steps coarse enough to produce a meaningful artifact.
  4. Declare ordered phases and repo change requests. Parallel work must have no dependency or shared mutation target.
  5. Declare orchestration steps with exact skill references, scopes, mutation flags, inputs, and prior-step context references.
  6. Return blocked when a question must be answered before mutation. Never turn uncertainty into an executable plan.
  7. Native catalog inspection supplies the actual installed skill set. The domain validator then verifies source preservation, ordered DAGs, mutation declarations, context references, catalog ownership, and the skill-build boundary. Invalid candidates are withheld and returned as a blocked packet.

This skill does not approve or execute mutations. A mutating: true field describes authority a future step will need.

Output

yaml
decision: ready | blocked
plan_kind: workspace_change | skill_package
change_set: object
objective_summary: string
workspace_change_plan: object
orchestration_steps: array
required_skills: array
open_questions: array
evidence: object
validation:
  status: pass | hold
  findings: array

workspace_change_plan contains plan_id, change_set_id, objective_summary, shared invariants, success criteria, ordered phases, integration checks, and open questions. Each phase contains ordered repo change requests with dependencies, validation commands, and mutation declarations.

evidence.source_change_set_status is preserved, drifted, or not_supplied; source_change_set_preserved: false is never a successful preservation claim. When a caller supplies source context, drift or loss blocks the plan.

Inputs are objective, optional project_context, thread_locator, thread, change_set, and harness_context. harness_context is passed through from the caller; the agent does not reconstruct or advance it.

Agent task contracts

code-plan-draft

Return work_plan_draft with decision, plan_kind, change_set, objective_summary, workspace_change_plan, orchestration_steps, required_skills, and open_questions. Preserve a supplied change_set exactly. Split at authority, mutation, dependency, and review boundaries; do not split for cognitive convenience. Every phase, repo request, and orchestration step needs an id, ordered dependencies, and an explicit mutation flag. A ready plan has no blocking open questions. Use plan_kind skill_package for Runx skill authoring and route that work through skill-build. This runner plans only and never claims downstream execution.

Published execution profile

The execution profile published with 0.2.13, shown as its exact bytes.

Runner
  • code-plan-agent
Profile digestsha256:f2d31956401f87fbb6b2480bdbe372c06f6a78971ea83c3d2d712186d39d3e63
skill: code-plan
version: "0.2.13"
catalog:
  kind: graph
  audience: builder
  visibility: public
  category: ops
  role: context
  execution: plan
  completion: plan
  approval: none
harness:
  files:
    - fixtures/workspace/skills/github-issue-to-pr/SKILL.md
    - fixtures/workspace/skills/github-issue-to-pr/run.yaml
    - fixtures/support/composed.graph
  cases:
    - name: code-plan-ready-from-issue-intake
      operator_journeys:
        - mode: standalone
          confusors: [code-intake, prior-art]
          request: Turn this bounded issue intake into a dependency-safe Runx work plan.
          expected_outcome: Return a validated execution plan with evidence preservation, mutation boundaries, and explicit owners.
        - mode: composed
          request: Continue planning from this completed code-intake artifact.
          expected_outcome: Reuse the intake change set and evidence without re-triaging the issue or rediscovering its target.
          prior_evidence:
            - The typed code-intake artifact and bounded change set supplied in the fixture.
          must_not_repeat:
            - Do not repeat issue intake or triage.
            - Do not reacquire target evidence already carried by the intake packet.
      inputs:
        objective: Roll out abandoned cart recovery across api and app.
        project_context: Example product workspace
        repo_root: fixtures/workspace
        change_set:
          change_set_id: change_set_abandoned_cart_982
          thread_locator: support://request/982
          summary: Add abandoned cart recovery across api and app.
          category: feature_request
          severity: medium
          recommended_lane: code-plan
          commence_decision: approve
          action_decision: proceed_to_plan
          target_surfaces:
            - surface: api
              kind: repo
              mutating: true
              rationale: Backend event handling changes first.
            - surface: app
              kind: repo
              mutating: true
              rationale: The app consumes the frozen backend contract.
          shared_invariants:
            - Preserve current checkout event semantics.
          success_criteria:
            - Api and app agree on the abandoned-cart contract.
      caller:
        answers:
          draft:
            work_plan_draft:
              decision: ready
              plan_kind: workspace_change
              change_set:
                change_set_id: change_set_abandoned_cart_982
                thread_locator: support://request/982
                summary: Add abandoned cart recovery across api and app.
                category: feature_request
                severity: medium
                recommended_lane: code-plan
                commence_decision: approve
                action_decision: proceed_to_plan
                target_surfaces:
                  - surface: api
                    kind: repo
                    mutating: true
                    rationale: Backend event handling changes first.
                  - surface: app
                    kind: repo
                    mutating: true
                    rationale: The app consumes the frozen backend contract.
                shared_invariants:
                  - Preserve current checkout event semantics.
                success_criteria:
                  - Api and app agree on the abandoned-cart contract.
              objective_summary: Roll out abandoned cart recovery across api and app.
              workspace_change_plan:
                plan_id: plan_abandoned_cart_982
                change_set_id: change_set_abandoned_cart_982
                objective_summary: Roll out abandoned cart recovery across api and app.
                shared_invariants:
                  - Preserve current checkout event semantics.
                success_criteria:
                  - Api and app agree on the abandoned-cart contract.
                phases:
                  - id: freeze-api-contract
                    name: Freeze api contract
                    depends_on: []
                    parallelizable: false
                    repo_change_requests:
                      - id: implement-api
                        repo: api
                        task_id: abandoned-cart-api
                        objective: Implement and publish the backend contract.
                        depends_on: []
                        shared_context_paths:
                          - change_set.shared_invariants
                        validation_commands:
                          - bundle exec rspec spec/services/abandoned_cart_spec.rb
                        mutating: true
                  - id: update-consumer
                    name: Update app consumer
                    depends_on:
                      - freeze-api-contract
                    parallelizable: false
                    repo_change_requests:
                      - id: implement-app
                        repo: app
                        task_id: abandoned-cart-app
                        objective: Update the app against the frozen contract.
                        depends_on:
                          - implement-api
                        shared_context_paths:
                          - freeze-api-contract
                        validation_commands:
                          - npm test
                        mutating: true
                integration_checks:
                  - Api and app contract fixtures agree.
                open_questions: []
              orchestration_steps:
                - id: implement-api
                  skill: ../github-issue-to-pr
                  scopes:
                    - git.write
                  mutating: true
                  inputs:
                    target_repo: api
                  context_from:
                    - change_set
                  description: Implement and verify the backend contract.
                - id: implement-app
                  skill: ../github-issue-to-pr
                  scopes:
                    - git.write
                  mutating: true
                  inputs:
                    target_repo: app
                  context_from:
                    - implement-api.pull_request
                  description: Update the app after the backend contract is frozen.
              required_skills:
                - name: github-issue-to-pr
                  exists: true
              open_questions: []
      expect:
        status: sealed
        steps:
          - inspect
          - draft
          - validate
        step_outputs:
          validate:
            subset:
              decision: ready
              plan_kind: workspace_change
              change_set:
                change_set_id: change_set_abandoned_cart_982
              validation:
                status: pass
                findings: []
              evidence:
                source_change_set_preserved: true
                catalog_skills:
                  - github-issue-to-pr
        receipt:
          schema: runx.receipt.v1
    - name: code-plan-invalid-phase-holds
      inputs:
        objective: Plan a bounded docs update.
      caller:
        answers:
          draft:
            work_plan_draft:
              decision: ready
              plan_kind: workspace_change
              change_set:
                change_set_id: change_set_docs
                thread_locator: objective://docs
                summary: Plan a bounded docs update.
                category: docs
                severity: low
                recommended_lane: code-plan
                commence_decision: approve
                action_decision: proceed_to_plan
                target_surfaces: []
                shared_invariants: []
                success_criteria:
                  - Documentation is updated.
              objective_summary: Plan a bounded docs update.
              workspace_change_plan:
                plan_id: plan_docs
                change_set_id: change_set_docs
                objective_summary: Plan a bounded docs update.
                shared_invariants: []
                success_criteria:
                  - Documentation is updated.
                phases:
                  - id: update-docs
                    name: Update docs
                    depends_on:
                      - missing-phase
                    parallelizable: false
                    repo_change_requests: []
                integration_checks:
                  - Documentation build passes.
                open_questions: []
              orchestration_steps: []
              required_skills: []
              open_questions: []
      expect:
        status: sealed
        step_outputs:
          validate:
            subset:
              decision: blocked
              workspace_change_plan: {}
              orchestration_steps: []
              validation:
                status: hold
                findings:
                  - code: phase.unknown_dependency
                    path: workspace_change_plan.phases[0].depends_on[0]
    - name: code-plan-skill-package-requires-skill-build
      inputs:
        objective: Add a new Runx operator skill.
        repo_root: fixtures/workspace
      caller:
        answers:
          draft:
            work_plan_draft:
              decision: ready
              plan_kind: skill_package
              change_set:
                change_set_id: change_set_new_skill
                thread_locator: objective://new-skill
                summary: Add a new Runx operator skill.
                category: feature_request
                severity: medium
                recommended_lane: code-plan
                commence_decision: approve
                action_decision: proceed_to_plan
                target_surfaces:
                  - surface: skills/new-skill
                    kind: package
                    mutating: true
                    rationale: A skill package must be authored.
                shared_invariants:
                  - Use the canonical Runx authoring lane.
                success_criteria:
                  - The skill has focused harness proof.
              objective_summary: Add a new Runx operator skill.
              workspace_change_plan:
                plan_id: plan_new_skill
                change_set_id: change_set_new_skill
                objective_summary: Add a new Runx operator skill.
                shared_invariants:
                  - Use the canonical Runx authoring lane.
                success_criteria:
                  - The skill has focused harness proof.
                phases:
                  - id: author-skill
                    name: Author skill
                    depends_on: []
                    parallelizable: false
                    repo_change_requests: []
                integration_checks:
                  - Focused harness passes.
                open_questions: []
              orchestration_steps:
                - id: generic-repo-change
                  skill: ../github-issue-to-pr
                  scopes:
                    - git.write
                  mutating: true
                  inputs: {}
                  context_from:
                    - change_set
                  description: Use a generic repo lane to author the skill.
              required_skills:
                - name: github-issue-to-pr
                  exists: true
              open_questions: []
      expect:
        status: sealed
        step_outputs:
          validate:
            subset:
              decision: blocked
              validation:
                status: hold
                findings:
                  - code: skill_package.skill_build_required
                    path: orchestration_steps
runners:
  code-plan-agent:
    default: true
    inputs:
      objective:
        type: string
        required: true
        description: Build or automation objective to decompose.
      project_context:
        type: string
        required: false
        description: Repository, product, and operator constraints.
      thread_locator:
        type: string
        required: false
        description: Canonical locator for the bounded source thread.
      thread:
        type: object
        required: false
        description: Portable source thread when the objective came from an existing conversation.
        schema:
          additionalProperties: true
      change_set:
        type: object
        required: false
        description: Parent change artifact from code-intake or a workspace supervisor.
        schema:
          required: [change_set_id, shared_invariants, success_criteria]
          properties:
            change_set_id: { type: string, minLength: 1, maxLength: 256 }
            action_decision: { type: string, enum: [proceed_to_plan, needs_clarification, hold] }
            commence_decision: { type: string, enum: [approve, hold] }
            thread_locator: { type: string, minLength: 1, maxLength: 2048 }
            shared_invariants:
              type: array
              maxItems: 100
              items: { type: string, minLength: 1, maxLength: 4000 }
            success_criteria:
              type: array
              maxItems: 100
              items: { type: string, minLength: 1, maxLength: 4000 }
          additionalProperties: true
      harness_context:
        type: object
        required: false
        description: Optional captured control context to pass through unchanged.
        schema:
          additionalProperties: true
      repo_root:
        type: string
        required: false
        default: .
        description: Workspace root used for native skill-catalog inspection.
    result_from: [validate]
    steps:
      - id: inspect
        label: inspect the local skill catalog
        tool: runx.skill.inspect
        scopes:
          - fs.read
        inputs:
          repo_root: $input.repo_root
      - id: draft
        label: decompose objective at governance boundaries
        agent: { role: builder, task: code-plan-draft }
        outputs:
          work_plan_draft: object
        inputs:
          objective: $input.objective
          project_context: $input.project_context
          thread_locator: $input.thread_locator
          thread: $input.thread
          change_set: $input.change_set
          catalog_skills: $steps.inspect.authoring_context.catalog_skills
          harness_context: $input.harness_context
          repo_root: $input.repo_root
        artifacts:
          named_emits:
            work_plan_draft: work_plan_draft
      - id: validate
        label: validate plan graph and evidence bindings
        inputs:
          objective: $input.objective
          thread_locator: $input.thread_locator
          thread: $input.thread
          project_context: $input.project_context
          change_set: $input.change_set
          harness_context: $input.harness_context
          work_plan_draft: $steps.draft.work_plan_draft
          catalog_skills: $steps.inspect.authoring_context.catalog_skills
        tool: { module: code-plan.mjs }
        outputs:
          decision: string
          plan_kind: string
          change_set: object
          harness_context: object
          objective_summary: string
          workspace_change_plan: object
          orchestration_steps: array
          required_skills: array
          open_questions: array
          evidence: object
          validation: object
        artifacts:
          wrap_as: work_plan
          packet: runx/code-plan.work_plan.v1

Published package and test evidence.

This exact version passed its recorded harness run: 5 checks passed · 0 failed.

Test result

Harness resultPassed
Tested version0.2.13
Recorded result5 checks passed · 0 failed
Result sourceRun by the Runx registry at publication
Suiterunx-harness
Test recorded
Declared cases3
Test recordOpen the recorded run
Inspect receipt referencessha256:ee8535d28268dd68a31c81af5f05f06f6181b898e3f24846356858f91ac258bdsha256:4463452c525947c902e9fd7deaa1dbcd31b35bf120c1e06cc4fa4878b3bab662sha256:8397957c78605ef9cdd2bf14cd55b6809e7a8fca2cefe1f1cb225c92f91661f8sha256:36545dabe55d739e638ec64abeca9cfd5de5ce5c731befa73c29ea85819c1b57sha256:1f38cb56f783c8ec9d54ad27807aa5039de712c39686872150c6759baa967167

Package identity

Published revision0.2.13
Content digestsha256:139de8a5700852b5ab046bc2571155c8a920071bf7a4b2bc6f9a095bc556889a
SKILL.md digestsha256:ee299bf071b527c57b5427c687adb23d28f24f5ba6ed1a43ba9a22c356095b22
Execution profile digestsha256:f2d31956401f87fbb6b2480bdbe372c06f6a78971ea83c3d2d712186d39d3e63
Publisher identityVerified publisher · runx
Trust tierVerified publisherRunx has verified this publisher. This tier is not a code assessment.
Attestations
  • Publisher · Verifiedrunx · 25 Oct 2026
Source provenanceNot published with this version

Version history

  1. 0.2.13ViewingContent digest sha256:139de8a5700852b5ab046bc2571155c8a920071bf7a4b2bc6f9a095bc556889a
  2. sha-e7774d83e2c4Content digest sha256:e7774d83e2c48983096c1ae8898b53640156774119213a4d6b350d25533be281