Commit Graph
5204 Commits
Author SHA1 Message Date
Dotta 2d8030417c fix: allow bounded cold verification of persistent computer packs 2026-10-10 22:53:17 -05:00
Dotta b48ac8412f fix: resume new input after paused computer admission retries 2026-10-10 22:48:34 -05:00
Dotta 8b8ede99dc fix: align workspace CI partition with upstream contract 2026-10-10 22:48:06 -05:00
Dotta 9df2fe188f fix: support upstream workspace CI partition 2026-10-10 22:40:56 -05:00
Dotta 3babc921d7 fix: explain Boat admission waits and hide retries while paused 2026-10-10 22:40:56 -05:00
Dotta 8b70261521 fix: distinguish provider cache mismatches from unavailable verification 2026-10-10 22:36:56 -05:00
Dotta bd86e22e72 fix: preserve Boat wait ownership and honor Stop across retries 2026-10-10 22:28:24 -05:00
Dotta ca8ab88c78 fix: defer Boat admission while provider stop is pending 2026-10-10 22:07:06 -05:00
Dotta 2e8859ab76 Preserve controller-owned provider pack authority across cold resume 2026-10-10 21:19:45 -05:00
Dotta 5575b36a8d Validate retained packages against the active provider contract 2026-10-10 21:02:59 -05:00
Dotta d710ab1b22 Fix Boat disconnect and reconnect state 2026-10-10 21:02:59 -05:00
Dotta 5cf3888459 fix(boat): retain verified ACPX provider packs across deployments 2026-10-10 20:44:28 -05:00
Dotta 40cb3b28e3 diagnostics: record native completion cancellation source 2026-10-10 20:37:48 -05:00
Dotta 3e04b21f99 fix(boat): scope native cleanup to the remote owner 2026-10-10 20:34:42 -05:00
DottaandPaperclip 610c78a5ad fix: classify computer checkpoint recovery rejection safely
Preserve every settlement and ownership gate while exposing fixed reason codes for checkpoint mismatches and prior authority verification. Cover each diagnostic branch without logging evidence values.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-10-10 19:15:53 -05:00
DottaandPaperclip 1830beb0c2 fix(computers): release previous viewers after task reassignment
Authorize exact user-owned viewer cleanup independently of the current task environment, with route and module regressions.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-10-10 16:21:00 -05:00
DottaandPaperclip 2df40da458 Merge final Boat legacy runtime and environment guards
Co-Authored-By: Paperclip <noreply@paperclip.ing>

* commit '3673939bed4cb85f20d142f950547e3a60502bca':
  fix(computers): expose persistent instructions and managed CLI skills
  fix(adapters): expose Boat instructions and managed Claude skills
  fix(ui): honor forced Kubernetes before Boat engine checks
2026-10-10 15:33:06 -05:00
Dotta 3673939bed Merge commit '5c3cd777df95d364f96e0c9210c6eec3117336f0' into codex/boat-environment
* commit '5c3cd777df95d364f96e0c9210c6eec3117336f0':
  fix(computers): expose persistent instructions and managed CLI skills
2026-10-10 15:32:41 -05:00
DottaandPaperclip 5c3cd777df fix(computers): expose persistent instructions and managed CLI skills
Integrate the scoped production correction and existing config test from 2700054c6a. Full Claude and Codex execute regressions remain in the stacked acceptance PR.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-10-10 15:32:22 -05:00
DottaandPaperclip 8b2a71c1e4 fix(adapters): expose Boat instructions and managed Claude skills
Keep controller instruction reads while advertising the registered persistent execution path. Mount approved remote Claude skills into the isolated user configuration so user-only settings can discover them without enabling project settings.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-10-10 15:31:55 -05:00
DottaandPaperclip d2ef1547bb fix(ui): honor forced Kubernetes before Boat engine checks
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-10-10 15:29:47 -05:00
DottaandPaperclip 6571144ff2 Merge final Boat preview and CLI guards into staging candidate
Co-Authored-By: Paperclip <noreply@paperclip.ing>

* commit '0ab48d0c467fad050800157efd9adf9ee5decab0':
  fix(ui): require CLI for legacy Claude on Boat
  fix(computers): select latest task admission for previews
  fix: select task computer by latest lease admission
2026-10-10 15:21:33 -05:00
DottaandPaperclip 0ab48d0c46 fix(ui): require CLI for legacy Claude on Boat
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-10-10 15:18:04 -05:00
Dotta dbfdf43179 Merge commit 'd22b935d2900acb7f4f55190fb57a44b38fe57ce' into codex/boat-environment
* commit 'd22b935d2900acb7f4f55190fb57a44b38fe57ce':
  fix(computers): select latest task admission for previews
2026-10-10 15:17:39 -05:00
DottaandPaperclip d22b935d29 fix(computers): select latest task admission for previews
Integrate the production route correction from 5af1eb0762; its full route regression suite remains in the stacked acceptance PR.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-10-10 15:17:11 -05:00
DottaandPaperclip 8eefd4e242 fix: select task computer by latest lease admission
Delayed cleanup of an older lease must not replace the latest task authority for computer previews. Keep rejecting a non-live latest owner instead of searching older leases.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-10-10 15:16:42 -05:00
DottaandPaperclip d1982a1594 Merge current Boat UI and desktop fixes into staging candidate
Co-Authored-By: Paperclip <noreply@paperclip.ing>

* commit '19d827a10af3f82c0be4a6faa9b4e30446022b27':
  fix(computers): refresh desktop credentials on explicit connect
2026-10-10 15:06:25 -05:00
Dotta 19d827a10a Merge commit '1b53cdce8064aa8b0f0947906a7c9f9d6182487a' into codex/boat-environment
* commit '1b53cdce8064aa8b0f0947906a7c9f9d6182487a':
  fix(computers): refresh desktop credentials on explicit connect
2026-10-10 15:05:50 -05:00
DottaandPaperclip 1b53cdce80 fix(computers): refresh desktop credentials on explicit connect
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-10-10 15:05:31 -05:00
DottaandPaperclip 38f1b701f6 Merge Boat CLI-only setup correction into staging lineage
Co-Authored-By: Paperclip <noreply@paperclip.ing>

* commit 'ce1a49bb917a29299ab000f25d45b46c63be1638':
  fix(ui): require CLI for legacy Codex on Boat
2026-10-10 14:45:41 -05:00
DottaandPaperclip ce1a49bb91 fix(ui): require CLI for legacy Codex on Boat
Restrict fresh Boat Codex setup to CLI and preserve unsupported existing ACP/default settings as explicit repair choices. Block saving or testing until CLI is selected; keep Claude and other environments unchanged.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-10-10 14:45:27 -05:00
DottaandPaperclip 73b2f86de8 Merge final Boat runtime candidate into staging compatibility branch
Co-Authored-By: Paperclip <noreply@paperclip.ing>

* commit 'ac09d6ecce2809ed1ad6541d2908e713c543b39f':
  fix: discard inaccessible computer write receipts safely
  fix: retain Boat search results when child folders disappear
  fix: reclaim recorded interrupted computer saves
2026-10-10 14:33:12 -05:00
DottaandPaperclip c85eb28298 fix(db): preserve deployed Boat staging migration lineage
Keep the deployed Boat migration and append the unchanged upstream fast-response migration with regenerated Drizzle snapshots. This branch is staging-only; canonical feature history remains unchanged.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-10-10 14:33:02 -05:00
DottaandPaperclip ac09d6ecce Merge Boat file recovery and recursive search review fixes
Co-Authored-By: Paperclip <noreply@paperclip.ing>

* commit '5e5fe7a708':
  fix: discard inaccessible computer write receipts safely
  fix: retain Boat search results when child folders disappear
  fix: reclaim recorded interrupted computer saves
2026-10-10 14:31:58 -05:00
DottaandPaperclip 5e5fe7a708 fix: discard inaccessible computer write receipts safely
Preserve removed, replaced, or permission-restricted temp parents while allowing unrelated file operations to continue. Keep unknown I/O failures visible.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-10-10 14:22:43 -05:00
DottaandPaperclip d2235865bb fix: retain Boat search results when child folders disappear
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-10-10 14:12:58 -05:00
DottaandPaperclip 61888f6d58 fix: reclaim recorded interrupted computer saves
Keep an exact inode receipt under the existing editor lock before writing temporary content. Recover only that recorded inode on the next operation and preserve replacements and unknown files.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-10-10 14:12:49 -05:00
DottaandPaperclip b375f46557 Merge bounded Boat file operations into acceptance branch
Co-Authored-By: Paperclip <noreply@paperclip.ing>

* commit '47b4bc1d4ea61e4b92b9d6a3bb36067e4b06490e':
  fix: enforce file operation deadlines inside the remote process group
  fix: preserve automatic workspace fallback for missing Boat files
  fix: share one bounded lifetime across computer file operations
2026-10-10 14:02:50 -05:00
DottaandPaperclip 47b4bc1d4e fix: enforce file operation deadlines inside the remote process group
Apply GNU timeout after SSH admission deducts queue time. Verify a delayed remote-shaped Python write is killed independently of local SSH termination.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-10-10 13:59:39 -05:00
DottaandPaperclip ff2598c3d8 fix: preserve automatic workspace fallback for missing Boat files
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-10-10 13:56:40 -05:00
DottaandPaperclip 9c583bf39d fix: share one bounded lifetime across computer file operations
Propagate the admitted operation deadline through readiness, claims, and SSH commands. Keep only a bounded transport-settlement hold, and expire a short file waiter without cancelling shared SSH initialization.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-10-10 13:56:40 -05:00
DottaandPaperclip 6e09a5ee82 fix: expose explicit legacy CLI selection for Boat agents
Show CLI as the visible initial engine for fresh legacy agents on active Boat environments and preserve explicit choices through probe and hire. Permit the runtime engine selector on attached Boat environments while retaining managed host-path restrictions and other environment policy.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-10-10 13:53:54 -05:00
Dotta 3081b7480f Merge current upstream schema into Boat feature branch
* commit '2c09c8c16da3d605fc043c745535a7e65f961bb9':
  perf(chat): wake action queues from commits and deadlines (#15808)
  chore(lockfile): refresh pnpm-lock.yaml (#15820)
  feat: add company fast-response acknowledgements (#15748)
  ci: move the Grok public-install verification off Canary Dry Run (#15213)
2026-10-10 13:43:20 -05:00
DottaandPaperclip 2c09c8c16d Merge master into Boat core and regenerate migration after fast responses
Preserve the exact deployed Boat SQL hash under generated migration 0332 so existing staging databases recognize its history. Keep additive schema and shared exports from both branches.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-10-10 13:43:07 -05:00
DottaandPaperclip f913d541d2 test: cover persistent Boat home initialization
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-10-10 13:36:21 -05:00
Dotta c907cee35e Merge safe Boat instruction initialization
* codex/boat-environment-core:
  fix: initialize persistent Boat instruction bundles safely
2026-10-10 13:36:18 -05:00
DottaandPaperclip 5db007c6f5 fix: initialize persistent Boat instruction bundles safely
Apply the reviewed initialization fix; acceptance coverage remains in the stacked UI PR.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-10-10 13:36:00 -05:00
DottaandPaperclip b395cfd973 test: expect selected API accounts throughout agent setup
Update Grok, Claude, and Codex wizard probe and hire assertions to preserve the explicitly created account and grant. Subscription-default expectations remain unchanged.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-10-10 13:35:55 -05:00
DottaandPaperclip 0ee61b5002 fix: keep the API account selected during agent setup
Bind the account returned by credential creation explicitly instead of silently resolving the user’s existing provider default. Preserve that binding on connection-test retries without creating another account or changing defaults.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-10-10 13:27:47 -05:00
DottaandPaperclip b1ebe3de3c perf(chat): wake action queues from commits and deadlines (#15808)
## Thinking Path

> - Paperclip is the open source app people use to manage AI agents for
work.
> - Chat keeps durable rows for provider actions and setup messages.
> - Five action queues still scan the database every second when empty.
> - Empty scans add idle database traffic and prevent cost savings from
sleep.
> - This pull request wakes these queues when their writes commit or
their next deadline arrives.
> - Existing rows retain retry and restart recovery. Empty queues stop
scanning.

## Linked Issues or Issue Description

Refs #15802, #15625, #15750, #15757. Related allocation work: #15153.

**What existing behavior does this improve?**

Idle chat reconciliation for Slack Board messages, Slack slash-command
task starts, Slack setup verification messages, receipt reactions, and
Slack session stops.

**Current behavior**

The app runs these five queue scans through chat maintenance every
second, including when no work exists.

**Proposed behavior**

Each queue has an independent worker on the existing scheduler.
Producers and foreground claim/retry/settlement writes announce work
inside their database transaction. The worker wakes after the outer
transaction settles. Startup restores durable work. Shared dispatch and
deadline predicates select real retries and abandoned claims. Empty
queues disarm.

**Subsystem affected**

Server chat services. No schema or migration changes.

## What Changed

- Register five action workers alongside the three delivery workers from
#15802. Remove their scans from periodic app maintenance.
- Share action eligibility between dispatch and deadline selection. Park
paused Board messages and task starts until endpoint changes. Preserve
uncertain-send quarantine.
- Wake setup verification after account, welcome, registration, or
authenticated callback changes. Exclude prerequisites that need another
event.
- Persist a retry time for failed provider-confirmed task admission. Its
own commit notification cannot cause an immediate retry loop.
- Reuse the existing transaction signals and scheduler registration
code. Provider calls remain outside database transactions.
- Update the instance-sleep inventory and add scheduler and PostgreSQL
regression coverage.

## Verification

- Passed: 37 scheduler, coordinator, and app-wiring tests, including an
idle hour with no further scans or timers.
- Passed: seven focused PostgreSQL chat cases. These cover deadline
eligibility, startup recovery, outer-commit wakes, actual producer
signals, and signed-callback verification without maintenance polling.
- Passed: `pnpm typecheck`.
- Passed: full chat integration suite and related
publication/coordinator tests, **1,278 tests** across six files,
including **1,228 chat integration cases**.
- Passed: `pnpm build`.
- After the review fix, seven focused PostgreSQL integration cases and
the server typecheck passed again. Deadline and dispatch queries now
exclude completed action history.
- Greptile: **5/5** on `35a979fce6bb9ab910fab3373ec8e537fc2d01a9`, with
the prior finding resolved and no new findings.
- Fixed a CI timing failure in the GitHub mention integration test:
asynchronous admission now has an explicit ten-second assertion deadline
instead of the default one second. The failure reproduced locally; all
five mention variants and all 398 cases in the matching CI shard pass
after the fix.
- Hosted CI passed on `35a979fce6bb9ab910fab3373ec8e537fc2d01a9`: **54
successful checks**, two intentionally skipped Storybook checks, no
failures or pending checks.

Provider responses are simulated in the integration suite. PostgreSQL,
transactions, service dispatch, and scheduling are real. No live Slack
workspace was used.

## Risks

- Every producer that changes runnable state must emit a transaction
signal. This change covers the five queues and their foreground
dispatch/retry paths. Direct SQL and independent DB owners still need
explicit integration or startup recovery.
- Missing retry or claim deadlines can strand work. Tests compare the
dispatch and deadline behavior, including paused and uncertain states.
- Other provider maintenance, sockets, and scheduled jobs remain. This
change does not establish full instance sleep.
- No new tables, migrations, or provider credentials are required.

## Model Used

OpenAI Codex (GPT-6), with repository inspection, code execution, and
automated tests.

## 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-10-10 13:14:23 -05:00