Skip to content

One reasoning interface, one controlled implementation workflow

README · Architecture · CLI quickstart · Task handoff template

Use ChatGPT as the reasoning forefront and keep coding agents in the execution role. Normal ChatGPT is the default surface for reading, architecture, diagnosis, scope, acceptance criteria and review. ActualCoder or the optional Bridge Preview turns that approved intent into a controlled handoff for codex-cli, copilot-cli, or codex-desktop. The localhost Assistant is not required.

Where each action belongs

Surface Role Required?
Normal ChatGPT conversation Read code through the selected connection, diagnose, define scope, review results Default reasoning interface
Read-only GitLab MCP + tunnel Repository/MR/CI inspection only Needed only for the ChatGPT read-connection path
Terminal: ActualCoder Prepare/manage worktrees, select/launch workers, validate and publish through reviewed finish Execution engine for approved implementation
Bridge Preview MCP Optional local orchestration: App Server control, approvals, managed SSH workspaces, finish preview Optional and more privileged than the read connector
Coding worker codex-cli, copilot-cli, or codex-desktop executes the approved implementation Required when a task is actually implemented
GitLab MR/CI UI Inspect repository evidence and make the human merge decision Used when reviewing/publishing changes
Local dashboard Overview/Logs Diagnose the tunnel Optional
Local dashboard Assistant (/ui#codex) A separate upstream Codex interface Not required; not an acceptance gate
Codex tunnel plugin or MCP Inspector Separate integration/debugging tools Optional; neither is needed for the standard ChatGPT read test

Not using the localhost Assistant does not mean uninstalling Codex: its CLI can still be the implementation worker. Closing the dashboard does not stop the tunnel. It also does not necessarily disable the upstream client's bundled background helper. This documentation does not change or claim to disable that helper.

One primary loop, several supporting surfaces

Normal ChatGPT
  -> inspect repository / MR / CI
  -> reason about architecture and root cause
  -> define goal, non-goals and acceptance criteria
  -> TaskSpec
  -> ReasonFirst control
  -> codex-cli / copilot-cli / codex-desktop
  -> controlled implementation and validation
  -> diff / EvidencePack / MR / matching-HEAD CI
  -> Normal ChatGPT + human review
  -> continue, revise, or merge

The interfaces below support different parts of that same loop; they are not three peer product modes. The read-only GitLab MCP supplies evidence to ChatGPT. ActualCoder is the normal execution engine for approved work. Bridge Preview is an optional, more privileged orchestration surface for App Server control, explicit approvals, named SSH workspaces and finish preview.

ActualCoder can also be driven directly from a terminal, CI repair job, IDE or another client. Keep that capability for testing, recovery and automation, but treat it as a secondary operational surface rather than the defining ReasonFirst workflow.

Bridge SSH targets are user-configured names, not caller-supplied arbitrary hosts. Remote build/test execution is available only through a configured structured container-validation policy; arbitrary remote shell execution is not exposed.

Daily task loop

1. Read and decide in normal ChatGPT

Select the intended GitLab connection in the conversation. Ask it to inspect actual files and distinguish observations from proposals. Agree on the goal, non-goals, affected components, acceptance criteria, and stop conditions. Do not include tokens, private configuration files, or credential-bearing reference notes in the task.

Use the manual template to capture the approved requirements. A task-specific backend change is not permission to change its goal or broaden its scope.

2. Prepare and implement in Terminal

For a genuinely approved new task, from the source checkout, replace the illustrative project and goal:

uv run actual-coder start team/project-a --task fix-timeout --goal "Fix the timeout bug; preserve the API and add regression coverage" --no-launch

This fetches context and creates a worktree; it is not an offline/no-write preview. Review the returned workspace ID, path, branch, and handoff, then use its returned backend launch command/prompt. Do not call start again just to continue that workspace. A new task can omit --no-launch to launch interactively. Worker login and quota are checked through the worker's own supported flow, not inferred from an installed executable.

3. Validate and review before publication

Set WS to the real returned ID; the value below is illustrative:

WS="012345abcdef"
uv run actual-coder status "$WS"
uv run actual-coder finish "$WS" --message "fix: handle timeout and add regression coverage" --dry-run

Inspect the diff, validation results, secret coverage, protected paths, and target MR/branch. Finish dry-run runs configured validation commands and can change local files; it does not commit or push. No .actualcoder.yaml means no project-specific validations were loaded. Define actual project tests before calling this a test gate.

Only after an unblocked, intentional review:

uv run actual-coder finish "$WS" --message "fix: handle timeout and add regression coverage"
uv run actual-coder ci "$WS"

Finish asks for confirmation. Inspect worker proposals: low-level commit/push commands, including those still mentioned by some generated prompts, do not enforce all finish checks. Do not treat instructions in this guide as OS-level enforcement. See security boundaries.

4. Return evidence, not just an agent's success claim

Record base and HEAD, pending changes, exact validation commands/outcomes, MR link, and CI SHA/coverage. A successful docs-only pipeline is not a full build; a historical matching pipeline is not evidence of a new push. Uncommitted changes are not covered by HEAD CI.

For a genuine matching-head CI failure, resume --from-ci prepares a repair handoff. Use resume --launch or actual-coder continue only when you intentionally want the selected backend launched for that existing workspace. Do not invent changes when CI is already successful. Human review and merge remain separate operations.

Validation output and cleanup evidence

Unreleased source behavior; not included in the published v0.5.3 wheel. No worker-selection, command allowlist, Python binding, environment filtering, publication approval, or running-service configuration is changed by this fix. The local run, validate, and finish-validation paths share CommandRunner. Remote validation and worker/probe/Git subprocess implementations are separate.

GITLAB_COMMAND_MAX_OUTPUT_BYTES is split equally between stdout and stderr (rounding each share down). The runner keeps each normalized UTF-8 prefix within that budget, reads fixed-size chunks, and discards excess content while continuing to drain both pipes. A long line needs no newline to be bounded. Reaching the output cap does not by itself terminate a command or turn a nonzero exit into a pass. Bound Python output uses UTF-8; other commands use the host's preferred encoding. Invalid input is replaced rather than raising a locale decode error; CRLF and CR are normalized to LF, including timeout output.

The existing result fields remain. Interpret the added evidence separately:

Field Meaning
stdout_truncated / stderr_truncated Observed normalized output exceeded that stream's retention budget.
stdout_original_bytes / stderr_original_bytes Normalized UTF-8 bytes observed, including discarded content. They are not raw pipe-byte counts; without EOF, they are not totals for all produced output.
stdout_complete / stderr_complete The reader observed EOF, not merely a full retention buffer.
output_complete Both streams reached EOF. It can be true even when display output is truncated or the run timed out.
cleanup Reports signal scope, whether termination was requested, whether the direct child was reaped, and whether the parent's output pipes were closed. descendants_verified stays false.

The command deadline starts immediately before process creation and is not renewed when the parent exits or when the output fills. Collection and waiting for the direct process share it. Process creation and earlier executable/binding preflight may themselves take additional time. Timeout cleanup allows a 0.2-second POSIX termination grace, a 1-second direct-child reap wait, and a 0.2-second final pipe drain. These are bounded waits, not hard real-time scheduling guarantees. A timeout retains timed_out: true and returncode: null; the run CLI still exits 124. Required project validation cannot pass from a timeout.

On POSIX, the runner signals only its new session's process group, escalating from SIGTERM to SIGKILL before reaping the leader. It does not look up process names or request a host-wide process list. It assumes exclusive subprocess ownership; an unrelated SIGCHLD reaper is not supported. If Popen.wait() has already reaped the leader during interruption handling, the group identity is no longer used for signalling and cleanup is reported as incomplete. Windows uses the direct Popen process object only; Windows Job Object / descendant containment is not implemented here.

On macOS, a group containing only unreaped zombies can return EPERM even though no running member remains to signal. Only for that error, the runner uses Darwin's group-scoped libproc API to check at most 256 members, with a 0.2-second observation budget per failed signal. Both membership queries must agree, every member must report zombie state, and the unreaped leader must still report this process as its parent. Incomplete API records, live members, missing ownership, changed membership, unsupported ABI or expired observations preserve the cleanup failure. This adds at most two observation budgets to the cleanup path; OS calls are checked before/after and are not forcibly interruptible. No names, command lines or environment values are exposed; no discovered PID is signalled. This is a narrow error classification, not independent descendant containment.

The workspace mutation lock stays held through collection, termination, bounded drain and output closure. A pipe held by an escaped process can therefore yield a timely failure with output_complete: false, not an unbounded wait. Fixed CommandProcessError codes preserve the primary reason separately from cleanup errors; they never convert failed cleanup to a success result. An ordinary KeyboardInterrupt/SystemExit is propagated after successful cleanup. Normal-exit background processes and escaped descendants still require external isolation. See security boundaries.

Unreleased source behavior: when resume or continue omits --agent, it keeps the task's latest recorded worker selection, falling back to an explicit TaskSpec backend and then current defaults when no selection is recorded. Use a named --agent to switch deliberately, or --agent auto to resolve current defaults and repository preferences again. An unavailable remembered worker stops the command with guidance; the selection reason is included in the handoff. This preserves the backend choice while model/effort and other worker settings come from current user configuration. A handoff record alone does not prove execution or success. The published v0.5.3 package predates this change: pass an explicit --agent there. See the quickstart selection rules.

Acceptance is per layer

Evidence What it proves What it does not prove
actual-coder doctor API success CLI API authentication in that environment Git push rights, coding-agent login, tunnel availability
Successful project-config fetch That managed Git read succeeded App tests passed or writes are authorized
Tunnel started / metadata fetched Startup and reported control-plane operation succeeded ChatGPT discovered or called GitLab tools
Local health/readiness response The installed tunnel version's health conditions A particular GitLab tool call succeeded
Live identity and file reads in normal ChatGPT The actual ChatGPT read connection Local task execution or a new build/push
Local Assistant approval error Failure in that optional Codex session Failure of the independent normal ChatGPT connection

The final read test is in ChatGPT MCP setup, not in /ui#codex. For existing installations, use the restart procedure rather than repeating installation or migration.

Next product work

Preserve the reasoning/control/execution/evidence separation as the project evolves. Workspace locking, resume launch, remote container validation and shared local/SSH review gates are already implemented. Persistent TaskSpec/attempt records and bounded EvidencePack are now implemented; next work should deepen cross-interface exchange and result lifecycle without weakening the reasoning/control/execution/evidence separation.