---
created: 2026-09-07
status: proposed-not-applied
author-harness: codex
implementation-owner: claude-proposed
---

# Project plan: portable planning and accountable delivery

This is a proposed refactor for user review. No skill changes, GitLab issues, merges, or deployments are authorized by this document itself. All phases below constitute the intended finished refactor; they are dependency order, not deferred cleanup.

## Intended behavior

The user names an outcome and chooses one delivery owner, defaulting to Claude. Codex can investigate architecture, compare solutions, and prepare a project plan when useful. A separate planning contribution produces a versioned agreement that the delivery owner checks against the code before implementation. That owner carries the enhancement through implementation, verification, integration, and status updates. The same process permits Codex to own an entire enhancement.

The human controls product intent and material scope/constraint decisions. The delivery owner controls implementation details within that agreement. Review Board provides independent findings. A review opinion or artifact's existence alone cannot authorize work or establish completion.

## Phase 1 — Define the common process contract

Owner: Claude as proposed implementer, with this assessment as input. User settles desired defaults. Codex can review the contract.

Targets: `docs/process/process-overview.md`, existing phase documents, and the routing rules in `skills/cicd/`.

- Define delivery owner, design contributor, reviewer, and capability role separately; a capability role does not imply a separate agent or a particular vendor.
- Support one-harness delivery and a bounded design handoff with the same artifacts and completion semantics.
- Keep project and Unix-role access boundaries and canonical CLAUDE.md instructions.
- Make the existing complexity tiers affect the work actually performed, including reviews and artifacts. A small change can use one issue with a brief plan and verification evidence; consequential design work retains requirements, design, and plan artifacts.
- Reconcile router and standalone prerequisites. Read the authoritative requirements artifact explicitly when producing a solution. Separate artifact production, acceptance of decisions, board preparation, and delivered work; completion hooks must respect the applicable approval state and existing authorization.
- Define design-change handling: implementation details can change autonomously; new requirements or changes to accepted interfaces, access boundaries, data semantics, or material constraints return to the appropriate decision owner. Preserve standing user authorization.
- Resolve the contradiction between `createsolution` saying tests run only in CI and `qatests`/`phase-execute` requiring local checks. Preserve appropriate local feedback plus CI validation. Make build/deploy-stage prescriptions apply to deployable changes; a skill/documentation change needs relevant validation, not an invented Docker application.
- Preserve behavioral test traceability while allowing tests discovered during implementation, parameterization, and consolidation. Remove the requirement that every eventual test function be enumerated in advance.

Acceptance: one source defines ownership, start conditions, change rules, and completion; every phase skill references it without conflicting restatements.

## Phase 2 — Refactor planning and review skills

Depends on Phase 1. Primary targets: `createsolution`, `createplan`, `review-board`, `createreview`, and their references.

- Use truthful provenance: author harness/model when known, reviewer identity, source revision, and date. Replace hardcoded invoking-session `*-claude.md` naming with neutral author naming for new work; preserve historical filenames and their links.
- Keep a clear distinction between solution decisions and implementation steps. Retain the existing commands as focused entry points, while sharing common rules. Do not require two independent full-document generation pipelines for every change.
- Make `createplan` specify outcomes, affected components/interfaces, dependencies, risks, acceptance evidence, and implementation discretion. Capability labels are optional routing hints; remove mandatory assignment to a fixed five-agent roster and compulsory Gantt/workload sections where irrelevant.
- Make `review-board` the sole dispatch protocol. Callers reference its timeout, failure handling, read-only response contract, and attribution requirements.
- Distinguish discovery review (same neutral problem and constraints, independent options) from critique (a clearly identified candidate plus evaluation criteria). Preserve independent first responses; use follow-up only to resolve a concrete disagreement or material change.
- Record finding, source/evidence, severity, disposition, and rationale. Do not use provider priority or majority vote as a substitute for substantiation.
- Consolidate `createreview` into an entry point to the common review workflow. Remove its mandatory naming approval, obsolete external artifact locations, and automatic presentation publishing from the review path.

Acceptance: a Codex-run plan labels its author correctly; Claude can consume it without unsupported tool calls; all three board nodes receive unbiased discovery questions; no caller overrides the canonical 900-second dispatch limit; credible minority findings receive a disposition.

## Phase 3 — Make handoff and execution unambiguous

Depends on Phase 1; coordinate with Phase 2. Targets: plan structure, `executeplan`, `gitlab-board` and execution references, existing status/context skills.

Use a short section in the authoritative plan or issue, avoiding another competing status document:

| Field | Required information |
|---|---|
| Ownership | Delivery owner and design contributor, if different |
| Source | Repository, base commit, branch/worktree, relevant issue and artifact revision |
| Intent | Outcome, scope, exclusions, accepted decisions and rationale |
| Constraints | Interfaces/invariants, environment, access, and deployment rules |
| Work | Milestones and dependencies; parallelism only when independence is demonstrated |
| Evidence | Observable acceptance criteria and how to run the relevant checks |
| Uncertainty | Open questions, assumptions, blocked work, known baseline failures |
| Discretion | What the implementer may decide; which changes require reconsidering the agreement |
| Receipt | Implementer verified current source and recorded readiness or concrete mismatches |

- The implementer may correct a stale or infeasible plan before accepting it. Unresolved questions block only dependent work.
- Track current status on the existing GitLab work item; retain design/rationale in repo artifacts and link evidence from the item. Context summaries remain derived orientation aids.
- Make `executeplan` explicitly materialize work items; actual execution remains `gitlab-board`. Preserve existing command compatibility.
- Replace duplicated raw board-creation/deletion examples with the canonical `create_gitlab_board` tool and card standard.
- Separate read-only status from execution in command behavior and help. Existing status-named paths that process cards must be explicit.
- Record one active owner and worktree for each work item. Moving a label is not an atomic lock. For human-launched sessions, assign disjoint scopes explicitly; do not add a distributed scheduler or lease service without a demonstrated need.
- Preserve deployment through existing project CI. Completion requires appropriate test/behavior evidence and required integration/deployment state, not merely document generation or checked boxes.
- Follow repository publication policy for documents as well as code. Do not mandate direct-to-main pushes solely because an artifact is Markdown.

Acceptance: a fresh Claude session can start from the linked plan without the original chat; a stale revision is detected; two owners do not silently claim the same work; a failed acceptance check prevents a completion claim; status-only use does not execute work.

## Phase 4 — Make context and transport assumptions explicit

Depends on Phase 1. Targets in this repo: `validate-harness`, relevant lifecycle references, `agent-collaboration`, and applicable role-agent references. Material changes to mcp-code-executor or reviewboard belong to their own project context.

- Require an explicit capability/context preflight where a workflow changes harness: project instructions, required imports, source revision, required tools, and the authenticated Review Board route when review is needed.
- Report automatic loading separately from model-followed manual reads.
- Extend validation only for task-relevant integration checks; the existing validator passed despite the exposed session connector failing authentication.
- Remove stale scratchpad paths/identity assumptions from active workflow references. Keep historical documentation labeled historical.
- Document manual context-save behavior at handoff/completion for harnesses without verified hook support; do not assume symlinked skills port hooks or agents.
- Record the connector authentication discrepancy from this review as an integration finding with its successful canonical-wrapper control. Diagnose in the owning project if a durable connector fix is requested; do not restart healthy review services.

Acceptance: Claude and Codex can state which context was loaded and which tools were actually exercised; a missing credential is attributed to the correct layer; no workflow depends silently on a Claude-only hook.

## Phase 5 — Validate and integrate the complete refactor

Depends on Phases 2–4. Implement in an isolated branch/worktree so experimental skill instructions do not replace the canonical live symlink targets prematurely. Review and integrate through the repository's normal contribution process.

Exercise at least these scenarios:

1. Small Claude-owned bug fix with no substantive architecture decision.
2. Codex design/plan handed to a fresh Claude implementation context.
3. A Codex-owned enhancement through completion.
4. An implementation discovery requiring a design amendment.
5. Two independent enhancements in the same repo using isolated worktrees.
6. A review node timeout, missing integration credential, and a stale source revision.

Use read-only/dry-run fixtures for state-transition cases; use existing meaningful behavioral checks for real implementation work. Validate skill YAML, references, and harness discovery. If scripts or behavior change, add targeted tests for the real failure cases; documentation edits do not justify implementation-mirroring tests.

Acceptance: all relevant scenario checks pass, no provenance errors, no duplicate ownership, no skipped acceptance evidence, no reliance on unavailable native tools, and existing cards/artifact links remain usable. Update canonical process documentation and user-facing command guidance together.

## Evaluate workflow quality

Compare the current process with the refactored whole-owner and design-handoff paths using comparable task classes and recorded starting revisions. A small sample is operational evidence, not a general model ranking.

First evaluate corrected process contracts with ownership held constant, then compare routing modes under those same contracts. This separates the benefit of process cleanup from the effect of switching harnesses. Include developer-role access and instruction coverage where those users will exercise the workflow.

Record active human coordination time, elapsed completion time, handoff questions/rework, design changes discovered during implementation, actionable review findings, defects discovered after acceptance, and quota/cost where actually available. Separate provider-reported usage from estimated monetary cost.

The handoff earns its place if it improves design/outcome quality or reduces human design effort enough to justify its context-transfer overhead, without increasing escaped defects or unresolved ownership. If it does not, use whole-enhancement ownership for that task class. Agree on numeric success thresholds before evaluating; no existing latency or defect baseline was available in this assessment.

## Rollback and scope

Retain existing command aliases, artifact links, role repositories, CLAUDE.md authority, GitLab card conventions, and the heterogeneous Review Board. Roll back integrated skill changes by reverting the refactor commit(s), preserving created project artifacts and execution evidence. This plan creates no new orchestration service, messaging transport, or infrastructure resource.
