paperclip/server/src/__tests__
Dotta 778e775c35
Add secrets provider vaults and remote import (#5429)
## Thinking Path

> - Paperclip orchestrates AI-agent companies and needs secrets handling
to work across local development, hosted operators, and governed agent
execution.
> - The affected subsystem is the company-scoped secrets control plane:
database schema, server services/routes, CLI workflows, and the Secrets
settings UI.
> - The gap was that secrets were local-only and operators could not
manage provider vaults or import existing remote references without
exposing plaintext.
> - This branch adds provider vault configuration plus an AWS Secrets
Manager remote-import path while preserving company boundaries, binding
context, and audit trails.
> - I kept the PR to a single branch PR, removed unrelated
lockfile/package drift, rebased the full branch onto the current
`public-gh/master`, and addressed fresh Greptile findings.
> - The benefit is a reviewable implementation of provider-backed
secrets with focused tests covering provider selection, import
conflicts, deleted secret reuse, rotation guards, and AWS signing
behavior.

## What Changed

- Added provider vault support for company secrets, including provider
config storage, default vault handling, health checks, binding usage,
access events, and remote import preview/commit.
- Added an AWS Secrets Manager provider using SigV4 request signing,
bounded request timeouts, namespace guardrails, cached runtime
credential resolution, and external-reference linking without plaintext
reads.
- Added Secrets UI surfaces for vault management and remote import, plus
CLI/API documentation for setup and operations.
- Stabilized routine webhook secret binding paths and SSH
environment-driver fixture bindings discovered during verification.
- Addressed Greptile and CI findings: no lockfile/package drift,
monotonic migration metadata, disabled-vault default races, soft-deleted
secret hiding/recreate behavior, remove behavior with disabled vaults,
soft-deleted external-reference re-import, non-active rotation guards,
managed-secret soft deletion through PATCH, and per-call AWS SDK
credential client churn.
- Rebased this branch onto `public-gh/master` at `0e1a5828` and
force-pushed with lease to keep this as the single PR for the branch.

## Verification

- `git fetch public-gh master`
- `git rebase public-gh/master`
- `git diff --name-only public-gh/master...HEAD | grep
'^pnpm-lock\.yaml$' || true` confirmed `pnpm-lock.yaml` is not in the PR
diff.
- Confirmed migration ordering: master ends at `0081_optimal_dormammu`;
this PR adds `0082_dry_vision` and
`0083_company_secret_provider_configs`.
- Inspected migrations for repeat safety: new tables/indexes use `IF NOT
EXISTS`; foreign keys are guarded by `DO $$ ... IF NOT EXISTS`; column
additions use `ADD COLUMN IF NOT EXISTS`.
- `pnpm -r typecheck` passed before the Greptile follow-up commits.
- `pnpm test:run` ran the full stable Vitest path before the Greptile
follow-up commits; it completed with 3 timing-related failures under
parallel load: `codex-local-execute.test.ts`,
`cursor-local-execute.test.ts`, and `environment-service.test.ts`.
- `pnpm --filter @paperclipai/server exec vitest run
src/__tests__/codex-local-execute.test.ts
src/__tests__/cursor-local-execute.test.ts
src/__tests__/environment-service.test.ts` passed on targeted rerun
(`24/24`).
- `pnpm build` passed before the Greptile follow-up commits. Vite
reported existing chunk-size/dynamic-import warnings.
- After Greptile follow-up commits: `pnpm --filter @paperclipai/server
exec vitest run src/__tests__/secrets-service.test.ts` passed (`26/26`).
- After Greptile follow-up commits: `pnpm --filter @paperclipai/server
exec vitest run src/__tests__/aws-secrets-manager-provider.test.ts
src/__tests__/secrets-service.test.ts` passed (`39/39`).
- After Greptile follow-up commits: `pnpm --filter @paperclipai/server
typecheck` passed.
- Captured Storybook screenshots from `ui/storybook-static` for visual
review.
- Latest PR checks on `5ca3a5cf`: `policy`, serialized server suites
1/4-4/4, `Canary Dry Run`, `e2e`, `security/snyk`, and `Greptile Review`
pass; aggregate `verify` is still registering the completed child
checks.
- Greptile review loop continued through the latest requested pass; all
Greptile review threads are resolved and the latest `Greptile Review`
check on `5ca3a5cf` passed with 0 comments added.

## Screenshots

Before: the provider-vault and remote-import surfaces did not exist on
`master`; these are after-state screenshots from the Storybook fixtures.

![Secrets
inventory](https://raw.githubusercontent.com/paperclipai/paperclip/PAP-2339-secrets-make-a-plan/doc/pr/5429/secrets-inventory.png)

![Secret binding
picker](https://raw.githubusercontent.com/paperclipai/paperclip/PAP-2339-secrets-make-a-plan/doc/pr/5429/secret-binding-picker.png)

![Environment editor with
secrets](https://raw.githubusercontent.com/paperclipai/paperclip/PAP-2339-secrets-make-a-plan/doc/pr/5429/env-editor-with-secrets.png)

## Risks

- Migration risk: this adds new secret provider tables and extends
existing secret rows. The migrations were checked for monotonic ordering
and idempotent guards, but reviewers should still inspect upgrade
behavior carefully.
- Provider risk: AWS support uses direct SigV4 requests. Automated tests
cover signing, request timeouts, vault-config selection, namespace
guardrails, pending-version archival, sanitized provider errors, and
service-level cleanup paths. A real-vault AWS smoke test remains
deployment validation for an operator with AWS credentials rather than
an unverified merge blocker in this local branch.
- UI risk: the Secrets page and import dialog are large new surfaces;
screenshots are included above for reviewer inspection.
- Verification risk: the full local stable test command hit
parallel-load timing failures, although the exact failed files passed
when rerun directly.
- Operational risk: remote import intentionally avoids plaintext reads;
operators must understand that imported external references resolve at
runtime and may fail if AWS permissions change.

> For core feature work, check [`ROADMAP.md`](ROADMAP.md) first and
discuss it in `#dev` before opening the PR. Feature PRs that overlap
with planned core work may need to be redirected — check the roadmap
first. See `CONTRIBUTING.md`.

## Model Used

- OpenAI Codex, GPT-5 coding agent with local shell/tool use in the
Paperclip worktree. Exact context-window size was not exposed by the
runtime.

## 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
- [ ] I have run tests locally and they pass
- [x] I have added or updated tests where applicable
- [x] If this change affects the UI, I have included before/after
screenshots
- [x] I have updated relevant documentation to reflect my changes
- [x] I have considered and documented any risks above
- [x] I will address all Greptile and reviewer comments before
requesting merge

---------

Co-authored-by: Paperclip <noreply@paperclip.ing>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-09 18:22:17 -05:00
..
fixtures Stabilize runtime probes and Codex env tests (#5445) 2026-05-07 14:52:31 -07:00
helpers test(worktree): address embedded postgres helper review feedback 2026-03-26 11:56:05 -05:00
README.md [codex] Add runtime lifecycle recovery and live issue visibility (#4419) 2026-04-24 15:50:32 -05:00
access-service.test.ts [codex] Add access cleanup and user profile page (#4088) 2026-04-20 06:10:20 -05:00
access-validators.test.ts feat: implement multi-user access and invite flows (#3784) 2026-04-17 09:44:19 -05:00
acpx-local-adapter-environment.test.ts Add ACPX local adapter runtime (#4893) 2026-04-30 19:57:05 -05:00
acpx-local-execute.test.ts Improve ACPX adapter configuration (#5290) 2026-05-06 06:06:47 -05:00
acpx-local-skill-sync.test.ts Add ACPX local adapter runtime (#4893) 2026-04-30 19:57:05 -05:00
activity-routes.test.ts Fix Cloud tenant issue identifier routes (#5196) 2026-05-04 13:20:58 -05:00
activity-service.test.ts [codex] Add runtime lifecycle recovery and live issue visibility (#4419) 2026-04-24 15:50:32 -05:00
adapter-model-refresh-routes.test.ts Switch OpenCode to explicit static/local-aware model selection (#5117) 2026-05-03 13:01:34 -07:00
adapter-models.test.ts Improve ACPX adapter configuration (#5290) 2026-05-06 06:06:47 -05:00
adapter-registry.test.ts Add cheap model profiles for local adapters (#4881) 2026-04-30 15:32:04 -05:00
adapter-routes-authz.test.ts [codex] Stabilize tests and local maintenance assets (#4423) 2026-04-24 15:11:42 -05:00
adapter-routes.test.ts Improve ACPX adapter configuration (#5290) 2026-05-06 06:06:47 -05:00
adapter-session-codecs.test.ts Add ACPX local adapter runtime (#4893) 2026-04-30 19:57:05 -05:00
agent-adapter-validation-routes.test.ts [codex] Stabilize tests and local maintenance assets (#4423) 2026-04-24 15:11:42 -05:00
agent-auth-jwt.test.ts fix(agent-auth): fall back to BETTER_AUTH_SECRET when PAPERCLIP_AGENT_JWT_SECRET is absent 2026-04-05 19:10:00 +00:00
agent-cross-tenant-authz-routes.test.ts [codex] Stabilize tests and local maintenance assets (#4423) 2026-04-24 15:11:42 -05:00
agent-instructions-routes.test.ts Add secrets provider vaults and remote import (#5429) 2026-05-09 18:22:17 -05:00
agent-instructions-service.test.ts fix: address latest Greptile runtime review 2026-03-23 19:43:50 -05:00
agent-live-run-routes.test.ts Preserve scope on manual heartbeat invokes (#5323) 2026-05-05 19:30:08 -07:00
agent-permissions-routes.test.ts Switch OpenCode to explicit static/local-aware model selection (#5117) 2026-05-03 13:01:34 -07:00
agent-shortname-collision.test.ts Auto-deduplicate agent shortname on join request approval 2026-03-06 13:54:58 -06:00
agent-skill-contract.test.ts Add unmanaged skill provenance to agent skills 2026-03-18 14:21:50 -05:00
agent-skills-routes.test.ts Add ACPX local adapter runtime (#4893) 2026-04-30 19:57:05 -05:00
agent-test-environment-routes.test.ts Run explicit-environment adapter tests on the requested target instead of falling back to the host (#5277) 2026-05-05 08:00:32 -07:00
app-hmr-port.test.ts Fix execution workspace runtime lifecycle 2026-03-14 09:35:35 -05:00
app-private-hostname-gate.test.ts [codex] harden authenticated routes and issue editor reliability (#3741) 2026-04-15 08:41:15 -05:00
app-vite-dev-routing.test.ts [codex] fix worktree dev dependency ergonomics (#3743) 2026-04-15 09:47:29 -05:00
approval-routes-idempotency.test.ts [codex] Stabilize tests and local maintenance assets (#4423) 2026-04-24 15:11:42 -05:00
approvals-service.test.ts Fix approvals service idempotency test 2026-03-10 15:05:19 -05:00
assets.test.ts [codex] Stabilize tests and local maintenance assets (#4423) 2026-04-24 15:11:42 -05:00
attachment-types.test.ts Allow arbitrary issue attachments 2026-04-06 21:24:12 -05:00
auth-routes.test.ts [codex] Stabilize tests and local maintenance assets (#4423) 2026-04-24 15:11:42 -05:00
auth-session-route.test.ts Support Cloud tenant identity bootstrap 2026-05-03 21:55:52 -05:00
authz-company-access.test.ts feat: implement multi-user access and invite flows (#3784) 2026-04-17 09:44:19 -05:00
aws-secrets-manager-provider.test.ts Add secrets provider vaults and remote import (#5429) 2026-05-09 18:22:17 -05:00
better-auth.test.ts fix(auth): trust allowed hostname port variants on detected listen port (#4554) 2026-04-26 15:40:39 -07:00
board-mutation-guard.test.ts [codex] Harden execution reliability and heartbeat tooling (#3679) 2026-04-14 13:34:52 -05:00
budgets-service.test.ts Fix budget incident resolution edge cases 2026-03-16 16:48:13 -05:00
claude-local-adapter-environment.test.ts Add dedicated environment settings page and test-in-environment (#4798) 2026-04-29 15:56:13 -07:00
claude-local-adapter.test.ts [codex] Retry max-turn exhausted heartbeats (#5096) 2026-05-03 11:30:48 -05:00
claude-local-execute.test.ts Add secrets provider vaults and remote import (#5429) 2026-05-09 18:22:17 -05:00
claude-local-skill-sync.test.ts Add unmanaged skill provenance to agent skills 2026-03-18 14:21:50 -05:00
cleanup-removal-service.test.ts [codex] Improve transient recovery and Codex model refresh (#4383) 2026-04-24 09:40:40 -05:00
cli-auth-routes.test.ts [codex] Stabilize tests and local maintenance assets (#4423) 2026-04-24 15:11:42 -05:00
codex-local-adapter-environment.test.ts test(codex): move OPENAI_API_KEY stub to beforeEach for all tests 2026-03-24 12:33:11 -07:00
codex-local-adapter.test.ts Add username log censor setting 2026-03-20 08:50:00 -05:00
codex-local-execute.test.ts Add sandbox callback bridge for remote environment API access (#4801) 2026-04-29 16:37:34 -07:00
codex-local-skill-injection.test.ts [codex] Harden create-agent skill governance (#4422) 2026-04-24 14:15:28 -05:00
codex-local-skill-sync.test.ts [codex] Harden create-agent skill governance (#4422) 2026-04-24 14:15:28 -05:00
companies-route-path-guard.test.ts Add feedback voting and thumbs capture flow 2026-04-02 09:11:49 -05:00
company-branding-route.test.ts [codex] Stabilize tests and local maintenance assets (#4423) 2026-04-24 15:11:42 -05:00
company-portability-routes.test.ts [codex] Stabilize tests and local maintenance assets (#4423) 2026-04-24 15:11:42 -05:00
company-portability.test.ts Add secrets provider vaults and remote import (#5429) 2026-05-09 18:22:17 -05:00
company-search-rate-limit-routes.test.ts Add full company search page (#5293) 2026-05-06 06:32:37 -05:00
company-search-service.test.ts Add full company search page (#5293) 2026-05-06 06:32:37 -05:00
company-skills-detail.test.ts [codex] Speed up company skill detail loading (#4380) 2026-04-24 07:37:13 -05:00
company-skills-routes.test.ts [codex] Stabilize tests and local maintenance assets (#4423) 2026-04-24 15:11:42 -05:00
company-skills-service.test.ts [codex] Reject stale company skill refreshes (#4601) 2026-04-27 13:19:38 -05:00
company-skills.test.ts Fix imported GitHub skill file paths 2026-03-23 16:57:38 -05:00
company-user-directory-route.test.ts feat: implement multi-user access and invite flows (#3784) 2026-04-17 09:44:19 -05:00
costs-service.test.ts Improve operator workflow QoL (#5291) 2026-05-06 06:30:44 -05:00
cursor-local-adapter-environment.test.ts Add cursor sandbox support and fix SSH workspace sync (#4803) 2026-04-29 16:12:06 -07:00
cursor-local-adapter.test.ts Humanize run transcripts across run detail and live surfaces 2026-03-11 10:35:41 -05:00
cursor-local-execute.test.ts Add secrets provider vaults and remote import (#5429) 2026-05-09 18:22:17 -05:00
cursor-local-skill-injection.test.ts feat(cursor): export skill injection helper and document auto-behaviors 2026-03-05 08:35:59 -06:00
cursor-local-skill-sync.test.ts Namespace company skill identities 2026-03-16 18:27:20 -05:00
dashboard-service.test.ts [codex] Harden heartbeat scheduling and runtime controls (#4223) 2026-04-21 12:24:11 -05:00
dev-runner-output.test.ts Guard dev health JSON parsing 2026-04-06 21:23:33 -05:00
dev-runner-paths.test.ts [codex] Add backup endpoint and dev runtime hardening (#4087) 2026-04-20 06:08:55 -05:00
dev-runner-worktree.test.ts fix(dev-runner): tighten worktree env bootstrap 2026-04-11 08:35:53 -05:00
dev-server-status.test.ts Guard dev health JSON parsing 2026-04-06 21:23:33 -05:00
dev-watch-ignore.test.ts Harden dev-watch excludes for nested UI outputs 2026-03-26 12:35:19 -05:00
documents-service.test.ts [codex] Add run liveness continuations (#4083) 2026-04-20 06:01:49 -05:00
documents.test.ts feat(issues): add issue documents and inline editing 2026-03-13 21:30:48 -05:00
environment-config.test.ts Generalize sandbox provider core for plugin-only providers (#4449) 2026-04-24 18:03:41 -07:00
environment-execution-target.test.ts Migrate SSH environment callback to bridge (#5116) 2026-05-03 12:43:52 -07:00
environment-live-ssh.test.ts Add secrets provider vaults and remote import (#5429) 2026-05-09 18:22:17 -05:00
environment-probe.test.ts Generalize sandbox provider core for plugin-only providers (#4449) 2026-04-24 18:03:41 -07:00
environment-routes.test.ts Add secrets provider vaults and remote import (#5429) 2026-05-09 18:22:17 -05:00
environment-run-orchestrator.test.ts Let adapters declare runtime command spec for remote provisioning (#5141) 2026-05-03 18:35:36 -07:00
environment-runtime-driver-contract.test.ts Add secrets provider vaults and remote import (#5429) 2026-05-09 18:22:17 -05:00
environment-runtime.test.ts Add secrets provider vaults and remote import (#5429) 2026-05-09 18:22:17 -05:00
environment-selection-route-guards.test.ts [codex] Split backend control-plane QoL slice (#4700) 2026-04-28 16:46:45 -05:00
environment-service.test.ts Add SSH environment support (#4358) 2026-04-23 19:15:22 -07:00
environment-test-harness.test.ts Add sandbox environment support (#4415) 2026-04-24 12:15:53 -07:00
error-handler.test.ts fix(server): attach raw Error to res.err and avoid pino err key collision 2026-03-07 15:19:03 -06:00
execution-workspace-policy.test.ts Add SSH environment support (#4358) 2026-04-23 19:15:22 -07:00
execution-workspaces-routes.test.ts [codex] Stabilize tests and local maintenance assets (#4423) 2026-04-24 15:11:42 -05:00
execution-workspaces-service.test.ts Add SSH environment support (#4358) 2026-04-23 19:15:22 -07:00
express5-auth-wildcard.test.ts [codex] Stabilize tests and local maintenance assets (#4423) 2026-04-24 15:11:42 -05:00
feedback-service.test.ts [codex] Add runtime lifecycle recovery and live issue visibility (#4419) 2026-04-24 15:50:32 -05:00
feedback-share-client.test.ts Restore feedback trace export fixes 2026-04-03 15:59:42 -05:00
forbidden-tokens.test.ts Redact current user in comments and token checks 2026-03-11 22:17:21 -05:00
gemini-local-adapter-environment.test.ts Fix Gemini local execution and diagnostics 2026-03-14 21:36:05 -05:00
gemini-local-adapter.test.ts Handle Gemini CLI v0.38 stream-json wire format across parser, UI, and CLI formatter (#5273) 2026-05-05 08:00:14 -07:00
gemini-local-execute.test.ts [codex] Retry max-turn exhausted heartbeats (#5096) 2026-05-03 11:30:48 -05:00
gemini-local-skill-sync.test.ts Namespace company skill identities 2026-03-16 18:27:20 -05:00
health-dev-server-token.test.ts [codex] Add backup endpoint and dev runtime hardening (#4087) 2026-04-20 06:08:55 -05:00
health.test.ts feat: implement multi-user access and invite flows (#3784) 2026-04-17 09:44:19 -05:00
heartbeat-active-run-output-watchdog.test.ts Add recovery handoff system notices (#5289) 2026-05-06 06:05:58 -05:00
heartbeat-comment-wake-batching.test.ts Add recovery handoff system notices (#5289) 2026-05-06 06:05:58 -05:00
heartbeat-context-summary.test.ts Add planning mode for issue work (#5353) 2026-05-06 07:01:28 -05:00
heartbeat-dependency-scheduling.test.ts Guard assigned backlog liveness (#5428) 2026-05-07 12:25:26 -05:00
heartbeat-issue-liveness-escalation.test.ts Guard assigned backlog liveness (#5428) 2026-05-07 12:25:26 -05:00
heartbeat-list.test.ts [codex] Improve agent runtime recovery and governance (#4086) 2026-04-20 06:19:48 -05:00
heartbeat-local-environment.test.ts Add local environment lifecycle (#4297) 2026-04-22 20:07:41 -07:00
heartbeat-model-profile.test.ts Add cheap model profiles for local adapters (#4881) 2026-04-30 15:32:04 -05:00
heartbeat-plugin-environment.test.ts fix(ci): gate new release packages on npm bootstrap (#5146) 2026-05-03 19:31:28 -07:00
heartbeat-process-recovery.test.ts Add secrets provider vaults and remote import (#5429) 2026-05-09 18:22:17 -05:00
heartbeat-project-env.test.ts Add secrets provider vaults and remote import (#5429) 2026-05-09 18:22:17 -05:00
heartbeat-retry-scheduling.test.ts Add recovery handoff system notices (#5289) 2026-05-06 06:05:58 -05:00
heartbeat-run-log.test.ts [codex] Harden execution reliability and heartbeat tooling (#3679) 2026-04-14 13:34:52 -05:00
heartbeat-run-summary.test.ts [codex] Add run liveness continuations (#4083) 2026-04-20 06:01:49 -05:00
heartbeat-runtime-state.test.ts Fix runtime state race, workspace sync, plugin startup, and orphaned leases (#4804) 2026-04-29 16:37:10 -07:00
heartbeat-stale-queue-invalidation.test.ts Add secrets provider vaults and remote import (#5429) 2026-05-09 18:22:17 -05:00
heartbeat-start-lock.test.ts [codex] Add runtime lifecycle recovery and live issue visibility (#4419) 2026-04-24 15:50:32 -05:00
heartbeat-workspace-session.test.ts Add sandbox environment support (#4415) 2026-04-24 12:15:53 -07:00
hire-hook.test.ts fix(adapters): honor paused overrides and isolate UI parser state 2026-04-04 14:04:33 -05:00
http-log-policy.test.ts [codex] Add backup endpoint and dev runtime hardening (#4087) 2026-04-20 06:08:55 -05:00
inbox-dismissals.test.ts Persist non-issue inbox dismissals 2026-04-09 06:16:05 -05:00
instance-database-backups-routes.test.ts [codex] Add backup endpoint and dev runtime hardening (#4087) 2026-04-20 06:08:55 -05:00
instance-settings-routes.test.ts Revert "Add experimental newest-first issue thread" (#5460) 2026-05-07 16:50:31 -07:00
invite-accept-existing-member.test.ts feat: implement multi-user access and invite flows (#3784) 2026-04-17 09:44:19 -05:00
invite-accept-gateway-defaults.test.ts Remove legacy OpenClaw adapter and keep gateway-only flow 2026-03-07 18:50:25 -06:00
invite-accept-replay.test.ts Remove legacy OpenClaw adapter and keep gateway-only flow 2026-03-07 18:50:25 -06:00
invite-create-route.test.ts [codex] Stabilize tests and local maintenance assets (#4423) 2026-04-24 15:11:42 -05:00
invite-expiry.test.ts feat: implement multi-user access and invite flows (#3784) 2026-04-17 09:44:19 -05:00
invite-join-grants.test.ts feat: implement multi-user access and invite flows (#3784) 2026-04-17 09:44:19 -05:00
invite-join-manager.test.ts Assign invite-joined agents to company CEO 2026-03-06 11:22:24 -06:00
invite-list-route.test.ts feat: implement multi-user access and invite flows (#3784) 2026-04-17 09:44:19 -05:00
invite-logo-route.test.ts feat: implement multi-user access and invite flows (#3784) 2026-04-17 09:44:19 -05:00
invite-onboarding-text.test.ts Fix SSH callback URL selection for LAN and private networks (#4799) 2026-04-29 15:56:17 -07:00
invite-summary-route.test.ts [codex] Stabilize tests and local maintenance assets (#4423) 2026-04-24 15:11:42 -05:00
invite-test-resolution-route.test.ts [codex] Add runtime lifecycle recovery and live issue visibility (#4419) 2026-04-24 15:50:32 -05:00
issue-activity-events-routes.test.ts Show workspace changes and stale notices in issue threads (#5356) 2026-05-06 09:00:54 -05:00
issue-agent-mutation-ownership-routes.test.ts [codex] Split backend control-plane QoL slice (#4700) 2026-04-28 16:46:45 -05:00
issue-assigned-backlog-contract-routes.test.ts Guard assigned backlog liveness (#5428) 2026-05-07 12:25:26 -05:00
issue-attachment-routes.test.ts [codex] Split backend control-plane QoL slice (#4700) 2026-04-28 16:46:45 -05:00
issue-blocker-attention.test.ts Guard assigned backlog liveness (#5428) 2026-05-07 12:25:26 -05:00
issue-closed-workspace-routes.test.ts [codex] Split backend control-plane QoL slice (#4700) 2026-04-28 16:46:45 -05:00
issue-comment-cancel-routes.test.ts [codex] Split backend control-plane QoL slice (#4700) 2026-04-28 16:46:45 -05:00
issue-comment-reopen-routes.test.ts Harden control-plane safety and issue identifiers (#5292) 2026-05-06 07:49:47 -05:00
issue-continuation-summary.test.ts [codex] Add run liveness continuations (#4083) 2026-04-20 06:01:49 -05:00
issue-dependency-wakeups-routes.test.ts [codex] Split backend control-plane QoL slice (#4700) 2026-04-28 16:46:45 -05:00
issue-document-restore-routes.test.ts [codex] Split backend control-plane QoL slice (#4700) 2026-04-28 16:46:45 -05:00
issue-execution-policy-routes.test.ts Harden control-plane safety and issue identifiers (#5292) 2026-05-06 07:49:47 -05:00
issue-execution-policy.test.ts [codex] Add issue monitor liveness controls (#4988) 2026-05-03 08:58:53 -05:00
issue-feedback-routes.test.ts [codex] Split backend control-plane QoL slice (#4700) 2026-04-28 16:46:45 -05:00
issue-goal-fallback.test.ts Seed onboarding project and issue goal context 2026-03-24 11:48:59 -05:00
issue-identifier-routes.test.ts Fix Cloud tenant issue identifier routes (#5196) 2026-05-04 13:20:58 -05:00
issue-liveness.test.ts Guard assigned backlog liveness (#5428) 2026-05-07 12:25:26 -05:00
issue-monitor-scheduler.test.ts Add recovery handoff system notices (#5289) 2026-05-06 06:05:58 -05:00
issue-references-service.test.ts Add first-class issue references (#4214) 2026-04-21 10:02:52 -05:00
issue-scheduled-retry-routes.test.ts Add issue controls and retry-now recovery (#5426) 2026-05-07 12:23:13 -05:00
issue-stale-execution-lock-routes.test.ts [codex] Fix stale issue execution run locks (#4258) 2026-04-22 10:43:38 -05:00
issue-telemetry-routes.test.ts [codex] Split backend control-plane QoL slice (#4700) 2026-04-28 16:46:45 -05:00
issue-thread-interaction-routes.test.ts Add workflow interaction cancellation and issue cost summaries (#4862) 2026-04-30 13:57:25 -05:00
issue-thread-interactions-service.test.ts Add planning mode for issue work (#5353) 2026-05-06 07:01:28 -05:00
issue-tree-control-routes.test.ts [codex] Split backend control-plane QoL slice (#4700) 2026-04-28 16:46:45 -05:00
issue-tree-control-service-unit.test.ts [codex] Add issue subtree pause, cancel, and restore controls (#4332) 2026-04-23 14:51:46 -05:00
issue-tree-control-service.test.ts [codex] Split backend control-plane QoL slice (#4700) 2026-04-28 16:46:45 -05:00
issue-update-comment-wakeup-routes.test.ts [codex] Split backend control-plane QoL slice (#4700) 2026-04-28 16:46:45 -05:00
issue-workspace-command-authz.test.ts [codex] Split backend control-plane QoL slice (#4700) 2026-04-28 16:46:45 -05:00
issues-checkout-wakeup.test.ts Cut over OpenClaw adapter to strict SSE streaming 2026-03-05 15:54:55 -06:00
issues-goal-context-routes.test.ts Add issue controls and retry-now recovery (#5426) 2026-05-07 12:23:13 -05:00
issues-service.test.ts Expand plugin host surface (#5205) 2026-05-05 07:42:57 -05:00
issues-user-context.test.ts Normalize derived issue timestamps to avoid 500s 2026-03-06 09:03:27 -06:00
join-request-dedupe.test.ts feat: implement multi-user access and invite flows (#3784) 2026-04-17 09:44:19 -05:00
json-schema-secret-refs.test.ts Generalize sandbox provider core for plugin-only providers (#4449) 2026-04-24 18:03:41 -07:00
llms-routes.test.ts [codex] Stabilize tests and local maintenance assets (#4423) 2026-04-24 15:11:42 -05:00
log-redaction.test.ts Add username log censor setting 2026-03-20 08:50:00 -05:00
logger-tz.test.ts [codex] Harden execution reliability and heartbeat tooling (#3679) 2026-04-14 13:34:52 -05:00
monthly-spend-service.test.ts Fix budget auth and monthly spend rollups 2026-03-16 15:41:48 -05:00
normalize-agent-mention-token.test.ts test(issues): shorten mid-token entity test comment 2026-03-24 15:39:59 +02:00
openclaw-gateway-adapter.test.ts Clarify issue-scoped comment wake prompts 2026-04-04 18:14:19 -05:00
openclaw-invite-prompt-route.test.ts [codex] Stabilize tests and local maintenance assets (#4423) 2026-04-24 15:11:42 -05:00
opencode-local-adapter-environment.test.ts Address PR feedback: keep testEnvironment non-destructive, warn on swallowed errors 2026-03-07 15:50:14 -05:00
opencode-local-adapter.test.ts Humanize run transcripts across run detail and live surfaces 2026-03-11 10:35:41 -05:00
opencode-local-skill-sync.test.ts Namespace company skill identities 2026-03-16 18:27:20 -05:00
paperclip-env.test.ts Fix SSH callback URL selection for LAN and private networks (#4799) 2026-04-29 15:56:17 -07:00
paperclip-skill-utils.test.ts feat: add paperclip-dev skill with optional bundled skill support (#3854) 2026-04-26 11:06:13 -07:00
pi-local-adapter-environment.test.ts Improve Pi adapter diagnostics 2026-03-14 21:11:06 -05:00
pi-local-execute.test.ts fix(pi-local): prepend installed skill bin/ dirs to child PATH (#4331) 2026-04-23 10:15:10 -05:00
pi-local-skill-sync.test.ts Namespace company skill identities 2026-03-16 18:27:20 -05:00
plugin-database.test.ts Expand plugin host surface (#5205) 2026-05-05 07:42:57 -05:00
plugin-dev-watcher.test.ts Tighten plugin dev file watching 2026-03-14 12:07:04 -05:00
plugin-environment-driver-seam.test.ts Add sandbox environment support (#4415) 2026-04-24 12:15:53 -07:00
plugin-local-folders.test.ts Expand plugin host surface (#5205) 2026-05-05 07:42:57 -05:00
plugin-managed-agents.test.ts Expand plugin host surface (#5205) 2026-05-05 07:42:57 -05:00
plugin-managed-routines.test.ts Expand plugin host surface (#5205) 2026-05-05 07:42:57 -05:00
plugin-orchestration-apis.test.ts Expand plugin host surface (#5205) 2026-05-05 07:42:57 -05:00
plugin-routes-authz.test.ts Add secrets provider vaults and remote import (#5429) 2026-05-09 18:22:17 -05:00
plugin-scoped-api-routes.test.ts Expand plugin host surface (#5205) 2026-05-05 07:42:57 -05:00
plugin-sdk-orchestration-contract.test.ts Expand plugin host surface (#5205) 2026-05-05 07:42:57 -05:00
plugin-secrets-handler.test.ts Add secrets provider vaults and remote import (#5429) 2026-05-09 18:22:17 -05:00
plugin-telemetry-bridge.test.ts Add plugin telemetry bridge capability 2026-04-02 10:47:29 -05:00
plugin-worker-manager.test.ts Stabilize runtime probes and Codex env tests (#5445) 2026-05-07 14:52:31 -07:00
private-hostname-guard.test.ts [codex] Harden execution reliability and heartbeat tooling (#3679) 2026-04-14 13:34:52 -05:00
productivity-review-service.test.ts Add recovery handoff system notices (#5289) 2026-05-06 06:05:58 -05:00
project-goal-telemetry-routes.test.ts [codex] Stabilize tests and local maintenance assets (#4423) 2026-04-24 15:11:42 -05:00
project-routes-env.test.ts [codex] Stabilize tests and local maintenance assets (#4423) 2026-04-24 15:11:42 -05:00
project-shortname-resolution.test.ts feat: deduplicate project shortnames on create and update 2026-03-07 08:59:34 -06:00
quota-windows-service.test.ts feat(costs): add billing, quota, and budget control plane 2026-03-16 15:11:01 -05:00
quota-windows.test.ts fix: Anthropic subscription quota always shows 100% used (#3589) 2026-04-15 06:44:26 -05:00
recovery-classifiers.test.ts [codex] Add issue monitor liveness controls (#4988) 2026-05-03 08:58:53 -05:00
redaction.test.ts Add ACPX local adapter runtime (#4893) 2026-04-30 19:57:05 -05:00
routine-run-telemetry.test.ts Address Greptile telemetry review comments 2026-04-03 14:11:11 -05:00
routines-e2e.test.ts [codex] Stabilize tests and local maintenance assets (#4423) 2026-04-24 15:11:42 -05:00
routines-routes.test.ts Add routine revision history and restore flow (#5285) 2026-05-05 11:54:52 -05:00
routines-service.test.ts Add secrets provider vaults and remote import (#5429) 2026-05-09 18:22:17 -05:00
run-continuations.test.ts Add recovery handoff system notices (#5289) 2026-05-06 06:05:58 -05:00
run-liveness.test.ts [codex] Add runtime lifecycle recovery and live issue visibility (#4419) 2026-04-24 15:50:32 -05:00
runtime-api.test.ts Fix SSH callback URL selection for LAN and private networks (#4799) 2026-04-29 15:56:17 -07:00
sandbox-provider-runtime.test.ts Generalize sandbox provider core for plugin-only providers (#4449) 2026-04-24 18:03:41 -07:00
secret-provider-registry.test.ts Add secrets provider vaults and remote import (#5429) 2026-05-09 18:22:17 -05:00
secrets-routes.test.ts Add secrets provider vaults and remote import (#5429) 2026-05-09 18:22:17 -05:00
secrets-service.test.ts Add secrets provider vaults and remote import (#5429) 2026-05-09 18:22:17 -05:00
server-startup-feedback-export.test.ts Add recovery handoff system notices (#5289) 2026-05-06 06:05:58 -05:00
setup-supertest.ts [codex] Stabilize tests and local maintenance assets (#4423) 2026-04-24 15:11:42 -05:00
shared-telemetry-events.test.ts feat: implement multi-user access and invite flows (#3784) 2026-04-17 09:44:19 -05:00
sidebar-preferences-routes.test.ts [codex] Stabilize tests and local maintenance assets (#4423) 2026-04-24 15:11:42 -05:00
storage-local-provider.test.ts fix: storage S3 stream conversion, API client FormData support, and attachment API 2026-02-20 10:33:10 -06:00
telemetry-client-flush.test.ts fix: harden heartbeat and adapter runtime workflows 2026-04-10 22:26:21 -05:00
ui-branding.test.ts Add worktree UI branding 2026-03-13 11:12:43 -05:00
user-profile-routes.test.ts [codex] Add structured issue-thread interactions (#4244) 2026-04-21 20:15:11 -05:00
vite-html-renderer.test.ts [codex] Add backup endpoint and dev runtime hardening (#4087) 2026-04-20 06:08:55 -05:00
work-products.test.ts Address remaining Greptile workspace review 2026-03-17 10:12:44 -05:00
workspace-runtime-routes-authz.test.ts [codex] Split backend control-plane QoL slice (#4700) 2026-04-28 16:46:45 -05:00
workspace-runtime-service-authz.test.ts [codex] harden authenticated routes and issue editor reliability (#3741) 2026-04-15 08:41:15 -05:00
workspace-runtime.test.ts Improve operator workflow QoL (#5291) 2026-05-06 06:30:44 -05:00
worktree-config.test.ts Tighten publicBaseUrl port rewriting (#4553) 2026-04-26 14:29:22 -07:00

README.md

Server Tests

Server tests that need a real PostgreSQL process must use ./helpers/embedded-postgres.ts instead of constructing embedded-postgres directly.

The shared helper creates a throwaway data directory and a reserved-safe loopback port for each test database. This protects the live Paperclip control-plane Postgres from server vitest runs; see PAP-2033 for the incident that introduced this guard.