Commit Graph
217 Commits
Author SHA1 Message Date
DottaandPaperclip 632e7c9802 docs(runner): record paid ACP qualification gaps
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-29 21:40:17 -05:00
DottaandPaperclip 5605c350b2 fix(runner): retain native Cursor mode in shared session checkpoints
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-29 19:59:27 -05:00
DottaandPaperclip 1778075155 fix(server): continue unfinished tasks after status replies (#14626)
## Thinking Path

> - Paperclip is the open source app people use to manage AI agents for
work.
> - Native runs report their task outcome through a structured finish
result.
> - A Board comment can permit a passive wait for the next response.
> - That exception accepted reports that also admitted blocking
unfinished work.
> - The task then stayed In Progress without a runner, and recovery
treated the wait as healthy.
> - This pull request rejects that contradiction and uses the existing
bounded continuation path.
> - Real wait conditions and protection against obsolete requests remain
in force.

## Linked Issues or Issue Description

**What happened?**

An agent answered a status inquiry with `yielded` and `response_wake`.
The same result listed blocking remaining work. The server accepted an
indefinite wait without a question, approval, dependency, or pause. No
further run was queued.

**Expected behavior**

Unfinished ordinary tasks must continue or have a recorded reason to
wait. A status reply alone must not suspend the work.

**Steps to reproduce**

1. Add a Board status inquiry to an unfinished assigned task.
2. Submit a successful native result with `yielded`, `response_wake`,
and `remainingWork[].blocksCompletion: true`.
3. Leave the task without any real wait condition.
4. Observe that the old policy preserves In Progress with no
continuation and suppresses recovery.

**Paperclip version or commit**

Reproduced in the native status policy at `da887ea3e`. The branch is
based on current master.

**Deployment mode**

Authenticated server with the native Paperclip Runner.

Related work: Refs #13338 (native response waits and recovery). Refs
#12071 (separate legacy recovery and retry-state work). This change
fixes the native unfinished-response-wait exception.

## What Changed

- Reject contradictory finish reports while the provider can still
correct them.
- Route accepted unfinished response waits through the existing
one-follow-up continuation budget. Repeated incomplete results create a
visible recovery action.
- Preserve questions, approvals, dependencies, pauses, conversation
lifecycles, and superseded Board requests.
- Recheck the current Board source in the decision transaction before
queuing repair.
- Let normal recovery reconsider old committed waits that report
blocking work and still have a current source.
- Add policy and database regression tests. Document the rule.

## Verification

- `pnpm exec vitest run
server/src/services/native-runtime/status-arbiter.test.ts
server/src/__tests__/heartbeat-process-recovery.test.ts
--no-file-parallelism`: 346 tests passed, no skips.
- `pnpm -r typecheck`: passed.
- `pnpm build`: passed.
- `git diff --check origin/master...HEAD`: passed.
- Final head `8f0824d9bb4d631f2347f8afffe5fff6d574cb69`: all CI checks
green (54 passed, 2 intentionally skipped), including all general tests,
serialized server suites, runner tests, eight E2E shards, and the canary
dry run.
- Greptile: 5/5 on the final head, with no unresolved review threads.
- The broad local `pnpm test:run` encountered an unrelated timing
failure in `workspace-runtime.test.ts` (waiting for managed process-tree
listeners). That test passed on an isolated rerun. The duplicate broad
run was stopped; the complete CI suite passed on the final commit.
- The transaction-race regression reproduced an obsolete continuation
before the fix. All 12 source-change cases now pass, covering passive
waits, corrective continuations, and exhausted-repair decisions.

## Risks

- Agents that previously parked unfinished ordinary tasks must now
continue or record an actual wait condition.
- Old contradictory waits become eligible for normal recovery. Existing
ownership, budget, pause, and supersession checks still apply.
- The rule uses the structured blocking-work flag. It does not infer
omitted work from prose.
- No schema, dependency, or UI change.

## Model Used

OpenAI GPT-6 through Codex, with reasoning, repository inspection, code
editing, and test execution. The session does not expose a more specific
deployment identifier or context-window size.

## 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
- [x] 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-29 16:51:50 -05:00
DottaandPaperclip a9e6757255 docs(runner): separate revised candidates from historical paid evidence
Record Cursor5, Copilot5 and Pi8 deterministic validation, retain all earlier failures and identify fresh qualification gates.

Co-authored-by: Paperclip <noreply@paperclip.ing>
2026-09-29 16:41:43 -05:00
DottaandPaperclip a97b626081 fix(runner): preserve Pi native assistant boundaries and notices
Pin Pi profile 8 to native message provenance, preserve explicit empty starts and ends, and keep replay/history and native notices out of final assistant aggregation. Validate fresh, warm and loaded SDK sessions and exact native closure bytes.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-29 16:30:28 -05:00
DottaandPaperclip 4af314a055 Admit and bind Cursor native session modes in profile v5
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-29 16:23:41 -05:00
DottaandPaperclip c73e26107f fix(copilot): bind profile v5 to the final ACPX patch
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-29 16:13:35 -05:00
DottaandPaperclip 651110d3a5 docs: retain Cursor continuation qualification outcomes
Record three passing workflows and the exact-response failure without promoting partial file success to qualification.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-29 16:08:50 -05:00
DottaandPaperclip 54dfc1bc8e fix(runner): preserve Copilot evidence in the direct driver
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-29 16:05:55 -05:00
DottaandPaperclip d3077a061f test(e2e): add Copilot denial and attached settlement cases
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-29 16:01:39 -05:00
DottaandPaperclip 07369cc801 docs: record host recovery and authenticated ACP qualification
Retain failed attempts, new local and Daytona passes, current runtime identities, and remaining production gates.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-29 15:58:36 -05:00
DottaandPaperclip 8193905d59 docs(runner): record completed validation and remaining host blockers
Preserve failed broad-suite results and identify successful Runner stages across targeted repairs without claiming an uninterrupted verification pass.

Paperclip-Task: rich-acp-production

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-29 13:52:19 -05:00
DottaandPaperclip ba21e6c0cf docs(runner): reconcile current paid qualification coverage
Keep historical proofs distinct while recording current Copilot local and Pi Daytona passes and the remaining qualification gates.

Paperclip-Task: rich-acp-production

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-29 13:45:16 -05:00
Dotta 0a987def5d docs(runner): align remote checkpoint with successful Pi run
Paperclip-Task: rich-acp-production
2026-09-29 13:29:45 -05:00
Dotta 7d59518e53 docs(runner): retain paid remote proof and qualification blockers
Paperclip-Task: rich-acp-production
2026-09-29 13:26:45 -05:00
Dotta bcd6572d60 docs(runner): record current local passes and first remote attempt
Paperclip-Task: rich-acp-production
2026-09-29 13:09:04 -05:00
DottaandPaperclip bd4cc29c30 docs(runner): record current paid qualification and shared recovery fix
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-29 12:40:38 -05:00
DottaandPaperclip c7869a980a Record current ACP review results and remaining capability gaps
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-29 12:16:14 -05:00
DottaandPaperclip 7bd453d33d Integrate Pi v7 native tool and input contracts
Co-Authored-By: Paperclip <noreply@paperclip.ing>

* commit '72ded1794':
  test(runner): distinguish Pi blank transport from form support
  fix(runner): admit Pi MCP names and bound native questions
2026-09-29 12:13:58 -05:00
DottaandPaperclip 72ded17946 test(runner): distinguish Pi blank transport from form support
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-29 12:05:52 -05:00
DottaandPaperclip bb00c85b69 fix(runner): admit Pi MCP names and bound native questions
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-29 12:00:42 -05:00
DottaandPaperclip 49ba2e61fb Integrate reviewed Cursor and Copilot event fixes
Co-Authored-By: Paperclip <noreply@paperclip.ing>

* commit '2042ca14c42c0112304328b8f059847be4370f6c':
  Keep Copilot notices session-scoped and close early smoke resources
  Bound Cursor child summaries without splitting Unicode characters
2026-09-29 11:50:29 -05:00
DottaandPaperclip 2042ca14c4 Keep Copilot notices session-scoped and close early smoke resources
Copilot passthrough does not identify the originating turn. Retain bounded session evidence and source identity without typed turn projection or invented turn provenance. Acquire smoke resource cleanup before every fallible setup operation.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-29 11:49:53 -05:00
DottaandPaperclip fdcba3c877 Record current Pi paid proof and remaining qualification gates
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-29 11:47:58 -05:00
DottaandPaperclip 97217c5313 Integrate reviewed rich ACP instruction and startup fixes
Co-Authored-By: Paperclip <noreply@paperclip.ing>

* codex/runner-pi-acp:
  Bind Cursor instructions to native rules and gate every ACP connection
  fix(copilot): refresh instructions under provider lifetime ownership
  fix(copilot): deliver native instructions with v4 session identity
  docs(runner): retain Pi native prompt delivery proof
  fix(runner): refresh trusted system instructions before ACPX restore
  fix(runner): refresh runtime context when restoring ACPX sessions
  test(copilot): record native system instruction delivery evidence
  fix(runner): refresh trusted system instructions before ACPX restore
  perf(runner): hash Pi runtime inventory with bounded workers
  perf(runner): bound native snapshot copy concurrency at 32
  perf(runner): bound native snapshot copy concurrency at 32
  test(copilot): preserve final question failure and offline recovery proof
  fix(runner): refresh runtime context when restoring ACPX sessions
  feat: return completed handoffs to Agent Chat (#14408)
  fix(adapters): preserve ACP terminal failure diagnostics (#14573)
  fix(runner): honor Codex effort selected in composer (#14568)
  fix: grade Codex clarification and refusal outcomes from evidence (#14570)
  fix(inbox): keep other users’ failed runs out of Mine (#14572)
2026-09-29 11:33:49 -05:00
DottaandPaperclip 23614d28c8 merge: integrate reviewed Copilot and Cursor runtime repairs into Pi
Preserve Pi v6 and bounded startup pools, admit current Cursor and Copilot v4 identities, and combine additive Product flows and catalog assertions.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-29 11:33:28 -05:00
DottaandPaperclip 9ff6b04b46 docs(runner): record instruction delivery fixes and qualification gates
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-29 11:33:17 -05:00
DottaandPaperclip 95dfde7c5c Merge current Cursor ACP runtime into Copilot v4
Preserve both profile-specific guards and complete terminal diagnostics; bind Copilot v4 to the regenerated ACPX patch.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-29 11:28:38 -05:00
DottaandPaperclip 62e642590f Bind Cursor instructions to native rules and gate every ACP connection
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-29 11:24:48 -05:00
DottaandPaperclip 2ff6a8efea fix(copilot): refresh instructions under provider lifetime ownership
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-29 11:17:22 -05:00
DottaandPaperclip 3ec07cc8fa docs(runner): distinguish implemented agent file binding from qualification
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-29 11:16:58 -05:00
DottaandPaperclip 0f33a9080a fix(copilot): deliver native instructions with v4 session identity
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-29 11:12:26 -05:00
DottaandPaperclip f09813baec docs(runner): retain Pi native prompt delivery proof
Record sanitized actual SDK model-request assertions for fresh and loaded sessions, with exact runtime provenance and explicit qualification limits.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-29 11:11:36 -05:00
DottaandPaperclip 751f59f26c test(copilot): record native system instruction delivery evidence
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-29 11:07:17 -05:00
DottaandPaperclip 42948b9d28 perf(runner): hash Pi runtime inventory with bounded workers
Retain exact checked file reads and traversal order, drain failed batches, and preserve the v6 closure identity. Add credential-free closed Runner startup regression and record both the paid timeout and diagnostic timings without claiming authenticated qualification.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-29 10:38:05 -05:00
DottaandPaperclip 5630481a38 test(copilot): preserve final question failure and offline recovery proof
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-29 10:34:51 -05:00
DottaandPaperclip c4cc87fb38 docs(runner): record current paid qualification blockers
Co-Authored-By: Paperclip <hello@paperclip.ing>
2026-09-29 10:31:22 -05:00
Dotta 6766b9128e Merge branch 'codex/runner-copilot-acp' into codex/runner-pi-acp
* codex/runner-copilot-acp:
  Admit the verified Copilot v3 identity in Rust
  Admit the verified Cursor v3 identity in Rust
  Admit current ACP profiles and verify cross-language pin agreement
  Follow current Copilot profile identity in native installation admission
  Preserve authoritative Copilot guard errors for pending ACP requests
  Preserve Copilot policy rejection codes across sidecar transport
  Bind Copilot v3 identity to native detached-work admission
  Deny native Copilot detached work before permission dispatch
  Prove Cursor SDK interactions and retain profile v3 build evidence
  Bind Daytona image identity to Cursor isolation patch
  Retain Copilot detached-command early completion regression
  Prove Copilot permission recovery after provider death without replay

# Conflicts:
#	packages/paperclip-runner/src/drivers/acpx/qualified-profiles.ts
2026-09-29 10:10:17 -05:00
Dotta 550801f956 Merge branch 'codex/runner-cursor-acp' into codex/runner-copilot-acp
* codex/runner-cursor-acp:
  Admit the verified Cursor v3 identity in Rust
  Admit current ACP profiles and verify cross-language pin agreement
  Prove Cursor SDK interactions and retain profile v3 build evidence
2026-09-29 10:08:55 -05:00
Dotta 25de20d702 Merge branch 'codex/runner-pi-acp' into codex/runner-acp-production
* codex/runner-pi-acp:
  docs(runner): retain Pi v6 profile rejection evidence
2026-09-29 10:05:14 -05:00
DottaandPaperclip c2a2dcd844 docs(runner): retain Pi v6 profile rejection evidence
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-29 10:04:04 -05:00
DottaandPaperclip f068124357 Update rich ACP production qualification status and remaining gaps
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-29 10:00:53 -05:00
Dotta dce22d2e69 Merge branch 'codex/runner-cursor-acp' into codex/runner-acp-production
* codex/runner-cursor-acp:
  Prove Cursor SDK interactions and retain profile v3 build evidence
2026-09-29 09:59:18 -05:00
Dotta 37507835dd Merge branch 'codex/runner-copilot-acp' into codex/runner-acp-production
* codex/runner-copilot-acp:
  Bind Copilot v3 identity to native detached-work admission
  Deny native Copilot detached work before permission dispatch
  Bind Daytona image identity to Cursor isolation patch
  Retain Copilot detached-command early completion regression
  Prove Copilot permission recovery after provider death without replay
2026-09-29 09:59:18 -05:00
DottaandPaperclip f9cd8dd256 Deny native Copilot detached work before permission dispatch
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-29 09:58:05 -05:00
DottaandPaperclip 1f8316294e Prove Cursor SDK interactions and retain profile v3 build evidence
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-29 09:54:38 -05:00
DottaandPaperclip fcb1421685 Retain Copilot detached-command early completion regression
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-29 09:51:04 -05:00
DottaandPaperclip f221ca1910 Prove Copilot permission recovery after provider death without replay
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-29 09:48:54 -05:00
DottaandPaperclip ff98929d3c Integrate Copilot v3 prerequisite
Co-Authored-By: Paperclip <noreply@paperclip.ing>

* commit '7bfaf3da4':
  Version Copilot protocol policy as profile v3
  Version patched Cursor isolation as profile v3
  Clarify Cursor admission and patched runtime isolation boundaries
  Fence Copilot ACP connection policy before protocol dispatch
  Bind Cursor typed-error constructor outside the native turn scope
  Isolate pinned Cursor ACP configuration and preserve typed failures
2026-09-29 09:48:52 -05:00
DottaandPaperclip 66c4073080 Integrate Cursor v3 prerequisite
Co-Authored-By: Paperclip <noreply@paperclip.ing>

* commit '526081b9d':
  Version patched Cursor isolation as profile v3
  Clarify Cursor admission and patched runtime isolation boundaries
  Bind Cursor typed-error constructor outside the native turn scope
  Isolate pinned Cursor ACP configuration and preserve typed failures
2026-09-29 09:48:23 -05:00