Provider: OpenAI Codex implementation behind the AgentProvider interface #2
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Cloonar/coding-lab#2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
The MVP implements the
AgentProviderseam (spawn / auth / attach / workspace seeding / model catalogs) with a single implementation: Claude Code (docs/agent-brief.md, decision D14). Sessions and repos already carry aprovidercolumn. This issue adds Codex as the second provider.Scope
claude auth status.AGENTS.md/ Codex config instead ofCLAUDE.local.md+.claude/settings.local.json; skills-equivalent guidance; incogni attribution measures mapped to Codex behavior (verify what attribution Codex writes into commits/PRs).labctlvocabulary unchanged.Acceptance
provider: codex(default stays claude-code) and run manual + AFK sessions end to end.Triage Notes
What we've established so far:
tmux attachon the lab host; the instance row shows a copyable attach command. AFK sessions are unaffected (the seed prompt travels in the spawn argv). The embedded remote interface remains the later UX upgrade and is not a dependency.DeepLinkerinterface following theConnectingReporterpattern), with the open-affordance fallback moving into provider-owned metadata. This also erases two existing provider-isolation violations (a claude-code import in core instance code, and the claude.ai fallback hardcoded in the SPA) — this issue's own "grep-clean core" acceptance criterion currently fails without any Codex code existing.ready-for-agent) — it needs no Codex account and is fully testable with the existing provider fake. This issue is blocked on #6.codexprovider package itself — spawn argv + model/effort catalogs, the login flow, workspace seeding (AGENTS.md / config in place of CLAUDE.local.md + settings), and incogni attribution parity. All of its fragile CLI couplings need live verification against a logged-in Codex CLI (the ADR-0008 standard: claude-code's couplings were verified live against a real session), which an AFK agent on this host cannot do — pointing towardready-for-humanat re-triage.Next step: re-triage once #6 merges. Stays
needs-triageuntil then (category: enhancement).Re-triage: #6 has merged
Category: enhancement (adding the category label — this issue only carried
needs-triageuntil now)Per this issue's own prior triage notes, it was blocked on #6 and due for
re-triage once that merged. Confirmed:
affordance", ADR-0017). The
DeepLinkerinterface now exists(
internal/provider),CaptureDeepLinkis gone from the mandatoryAgentProviderseam, the instance service arms capture only for providersimplementing it, and the SPA's open-state logic is data-driven rather than
hardcoding
claude.ai. The two provider-isolation violations this issue's"grep-clean core" acceptance criterion depended on are fixed.
codexbinary and no Codex CLI session — confirmingthe prior notes' concern still holds: the remaining scope (spawn argv, model/
effort catalogs, the Codex login flow, workspace seeding, incogni attribution
parity) all needs live verification against a logged-in Codex CLI, the
same live-verification bar this repo already held claude-code to (ADR-0008:
every fragile coupling "verified live against Claude Code 2.1.198, a real
session"). An AFK agent on this host cannot authenticate a Codex account or
drive a live Codex session to pin those couplings.
Why
ready-for-human, notready-for-agent: every remaining acceptancecriterion in this issue's body — spawn argv, auth flow, workspace seeding,
attribution parity — is a claim about Codex CLI's actual behavior that has to
be pinned against a real logged-in session, not inferred from docs. That's a
manual-verification blocker, not a missing-design one; the design question
(#6) is already resolved.
Out of scope (unchanged from the issue body):
already-resolved attach-story decision.
Relabeling
needs-triage→ready-for-human, categoryenhancementadded.Deployment note: getting the
codexbinary onto the sandbox PATH is now tracked separately in #74 (NixOS module: provider-keyedagentPackageswith apkgs.codexdefault, plus an agent tools baseline). This issue stays scoped to theAgentProviderimplementation itself and remainsready-for-humanfor the live-CLI verification (login as the lab service user, spawn argv, seeding, attribution parity). nixpkgs ships the CLI ascodex(codex-cli; 0.133.0 already in this host's store), so no packaging work blocks it.Superseded by #87, which re-specs the Codex adapter for the post-seam-hardening world: ADR-0033/0034/0035 obligations inlined, #80's two-tier conformance suite + checklist adopted as the definition of done, couplings pre-pinned from a 2026-07-10 online research sweep with the remaining unknowns as an explicit live-spike checklist. The decisions resolved in this issue's triage (no deep link / tmux attach, #6 seam refactor, #74 deployment split) carry forward unchanged and are referenced there. Closing in favor of #87.