Commit Graph
486 Commits
Author SHA1 Message Date
DottaandPaperclip 5b54009a03 test(evals): retain frozen chat scope across merged capability maps
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-10-27 13:11:41 -05:00
DottaandPaperclip e0b2fec56f Merge pinned master 50b932a142 into preserved chat campaign candidate
Preserve existing campaign measurements and initial ordinals; incorporate already-merged production behavior only. No live qualification claimed.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-10-27 13:07:03 -05:00
DottaandPaperclip 78de49f09d test(evals): use ordinary embedded Postgres on AWS chat
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-10-27 12:44:48 -05:00
Dotta e68d1a8044 fix(evals): preserve retained model in discovered suite profiles 2026-10-27 12:28:24 -05:00
DottaandPaperclip 8eb98eb527 test(e2e): retain sanitized setup health failure detail
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-10-27 12:27:50 -05:00
Dotta 93d635a806 fix(evals): link existing campaign summary when present 2026-10-27 12:24:44 -05:00
Dotta 36dc8027e9 fix(evals): bind role clarification and reject current skill denial 2026-10-27 12:21:30 -05:00
Dotta ba0da21ddc fix(evals): ground blocked journey oracles in public state 2026-10-27 12:21:30 -05:00
Dotta 17551f7c04 fix(evals): implement access invitation checkpoints and membership baselines 2026-10-27 12:21:30 -05:00
DottaandPaperclip 139d83b777 test(evals): add explicit zero-work chat setup health
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-10-27 11:48:17 -05:00
DottaandPaperclip e10d068130 test(evals): retain closed same-call readiness diagnostics
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-10-27 11:48:17 -05:00
DottaandPaperclip 8548173fc9 feat(evals): connect hosted Runner costs and traces (#17889)
## Thinking Path

> - Paperclip manages AI agents and measures their behavior with Runner
evaluations.
> - The cost controller, native tracing, private receipts and portable
runtime are on master.
> - The maintained live workflow still launches the provider CLI
directly.
> - Independent workers need one shared selection and disjoint budget
allocations.
> - Reports must keep unresolved allocations when a worker produces no
evidence.
> - This PR connects the maintained workflow to the existing controller
and private archive.
> - Operators can inspect known costs, conservative holds and trace
evidence before qualifying paid recurrence.

## Linked Issues or Issue Description

Refs #17452, #17469, #17493, #17506, #17523.

**Current behavior**

The live Runner workflow does not use the merged cost/tracing
controller. Attempt-only aggregation cannot reconstruct a campaign when
every worker archive is absent. Ordinary Actions artifacts in this
public repository are readable by authenticated public GitHub users.

**Proposed behavior**

Controlled runs prepare one manifest, bind every selected request,
enforce disjoint allocations and retain evidence in private storage. The
report starts from the full retained manifest. Missing workers keep
their allocations. The workflow rejects retries, unsupported providers,
changed requests and absent or stale operating bounds before provider
work.

**Reason and benefit**

The maintained workflow needs auditable costs and traces, including
failures and missing receipts, before paid recurrence can be qualified.

## What Changed

- Add controlled mode as the manual default and the only scheduled mode.
Legacy mode remains explicit for other manual provider qualifications.
- Prepare the full request selection and one shared manifest. Bind
current run, first attempt, code, definitions, executable hashes and
exact profile allocations.
- Verify the copied controller and manifest before provider credentials.
Require the controlled target to equal the trusted workflow revision
before private archive access.
- Reuse private archive retention for the controller policy, cell
attempts and canonical report. AWS credentials remain transfer-step
outputs. Controlled raw evidence is never uploaded as an Actions
artifact.
- Replay a retained manifest with partial or empty worker evidence.
Count operating holds once and preserve known partial charges.
- Pin the controller to an explicitly reviewed compatible lockfile
digest. Reject resolver or byte drift before a frozen, script-free
install into a job-local store. Record the lock digest in the runtime
receipt and verify it again in private preparation.
- Build the portable controller without secrets, private environment
access or OIDC. Private preparation verifies that artifact and performs
no dependency install. OIDC jobs use no mutable dependency resolution or
shared cache.
- Add synthetic source/copied-runtime tests, executable workflow
admission tests, private archive tests and an operator runbook.

## Verification

- Controller, campaign, portable runtime and workflow tests: 104 passed.
This includes real aggregation from an isolated reporter without source
dependencies, safe diagnostics, driver drift, distinct evidence binding
and reviewed-lock drift. Real private Codex/Claude requests also pass
through an independently verified copied runtime with fake transports.
- Private transport and workflow contracts: 35 passed. Executable/static
workflow guards: 13 passed.
- Paired private report tests: 166 passed; Evalbook discovery: 7 passed.
- `pnpm -r typecheck` and `pnpm build`: passed.
- `pnpm test:e2e:runner:typecheck`, `actionlint
.github/workflows/runner-protocol-live-evals.yml` and `git diff
--check`: passed.
- `pnpm test:run` hit repeated local embedded PostgreSQL initialization
failures in unrelated DB-dependent server tests. Its owned process tree
was stopped after preserving the log. This is a local verification
limitation; current-head CI remains required.
- An earlier head hit one unchanged Rust cleanup assertion. The exact
test passed locally and the final head passed the full Rust lane; the
initial failure log is retained.
- On the final head, one unchanged chat idle-queue assertion failed once
in CI. Its single scoped retry passed. All test jobs and the final
aggregate gate passed on commit
`2e328fa53dd296174d59d19f14f068aeeb0b82d8` (CI run 40535692048, attempt
2).
- No paid model, Braintrust or cloud calls. No live variables, secrets,
schedules or resources changed.

## Risks

- Controlled mode fails closed until a reviewed
`RUNNER_PROTOCOL_EVAL_CONTROLLER_POLICY_JSON` and a compatible private
eval SHA exist. `all` does not silently become a supported subset.
- The reviewed policy must cover setup, model requests, trace/gateway
processing, archive transfer and retained storage. Hash binding does not
establish vendor billing bounds. This PR does not enable recurrence or
release historical holds.
- The controlled policy must pin `controllerLockSha256`; it never
accepts a resolver-generated digest automatically. No lockfile is
committed. A changed compatible lock needs review.
- Legacy browser verification now requires the committed frozen
lockfile. A stale lockfile fails closed; controlled preparation has no
dependency install.
- Workflow cancellation can prevent the final report. The full manifest
is retained before provider work and remains the starting point for
reconciliation.
- The workflow exceeds 1,000 lines because the shared shard anchor,
dependencies, environment expressions and credential boundaries belong
to one declarative job graph. Request preparation, accounting, archive
safety and runtime verification stay in separately tested modules.

## Model Used

OpenAI Codex, GPT-6-based coding agent with tool use and code execution.
The host does not expose an exact deployment model ID 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 the relevant tests locally and they pass; the broad
local suite limitation is documented above
- [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 on the final head
- [x] Greptile is 5/5 with no open P2s, recommendations, or follow-ups;
the secondary reviewer is also 5/5
- [x] I will address all Greptile and reviewer comments before
requesting merge

---------

Co-authored-by: Paperclip <noreply@paperclip.ing>
2026-10-27 11:38:16 -05:00
Dotta 0dd8e41800 Bind new remote intents to user-authorized AWS fleet fallback 2026-10-27 10:24:23 -05:00
Dotta 3084702f49 test(evals): allow authorized AWS fleet allocation fallback 2026-10-27 10:23:57 -05:00
Dotta 9414380536 test(evals): retain closed remote Docker qualification diagnostics 2026-10-27 10:00:17 -05:00
Dotta 28bdd1ee39 Retain Spot database qualification refusal as separate operation 2026-10-27 09:59:28 -05:00
Dotta 4a0d4252dd Record remote host refusal without consuming case initials 2026-10-27 09:30:39 -05:00
Dotta 4e93c384ed Validate remote chat cell provenance before campaign import 2026-10-27 09:19:17 -05:00
Dotta 6175603fd3 fix(evals): validate exact remote PostgreSQL artifact tuples 2026-10-27 09:10:02 -05:00
Dotta e439748839 feat(evals): gate remote chat on verified Spot and amd64 PostgreSQL 2026-10-27 09:06:20 -05:00
Dotta 279af36535 Close historical local campaign and record remote execution steering 2026-10-27 09:04:27 -05:00
Dotta 9079e0f20d evals: select OpenCode DeepSeek for remote chat catalog 2026-10-27 08:55:33 -05:00
Dotta c911d97f4a fix(evals): deliver selected status card context and current blocker facts 2026-10-27 08:44:44 -05:00
Dotta 23a561cbd8 fix(evals): accept grounded stale-card wording paraphrases 2026-10-27 08:39:41 -05:00
Dotta e29c9cce65 fix(evals): scaffold preview plugins through the owned source CLI 2026-10-27 08:35:37 -05:00
Dotta 23ca3f56a5 Record 146 processed initials and qualified private-input handoff 2026-10-27 08:31:44 -05:00
Dotta 9660347073 fix(evals): follow scoped runtime session and retry controls 2026-10-27 08:30:57 -05:00
DottaandPaperclip fa25178f36 test(evals): accept genuine descriptive pending secret proposal cards
Do not misclassify absent duplicate prose as a false completion claim. Require the actual visible human-only source-run-bound proposal card, exact secret/consumer/reference identity, and independent absent binding before either human decision. Contradictory prose, missing authority or wrong-card evidence still fail.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-10-27 08:27:38 -05:00
Dotta 0ae0fc89ba fix(evals): qualify routine prerequisites and selected webhook context 2026-10-27 08:21:10 -05:00
Dotta 2880e3e6fc test(evals): minimize repository observation metadata 2026-10-27 08:18:09 -05:00
DottaandPaperclip 6c09422364 test(evals): review governed tools in actual composer takeover
Open the exact persisted pending interaction and verify the selected synthetic app/action in the production takeover section. Scope all decisions to that review instead of waiting for a nonexistent dialog; preserve actual approval and provider-call oracles.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-10-27 08:13:17 -05:00
Dotta ccb6133d64 fix(evals): bind post-stop readiness to the actual source workspace 2026-10-27 08:07:17 -05:00
Dotta 74558fb8c0 feat(evals): project conservative retained campaign stage proofs 2026-10-27 08:01:40 -05:00
Dotta 96b4ec91cf test(evals): support qualified owned Docker instance operations 2026-10-27 07:54:19 -05:00
DottaandPaperclip 420e7fcc6e test(evals): scope boundary manifest fingerprints to frozen scenario
Bind the selected canonical scenario projection while excluding mutable campaign attempt and usage metadata. Preserve actual executable dependencies, conservative unknown-source closure, descriptor and boundary target identity.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-10-27 07:52:12 -05:00
Dotta 3cdf48f17a test(evals): preserve 124 processed initial checkpoint 2026-10-27 07:49:25 -05:00
Dotta 643447b54d fix(evals): consume search probe response bodies once 2026-10-27 07:44:09 -05:00
Dotta 8565913082 fix(evals): supply the selected historical developer lab link 2026-10-27 07:41:42 -05:00
Dotta e74b11e800 fix(evals): preserve historical import data and denied inbox paths 2026-10-27 07:39:36 -05:00
DottaandPaperclip 699c9a4b4e test(evals): observe public scoped gateway rotation handoffs
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-10-27 07:32:20 -05:00
Dotta 9bc325b481 test(evals): retain 118 processed initial checkpoint 2026-10-27 07:29:52 -05:00
DottaandPaperclip ab6e73f078 test(evals): deliver selected secure account as factual human context
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-10-27 07:24:02 -05:00
DottaandPaperclip a6dd3301b8 test(evals): decline the actual addressed Notion card
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-10-27 07:21:21 -05:00
Dotta 78d113f3a7 fix(evals): preserve supported CLI task status and owned feedback gate 2026-10-27 07:17:18 -05:00
DottaandPaperclip 70e39f41f3 test(evals): isolate source funding from Morgan budget incidents
Prepare only company and source-agent public funding before incident prehistory. Independently preserve Morgan policy, incident and pause context and verify the canonical source has no extraneous funding gate.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-10-27 07:16:50 -05:00
DottaandPaperclip fb23a1ee76 test(evals): qualify budget prerequisites and company package upload
Preserve the original failures while distinguishing nonretryable native billing debt and stopping before a human action can mask unauthorized budget changes. Admit only the exact declared company-preview human upload with existing independent receipt checks.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-10-27 07:15:41 -05:00
Dotta 00a3a05b22 fix(evals): deliver factual antecedents through human query attachments 2026-10-27 07:08:05 -05:00
Dotta 2c907c0941 fix(evals): qualify case permissions and cancelled-run accounting 2026-10-27 07:07:22 -05:00
DottaandPaperclip 3032aa27d1 test(evals): follow precise named board test handoffs
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-10-27 06:57:10 -05:00
Dotta ff31d399e8 Correct task-bound runtime gates and reviewed boundary evidence 2026-10-27 06:54:11 -05:00