Commit Graph
1330 Commits
Author SHA1 Message Date
Dotta c7731dc7dc fix(runner): align Codex ACPX admission digest 2026-09-03 02:20:11 -05:00
Dotta a9c5d81af6 fix(runner): align patched ACPX profile identity 2026-09-03 02:11:42 -05:00
Dotta edc5f3bc3e fix(runner): keep provider assets out of host resolution 2026-09-03 02:05:22 -05:00
Dotta 2abaf1f3ad fix(runner): separate Codex approvals from questions 2026-09-03 01:53:21 -05:00
Dotta 3be5f48053 fix(runner): preserve OpenCode terminal results 2026-09-03 01:49:00 -05:00
Dotta 3d8720c16f fix(runner): restore rooted ACPX package resolution 2026-09-03 01:45:52 -05:00
Dotta 6f0614ec74 fix(runner): restore providers before terminal cleanup 2026-09-03 01:10:06 -05:00
Dotta 0485678d17 fix(runner): close provider launch trust gaps 2026-09-03 00:59:12 -05:00
Dotta 1cbd8ae541 fix(runner): align Codex ACPX auth isolation 2026-09-03 00:48:38 -05:00
Dotta 34e52d370b fix(runner): isolate ACPX Codex shell state 2026-09-03 00:19:52 -05:00
Dotta 5e3a9b50d9 test(runner): acknowledge terminal result delivery 2026-09-03 00:01:17 -05:00
Dotta 5835c98675 fix(runner): preserve ACPX command attestation 2026-09-02 23:57:10 -05:00
Dotta d2c9977065 fix(runner): acknowledge terminal transitions durably 2026-09-02 23:57:10 -05:00
Dotta a02087a5c1 fix(runner): project ACPX session identity 2026-09-02 23:46:08 -05:00
Dotta d582fbe1aa fix(runner): reconcile terminal result delivery 2026-09-02 23:38:26 -05:00
Dotta 76c82e642c fix(runner): project ACPX bridge tool catalog 2026-09-02 23:34:27 -05:00
Dotta a8ef9b8715 fix(runner): preserve trusted ACPX terminal catalog 2026-09-02 23:26:01 -05:00
Dotta 1b07b5a58b test(runner): wait for Codex tool completion 2026-09-02 23:18:25 -05:00
Dotta 32b1124242 fix(runner): stop after terminal result delivery failure 2026-09-02 23:06:59 -05:00
Dotta 156c913779 fix(runner): read ACPX output error codes 2026-09-02 23:00:28 -05:00
Dotta 534ce69adb fix(runner): stop after delivered terminal results 2026-09-02 22:59:09 -05:00
Dotta c8598416ef fix(runner): persist terminal lifecycle before delivery 2026-09-02 22:51:42 -05:00
Dotta b4e83ab3cc fix(runner): traverse ACPX error causes safely 2026-09-02 22:44:48 -05:00
Dotta 4ac656e8d4 fix(runner): preserve ACPX failure detail codes 2026-09-02 22:26:09 -05:00
Dotta f6f2d02b5d fix(runner): classify ACPX session ensure failures 2026-09-02 22:14:14 -05:00
Dotta 21bc0eba68 fix(runner): surface ACPX admission classifications 2026-09-02 21:48:45 -05:00
Dotta 6cba271e65 fix(runner): restore ACPX backend identity fallback 2026-09-02 21:37:34 -05:00
Dotta 9611da2b38 fix(runner): classify ACPX admission failures 2026-09-02 21:29:45 -05:00
Dotta d49c011403 fix(runner): verify ACPX model from durable state 2026-09-02 21:14:27 -05:00
Dotta d60306420d fix(runner): retain bounded ACPX startup diagnosis 2026-09-02 20:58:45 -05:00
Dotta e9998cbfdb fix(runner): preserve verified runtime across descendants 2026-09-02 20:50:25 -05:00
Dotta 492ba3a46b fix(runner): mirror Codex runtime profile in runnerd 2026-09-02 20:31:48 -05:00
Dotta 12fdb57ec8 fix(runner): qualify Codex ACP runtime executable 2026-09-02 20:23:30 -05:00
Dotta 805177f7d6 fix(runner): preserve provider startup classifications 2026-09-02 19:55:26 -05:00
Dotta 2ffcc0104a Merge remote-tracking branch 'origin/master' into fix/runner-paid-matrix-integrity
* origin/master:
  fix(onboarding): preserve draft through company refetch (#12735)
  feat(codex-local): give each Codex account its own home and path secret (#12709)
  feat(claude-local): add Claude Fable 5.1 support (#12730)
2026-09-02 19:32:45 -05:00
Dotta 0d8accea8c fix(runner): classify bounded ACPX startup failures 2026-09-02 19:32:40 -05:00
Dotta 464bcfec26 fix(runner): scope verified runtime inheritance 2026-09-02 19:29:03 -05:00
Dotta cf8e7d475a test(runner): match macOS verified runtime snapshot 2026-09-02 19:13:40 -05:00
Dotta b8e26f101e fix(runner): preserve verified runtime for provider descendants 2026-09-02 19:12:41 -05:00
Dotta 325e1e813d fix(runner): load sealed CommonJS entrypoints by descriptor 2026-09-02 19:00:11 -05:00
Dotta 7c85257f66 fix(runner): track closed ACPX input portably 2026-09-02 18:48:04 -05:00
Dotta 476ca3d877 fix(runner): close ACPX sidecar stdin cleanly 2026-09-02 18:45:12 -05:00
Dotta 16e165d958 fix(runner): define descriptor bundle module URL 2026-09-02 18:40:38 -05:00
Dotta d414396011 fix(runner): compile descriptor bundles without import meta 2026-09-02 18:37:44 -05:00
Dotta 62b79deb20 fix(runner): restore verified JS provider startup 2026-09-02 18:32:59 -05:00
Dotta 96fcadeb51 fix(runner): load sealed Node entrypoints as ESM 2026-09-02 18:13:54 -05:00
Dotta 8d36deaa72 fix(runner): scope verified ESM mode to Node 2026-09-02 18:00:27 -05:00
Dotta 03bab72ee8 fix(runner): restore verified native provider startup 2026-09-02 17:23:10 -05:00
Dotta 84f1fa89b4 fix(runner): secure bundled provider entrypoints 2026-09-02 16:55:16 -05:00
Nicky LeachandPaperclip 9064cfd09e feat(codex-local): give each Codex account its own home and path secret (#12709)
## Thinking Path

> - Paperclip is the control plane for companies that use AI agents for
work
> - Local adapters connect Paperclip agents to provider command line
tools
> - The Codex adapter stores login data in a shared company home
> - A shared home cannot keep credentials for more than one Codex
account
> - This pull request gives each account a safe home and a matching
company secret
> - The benefit is that one company can use multiple Codex accounts at
the same time

## Linked Issues or Issue Description

**Problem or motivation**

A company can hold only one Codex subscription credential because device
login uses one shared home. A second account cannot log in without
replacing or conflicting with the first credential.

**Proposed solution**

This change validates the vendor account identifier, stores each
credential in its own home, and creates a company secret that points to
that home. Repeat login calls return success when the matching secret
already exists.

**Roadmap alignment**

The change supports the roadmap goal for centrally managed secrets with
scoped access and audited resolution.

**Additional context**

The security review returned approve with no blocking finding. The
branch adds shared account-handle validation and tests for device login
and the Codex local adapter.

## What Changed

- Add strict allowlist validation for Codex account handles.
- Store each Codex account credential in a separate home under the Codex
cache root.
- Verify that the resolved account home stays inside the cache root.
- Create the `CODEX_HOME_<handle>` company secret for each account.
- Keep repeat and concurrent login calls safe and idempotent.
- Add shared helper and route, adapter, and validation tests.

## Verification

- `pnpm --filter @paperclipai/adapter-codex-local test` passes with 343
tests.
- `pnpm --filter @paperclipai/server test
src/__tests__/agent-device-login-routes.test.ts` passes with 25 tests.
- The adapter suite passes with 23 tests.
- The shared package and Codex adapter typechecks pass.
- Continuous integration must pass on every check before merge.

## Risks

The account handle becomes part of a directory path and secret name. The
strict allowlist and root containment check reduce path traversal risk.
Existing single-account homes remain unchanged unless a new device login
creates an account-specific home.

## Model Used

OpenAI GPT-5 (exact runtime model ID: gpt-5), with tool use and code
execution. The runtime context window is not exposed in this run.

## Checklist

- [x] I have included a thinking path that traces from project context
to this change
- [x] I have specified the model used (with version and capability
details)
- [x] I have checked ROADMAP.md and confirmed this PR does not duplicate
planned core work
- [x] I have searched GitHub for duplicate or related PRs and linked
them above
- [x] I have either (a) linked existing issues with `Fixes: #` / `Closes
#` / `Refs #` OR (b) described the issue in-PR following the relevant
issue template
- [x] I have not referenced internal/instance-local Paperclip issues or
links (only public GitHub `#NNN` / `github.com/paperclipai/paperclip`
URLs)
- [x] My branch name describes the change (e.g. `docs/...`, `fix/...`)
and contains no internal Paperclip ticket id or instance-derived details
- [x] I have run tests locally and they pass
- [x] I have added or updated tests where applicable
- [x] I have updated relevant documentation to reflect my changes
- [x] I have considered and documented any risks above
- [x] All Paperclip CI gates are green
- [ ] Greptile is 5/5 with no open P2s, recommendations, or follow-ups
- [x] I will address all Greptile and reviewer comments before
requesting merge

---------

Co-authored-by: Paperclip <noreply@paperclip.ing>
2026-09-02 14:46:53 -07:00