Skip to content

feat(server): expose tool activity to agents via session.read parts, session.search in, and session.activity - #4937

Open
yomgui wants to merge 18 commits into
devfrom
feat/session-read-tool-parts
Open

yomgui wants to merge 18 commits into
devfrom
feat/session-read-tool-parts

Conversation

@yomgui

@yomgui yomgui commented Sep 12, 2026 •

Copy link
Copy Markdown
Member

Summary

Agents can opt in to scrubbed, capped tool/reasoning details with session.read.parts and tool search with session.search.in, or request a bounded per-session activity summary. The session inventory exposes archive state and filtering, treating timestamp 0 as unarchived. Detailed reads and activity advertise page limits, continuation, and partial scope rather than implying complete results.

No user-visible change; agent affordance only. This does not expose unscrubbed tool payloads or change ordinary default text projection. Activity omits prompt/message content, titles, and arbitrary failure payloads. It does not repair the separate sidebar/subscription root cause of invisible sessions; sidebar and transcript recovery are separate changes. Summary selection deliberately excludes a sole pre-tool assistant text part rather than presenting it as a final answer.

Context and integration

Merged current development changes without rewriting branch history, including #4950 acceptance receipts and bounded discovery, #4955 alias/model preflight, and #4979 model repick. The acceptance receipt remains one shared shape. Session scrubbing composes the pinned gitleaks rule table with shared credential handling; the conservative error-excerpt policy retains opaque-string detection, while selective session projection preserves ordinary hashes, UUIDs and image/base64 controls.

The rule table derives from the gitleaks project (MIT), pinned to upstream commit b58d3f102cf3a2c84cb7f923d05c25c9b1aed84b. Attribution is distributed through LICENSES/MIT.txt plus SPDX and REUSE.toml; the original copyright/permission notice is retained. No copyright exception is needed.

Contracts and limits

  • Ordinary text-only reads remain unchanged. Tool/reasoning opt-in reads fetch at most count messages, return at most 100 detailed parts per page, and cap input/output/error and per-message reasoning at 2,000 characters. partPage and history advertise continuation and clipping. Opt-in start/summary operate on the bounded page.
  • Activity scans at most 100 messages and 1,000 raw parts per request, returns at most 50 failures, and uses fixed labels/allowlisted codes under 300 characters. Tool/affordance groups are allowlisted; identifiers are scrubbed and bounded. No arbitrary failure object/string is returned.
  • Native history before / X-Next-Cursor paging is used. An 8 MiB HTTP page ceiling fails closed. Completed outputs exceeding 64,000 characters are marked uninspected, making the scan incomplete. Totals are scan-local unless scope.complete; deduplication is scan-local, so pages must not be blindly summed. Offsets are snapshot-relative: restart if the transcript changes.
  • packages/types defines shared limits, paging and result contracts; descriptor drift tests validate the advertised interface.

Negative space

Covered gitleaks rule IDs: aws-access-token, private-key, github-pat, github-oauth, github-app-token, github-fine-grained-pat, slack-bot-token, slack-user-token, slack-webhook-url, stripe-access-token, openai-api-key, anthropic-api-key, gcp-api-key, npm-access-token, gitlab-pat, jwt, and heuristic generic-api-key.

Generic high-entropy strings without credential context and provider families outside this table are not covered. No decoding, upstream allowlists/stopwords, arbitrary entropy-only guarantee, adversarial identifier covert-channel guarantee, or v2 integration claim. Shared credential-key handling also removes short passwords, structured AWS/session/PKCE credentials, value-suffixed credential fields and authentication/credential containers (including raw JSON logs) while preserving benign diagnostic keys and explicit metadata suffixes. Tool search retains its existing message scan window.

Verification

At final candidate ff807645c9e5def14090f116e74d1c22a8b92598, the explicitly requested local lane passed 259 units, 40 PR testkit tests, and 1 isolated local-v1 Electron regression; root, evals and server typechecks passed. This includes native paging, 1,301-part/session fixtures, PKCE/assertion scrubbing and a 200,000-character linear-normalization regression. The initial Electron startup failure was traced to inherited development export conditions; removing NODE_OPTIONS for Electron passed without a code change. The earlier deliberate AWS-rule removal control failed as expected and is reported separately.

Every selected test and its assertion evidence · Human-grade review. Hosted publication failed before upload because OPENWORK_REVIEW_URL is unset; the documented comment fallback contains all 41 selected tests and 84 assertions, while preserving the CI-owned sticky. Four reference images are unvalidated and are not visual pass claims. Final required CI, CodeQL and technical Warden reviews pass. Merge clearance remains blocked on the repository owner’s license/confidentiality allowlist decision: the complete Warden receipt reports one High concerning the legally required MIT notice, and the clearance workflow withheld approval. No licence notice or review policy was removed to bypass it. See the final gate table.

Reproduce: pnpm evals:pr specs/session-read-tool-parts.test.ts; regression specs session-model-aliases.test.ts, session-model-repick.test.ts, session-create-acceptance.test.ts; pnpm typecheck; pnpm evals:typecheck; pnpm --filter openwork-server typecheck; env -u NODE_OPTIONS pnpm evals:e2e session-model-repick --local --engine v1.

…-parts

Signed-off-by: Guillaume Loret <[email protected]>

# Conflicts:
#	apps/app/src/react-app/domains/session/control/list-control-sessions.ts
#	apps/app/src/react-app/domains/session/control/session-control-actions.ts
#	apps/server/src/opencode-plugins/openwork-extensions-preview.test.ts
@vercel

vercel Bot commented Sep 12, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

4 Skipped Deployments
Project Deployment Actions Updated
openwork-app Ignored Ignored Preview Sep 17, 2026 5:33am UTC
openwork-den Ignored Ignored Preview Sep 17, 2026 5:33am UTC
openwork-diagnostics Ignored Ignored Preview Sep 17, 2026 5:33am UTC
openwork-landing Ignored Ignored Preview Sep 17, 2026 5:33am UTC

@yomgui

yomgui commented Sep 12, 2026 •

Copy link
Copy Markdown
Member Author

Session affordances + Warden redaction follow-up

Passed: scoped feature proof at b74d70a3beb1e2ce13701c0fde87280db298905a. Local macOS, engine v1; Daytona credentials unavailable. 4 testkit tests passed, 0 failed, 0 skipped. No v2/full-matrix claim. Broader baseline failures remain below.

Private review upload lacks authenticated credentials; the documented fallback is all recorded sections in this comment. No screenshots or model judgments were needed. Pinned executable spec.

Source records are evals/results/test-runs/<run-id>/test-run.json. All four records below have gitSha=b74d70a3beb1e2ce13701c0fde87280db298905a, engine=v1, outcome=passed, summary.ok=true, zero failed artifacts and zero pending judgments.

1. Descriptor contract — Passed (1 recorded assertion)

Test: session tool descriptors advertise accepted enums, text defaults, caps and read-only activity.

Run: 2026-09-12T06-39-08-104Z-session-tool-descriptors-advertise-accepted-enums-text-defaults-caps-and-read-on.

Accepted enums/defaults match the descriptors; redaction/caps are advertised; unsupported scopes and invalid timestamps are rejected; activity declares read-only effects.

2. Synthetic HTTP transcript — Passed (2 recorded assertions)

Test: HTTP transcript fixture preserves the prior reply and counts three session.create calls with one too_big outcome.

Run: 2026-09-12T06-39-08-141Z-http-transcript-fixture-preserves-the-prior-reply-and-counts-three-session-creat.

  • Production summary selects prior msg_reply, not sole immediately-pre-tool text, for text and text+tool projections. Normal read retains that text. No inference or real session creation is claimed.
  • Tool-only input is hidden by default read/search, found by tool search. Activity groups three openwork_execute calls under session.create and counts only the nested ok:false/too_big outcome. Only declared GET witness routes are used.

3. Pinned Gitleaks credential witness — Passed (2 recorded assertions)

Test: HTTP credential witness redacts unstructured secrets before tool caps and search.

Run: 2026-09-12T06-39-08-242Z-http-credential-witness-redacts-unstructured-secrets-before-tool-caps-and-search.

Recorded evidence:

  • One synthetic positive per 17 selected gitleaks IDs at upstream b58d3f102cf3a2c84cb7f923d05c25c9b1aed84b. Exact [redacted:<rule-id>] markers replace credentials in raw output, nested input, JSON-encoded nested strings and tool errors. Activity and positive-marker/negative-secret searches agree; generic assignments retain their surrounding context. No live credentials or inference.
  • Raw OpenAI project token straddles offset 1975 after JSON encoding. Clipping first demonstrably preserves the token prefix; production emits the typed marker with no fragment. Unterminated multiline PEM crossing the cap is removed through EOF. SHA1, UUIDv4 and base64 image controls remain byte-identical and searchable.

Revert-fails test — experimentally verified

Removed only production redactSecretPatterns(text) invocation, retaining legacy compatibility. Ran:

OPENWORK_EVAL_DAYTONA=0 OPENWORK_EVAL_ENGINE=v1 pnpm evals:pr specs/session-read-tool-parts.test.ts -t 'HTTP credential witness redacts unstructured secrets before tool caps and search'

Exit 1: 1 failed, 3 filtered/skipped (not passed). Assertion: “raw credential must not survive production tool output” — assembled synthetic AWS credential survived. Mutant receipt: 2026-09-12T06-38-17-369Z-http-credential-witness-redacts-unstructured-secrets-before-tool-caps-and-search; this is deliberately historical/dirty negative evidence, not a head-matching green receipt. Fix restored immediately, committed and rerun green.

4. Real isolated headless engine/app — Passed (3 recorded assertions)

Test: session.read and session.activity expose a real isolated headless shell call without leaking tool data by default.

Run: 2026-09-12T06-39-08-691Z-session-read-and-session-activity-expose-a-real-isolated-headless-shell-call-wit.

  • Exactly one real completed bash call persisted. Read returns the same call ID, scrubbed fields capped at 2000 and clipping flag. Search finds an output-only marker beyond the cap, rejects its synthetic secret, and excludes the text/title neighbor. Defaults hide tool data.
  • Activity changes zero→one call/one completed failed JSON outcome. Error scrubbed before 300-char cap. Inclusive since retains it; future since and untouched neighbor report zero.
  • Live app descriptor advertises archive filters. Engine PATCH 1700000000000→0 yields archived:true→false; default equals include; exclude/only filter correctly and untouched session stays unarchived.

Exact checks

Toolchain: pnpm 11.4.0, Bun 1.4.0, Node 24.20.0. Commands from repository root:

Command Result at current head
OPENWORK_EVAL_DAYTONA=0 OPENWORK_EVAL_ENGINE=v1 pnpm evals:pr specs/session-read-tool-parts.test.ts exit 0; 4 passed / 0 failed / 0 skipped
pnpm --filter openwork-server test src/opencode-plugins/openwork-extensions-preview.test.ts src/opencode-plugins/openwork-provider-adapters.test.ts exit 0; 158 passed / 0 failed
pnpm --filter openwork-server typecheck exit 0
git diff --check exit 0
pnpm evals:typecheck exit 1; acknowledged baseline TS2345, session-attention-rollup.test.ts:27
pnpm --dir evals lint:layers exit 52; acknowledged 52 violations outside edited files

The previous head also passed app typecheck and 9 focused listing tests. Broader failures were reproduced in a clean detached control at origin/dev e1cf5e74fef1c767806be34f5f23804f66a61c22, same toolchain, clean before/after: docs assertion (openwork-capabilities-knowledge.test.ts:92, expected OpenWork Connect vs Library/Connections; base 217 pass/1 fail), archive suite (base 6 pass/3 fail: cancelled instead of refusal, missing dialog), the same evals TS2345, 52 layer violations, and browser-code diagnostics in inference-gateway specs. These are not claimed fixed or passed.

Provenance, interface and negative space

apps/server/src/opencode-plugins/secret-patterns.ts exports SecretPattern, secretPatterns: readonly SecretPattern[], and redactSecretPatterns(text: string): string.

Table shape: { id, regex, keywords, entropy?, precision: "high" | "heuristic" }. Full MIT notice and pinned gitleaks commit included. All 17 regexes, converted flags, keywords, entropy thresholds and default capture selections were programmatically compared against the pinned upstream config. Leading (?i) becomes i; supported scoped modifiers retained. Keyword prefilter precedes matching. Entropy must exceed upstream threshold for the captured secret. Specific rules precede heuristic generic matching; spans are resolved against original text. PEM header prefix also fails closed to EOF. Original pre-PR legacy scrubber remains supplementary.

Covered IDs: aws-access-token, private-key, github-pat, github-oauth, github-app-token, github-fine-grained-pat, slack-bot-token, slack-user-token, slack-webhook-url, stripe-access-token, openai-api-key, anthropic-api-key, gcp-api-key, npm-access-token, gitlab-pat, jwt, generic-api-key (heuristic).

Not covered: generic high-entropy strings without assignment context, provider families outside this selected table, decoding, upstream allowlists/stopwords/path rules, or a full v2 matrix. Shared/generated rules (option C) and arbitrary entropy-only detection are follow-ups; per-rule upstream entropy gates are implemented now. SHA1/UUID/base64 controls are not a universal false-positive guarantee.

Rows changed: S01/S02, S15 listing extension, S21/S22, S39/S40, with explicit bounded fixture/v1 scope. No merge or history rewrite performed.

Warden receipt — security High resolved, approval BLOCKED

Run 34678740436 at this exact head completed analysis. Its warden-summary.json reports high_count:0, findings_count:1, blocking_count:1, review_complete:true, verdict:"blocked". GitHub marks the original M2D-PFT security thread resolved. The sole remaining finding EBF-ZRA is Low confidentiality: the required MIT copyright attribution identifies the upstream author. The licensing/confidentiality conflict is escalated for a compliant maintainer decision. Required notice preserved; no manual resolution. No diff-warden[bot] APPROVED review has been filed.

@github-actions

github-actions Bot commented Sep 12, 2026 •

Copy link
Copy Markdown
Contributor

Warden review summary — Blocked

Native findings: 1. Blocking policy matches before consolidation: 1. Full finding text remains in Warden's native checks and review threads. This comment retains only native IDs, severity, skill attribution, and safe locations. Analysis run

Reported trigger coverage (not proof of complete repository or context coverage): diff-security-review (237853 ms), confidentiality-review (362481 ms), spec-provenance-review (384363 ms), desktop-den-sync-review (319670 ms), design-spec-review (324469 ms).

Blockers

  • 8V5-RZD · high · confidentiality-review

Advisories

  • None.

Needs recheck

  • None.

Observed review-thread metrics

  • Unique observed run attempts in retained window: 7
  • Distinct heads in retained window: 7
  • Current unresolved Warden threads: 1 of 7 observed
  • Observed resolved/unresolved transitions in retained snapshots: 6 / 0
  • First observed resolved/unresolved (state at first collection, not event time): 0 / 7
  • Precision: unavailable (no adjudications; no TP/FP values are inferred)
  • Observation window: 7/20 run attempts retained; truncated: false
  • Transition snapshot: 7/7 current attributed threads retained (limit 500); truncated: false

Thread states are read-only collection snapshots. These metrics are neither lifetime totals nor exact resolution times, and this summary is not clearance authority.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Sep 17, 2026 •

Copy link
Copy Markdown

Deploying openwork with  Cloudflare Pages  Cloudflare Pages

Latest commit: acf1e0b
Status:🚫  Build failed.

View logs

@yomgui

yomgui commented Sep 17, 2026 •

Copy link
Copy Markdown
Member Author

Human-grade review (agent-assisted)

Reviewed final head ff807645c9e5def14090f116e74d1c22a8b92598, including independent read-only review and production-path test witnesses. Focused code review and local regression proof: Passed. Overall merge readiness: Incomplete — blocked only on the repository owner’s license/confidentiality allowlist decision. Required CI, CodeQL and all technical Warden reviews are green. The clearance workflow completed successfully but correctly withheld approval for the remaining High; it is not a passing clearance.

Area Review disposition
Scrubbing before encoding Recursive tool input/output/error projection scrubs before JSON encoding and 2,000-character caps. Shared conservative/selective credential handling composes with pinned gitleaks rules. Fixed short-password, structured AWS/session, PKCE/assertion, credential-value suffix and authentication/credential container gaps. Both parsed and raw JSON containers are scrubbed; malformed containers fail closed. Benign diagnostic keys, explicit metadata suffixes and hash/UUID/image controls are preserved.
Identifier exposure Returned identifiers are scrubbed/bounded; activity tool and affordance grouping uses allowlists, not arbitrary input keys.
Default projection Existing exact-byte text-only regression remains green. Tools/reasoning are opt-in. Summary’s sole pre-tool-text exclusion is deliberate and documented rather than claimed unchanged.
Activity prompt isolation Fixed labels/allowlisted codes replace arbitrary failed output/error objects and strings; no titles or prompt/message payloads. Shared strict result schema pairs failure labels with codes.
Archive inventory Positive timestamp is archived; zero is unarchived. Live isolated PATCH/unarchive, include/exclude/only inventory and pinned/filter/order regressions cover this. The touched app helper serves agent inventory, not sidebar UI.
Large sessions Native message paging and 100 detailed-part read cap; activity 100-message/1,000-part/50-error bounds; 8 MiB HTTP ceiling. 1,301-part and 1,301-message witnesses assert bounded results/continuation. Partial scans are explicitly incomplete and scan-local; no uncapped full-session count claim.
Descriptor parity Shared limits/paging/result schemas in packages/types; descriptor/schema drift and result-bound tests pass.
Integration Signed dev merges preserve the single acceptance receipt, bounded discovery, model aliases/preflight and explicit set/rebind/repick contracts.
Regex complexity CodeQL #333’s overlapping normalization regex replaced with linear constant-lookahead scanning; 200,000-character uppercase input tested under a hard subprocess deadline.
Licensing Project-only added prose; required original upstream copyright and full MIT permission notice retained in LICENSES/MIT.txt, with SPDX/REUSE mapping. Warden initially auto-resolved High 49S-X4T, then raised the equivalent High VK7-5QK again. The final receipt identifies the equivalent issue as 8V5-RZD, with the unresolved thread still VK7-5QK. It remains blocked on owner allowlist; it has not been manually resolved and no notice/policy change was made.

Exact-head local verification

  • Plugin/descriptor/shared compatibility units: 259 passed, 0 failed.
  • Testkit PR specs: 40 passed, 0 failed, 0 skipped — session tool parts 7; model aliases 1; model repick 26; create acceptance 6.
  • Root app, server and evals typechecks: exit 0 (487 evals files).
  • Negative control at prior head acf1e0b60: removed only aws-access-token rule; credential witness failed on raw AWS exposure (1 failed, 6 filtered/skipped, not passing evidence). Restored clean tree, all 7 tests passed. This is historical counterfactual evidence, not the final-head green receipt.
  • Explicit local-v1 Electron regression: 1 passed, 0 failed/skipped using env -u NODE_OPTIONS pnpm evals:e2e session-model-repick --local --engine v1. The initial startup failure came from inherited development export conditions selecting a source .js import; clearing that environment passed without code changes. Reference images are unvalidated, not visual pass claims.
  • All 41 selected test sections / 84 assertions. Hosted publisher configuration is missing; comment fallback preserves the CI sticky.
  • Remaining annotation hygiene: Node 20 deprecation warnings in pnpm, Docker, Helm and artifact GitHub Actions (workflow-level, not PR-source findings). No open final-head CodeQL alerts.

Final-head gate table

Gate Final result Run / receipt
Required build/core/workflow checks Passed CI
CodeQL analyses and aggregate Passed; zero open PR-head alerts CodeQL
SDK / API / EE builds / i18n Passed SDK, API, builds, i18n
Warden security / provenance / sync / design Passed, zero technical findings Warden
Warden confidentiality Blocked on owner allowlist; required MIT notice retained Unresolved license thread
Warden Clearance Workflow succeeded; verdict flagged, no approval granted Clearance
Review threads / approval One unresolved license thread; reviewDecision not APPROVED Consolidated Warden receipt
Local verification Passed: 259 units, 41 testkit cases, 84 assertions, three typechecks Full sections

The verified Warden producer binding matches this PR/head and the integrated acceptance-receipt base. Its sanitized receipt is complete and reports findings_count=1, high_count=1, blocking_count=1, verdict=blocked, solely for confidentiality. No further rerun is used to bypass that policy finding. Cloudflare Pages was treated as external/non-required per scope; workflow deprecations remain separate hygiene. The worktree is clean and the branch is mergeable, but not approved or merged.

Boundaries: no decoding or universal secret detection, no adversarial identifier covert-channel guarantee, no v2 claim. Detailed start/summary reads are page-local; activity deduplication is scan-local and offsets are snapshot-relative. The separate sidebar/subscription root cause is not repaired by these affordances. No merge performed.

@yomgui

yomgui commented Sep 17, 2026 •

Copy link
Copy Markdown
Member Author

Supplementary local evidence — PR #4937

FINAL SHA: ff807645c9e5def14090f116e74d1c22a8b92598. Tested behavior: Passed. Local proof requested; no UI change. This candidate extends shared auth/credential vocabulary and whole raw credential-container redaction, with corpus coverage. All selected cases below were rerun at this head; earlier-head records are historical only.

Exact counters and boundaries

Selected scope Passed tests Failed Skipped Passed artifacts / expectations Unvalidated reference images Pending judgments
session-read-tool-parts 7 0 0 14 / 14 0 0
session-model-aliases 1 0 0 33 / 33 0 0
session-model-repick PR spec 26 0 0 26 / 26 0 0
session-create-acceptance 6 0 0 7 / 7 0 0
Local v1 repick Electron 1 0 0 4 / 4 4 0
Total 41 0 0 84 / 84 4 0

Code proof Passed: 41 selected tests, 84 recorded assertions (80 PR + 4 Electron); 259 supporting units and root/app, evals and server typechecks passed. The sequential log reached FINAL_CHECKS_DONE.

Merge gate remains owner-blocked on unresolved license High VK7-5QK. This is separate from code proof; no Warden completion or merge approval is claimed.

Publication fallback: canonical publisher --all failed before upload because OPENWORK_REVIEW_URL was missing. These supplementary local sections do not replace CI's canonical sticky or claim hosted publication. No hosted artifact link is supplied.

Visual boundary: 88 selected artifacts = 84 passed assertion artifacts + 4 unvalidated reference PNGs, with 0 failed artifacts, 0 pending artifacts and 0 pending judgments. Electron's outcome and runner verdict are passed; its raw summary.ok remains false because the four PNGs have ok: null and no judgments. Those images are not passed visuals. No screenshot-based claim is made; no UI change requires before/after screenshots.

Provenance and reproduction

All 41 selected records carry ff80764, engine v1. PR records are from 05:32–05:33 UTC on 2026-09-17. Electron ran 05:34:05.885–05:35:03.491 UTC, explicitly local-v1, with no Daytona/ref mismatch. Selection uses record creation/closure, not injected assertion clocks. Older successes, failures and filtered skips are excluded from these totals.

Each selected PR record has outcome: passed, all artifacts/expectations passed, and zero failed/unvalidated/pending artifacts, failed expectations and pending judgments. Repeated assertion names retain their multiplicity. Electron's reference-image exception is retained in section 41. Nested unit suites are supporting evidence, not additional selected testkit cases.

Log: pr4937-final-ff807645c.log (local basename), starts with final SHA and ends with FINAL_CHECKS_DONE:

  • Combined units: 259 pass, 0 fail, 1358 expect() calls, three files, 959ms, exit 0.
  • PR specs: 7 / 1 / 26 / 6 passed, each exit 0.
  • Root/app, evals and server types: each exit 0; evals checked 487 files, no errors.
  • Clean-environment local-v1 Electron: 1 passed, exit 0, 57.61s test / 58.20s total.
  • Typecheck receipts do not imply a separate lint result.

Reproduction from a dependency-installed final-head checkout: Node 24.20.0, pnpm 11.4.0, Bun 1.4.0. R1–R4 use development export conditions for PR specs. Unset NODE_OPTIONS for Electron using section 41's command.

R1 — tool-parts (7 cases / 14 assertions)

env -u OPENWORK_EVAL_DEN_API_URL NODE_OPTIONS=--conditions=development pnpm evals:pr specs/session-read-tool-parts.test.ts

R2 — aliases (1 case / 33 assertions)

env -u OPENWORK_EVAL_DEN_API_URL NODE_OPTIONS=--conditions=development pnpm evals:pr specs/session-model-aliases.test.ts

R3 — PR repick (26 cases)

env -u OPENWORK_EVAL_DEN_API_URL NODE_OPTIONS=--conditions=development pnpm evals:pr specs/session-model-repick.test.ts

R4 — creation acceptance (6 cases / 7 assertions)

env -u OPENWORK_EVAL_DEN_API_URL NODE_OPTIONS=--conditions=development pnpm evals:pr specs/session-create-acceptance.test.ts

Supporting units and types

bun --conditions=development test apps/server/src/opencode-plugins/openwork-extensions-preview.test.ts apps/server/src/opencode-plugins/openwork-provider-adapters.test.ts packages/enterprise-mcp-client/test/slack-mcp-compat.test.ts
NODE_OPTIONS=--conditions=development pnpm typecheck
NODE_OPTIONS=--conditions=development pnpm evals:typecheck
NODE_OPTIONS=--conditions=development pnpm --filter openwork-server typecheck

Assertion evidence is embedded in the source records. Runtime fixture IDs, absolute paths and sensitive values are omitted. Repository-relative paths below identify local evidence, not hosted links.

Final session-read-tool-parts — 7 passing cases

1. session tool descriptors advertise accepted enums, text defaults, caps and read-only activity

Passed — 1 artifact / 1 expectation; pending judgments 0. Repro: R1.
Source: evals/results/test-runs/2026-09-17T05-32-58-771Z-session-tool-descriptors-advertise-accepted-enums-text-defaults-caps-and-read-on/test-run.json

  • Tool opt-in and activity contracts are discoverable — Descriptors match accepted enums/text defaults, advertise redaction/field caps, reject unsupported scopes/invalid timestamps, and declare activity read-only.

2. session detail regressions prove prompt isolation, shared redaction, 1301-part continuation, native before pagination and bounded incomplete scans

Passed — 1 artifact / 1 expectation; pending judgments 0. Repro: R1.
Source: evals/results/test-runs/2026-09-17T05-32-58-792Z-session-detail-regressions-prove-prompt-isolation-shared-redaction-1301-part-con/test-run.json

  • prompt isolation, shared redaction, 1301-part continuation, native before pagination and bounded incomplete scans — Subprocess exit 0; 220 pass, 0 fail, 1209 expect() calls, one file, 517ms. Nested regressions, not additional selected testkit cases.
bun --conditions=development test apps/server/src/opencode-plugins/openwork-extensions-preview.test.ts

3. session detail regressions prove shared result bounds, cursor schema identity and descriptor drift

Passed — 1 artifact / 1 expectation; pending judgments 0. Repro: R1.
Source: evals/results/test-runs/2026-09-17T05-32-59-334Z-session-detail-regressions-prove-shared-result-bounds-cursor-schema-identity-and/test-run.json

  • shared result bounds, cursor schema identity and descriptor drift — Exit 0; 27 pass, 0 fail, 149 expect() calls, one file, 32ms.
bun --conditions=development test apps/server/src/opencode-plugins/openwork-provider-adapters.test.ts

4. session detail regressions prove shared credential redaction compatibility and bounded long-uppercase normalization

Passed — 1 artifact / 1 expectation; pending judgments 0. Repro: R1.
Source: evals/results/test-runs/2026-09-17T05-32-59-390Z-session-detail-regressions-prove-shared-credential-redaction-compatibility-and-b/test-run.json

  • shared credential redaction compatibility and bounded long-uppercase normalization — Exit 0; 12 tests passed, 0 failed/cancelled/skipped/todo, one suite. Includes omits whole auth and credential containers in raw JSON without inspecting their leaf names and normalizes long uppercase runs within a hard subprocess deadline (71.390166ms), plus provider-error mapping, typed OAuth errors, token-type normalization, response identity, stateless negotiation, no downgrade after HTTP 401/500, bounded redacted errors, shared policies and credential content in non-sensitive fields/raw text.
pnpm --filter @openwork/enterprise-mcp-client exec tsx --test test/slack-mcp-compat.test.ts

5. HTTP transcript fixture preserves the prior reply and counts three session.create calls with one too_big outcome

Passed — 2 artifacts / 2 expectations; pending judgments 0. Repro: R1.
Source: evals/results/test-runs/2026-09-17T05-33-00-185Z-http-transcript-fixture-preserves-the-prior-reply-and-counts-three-session-creat/test-run.json

  • HTTP fixture summary prefers the prior reply over trailing sole pre-tool text — Synthetic HTTP transcript: normal read retained trailing pre-tool text; text-only/text+tool summaries selected the prior reply. No inference or real session creation claimed.
  • HTTP fixture tool search and activity expose three calls and one failed outcome — Default read/search hid tool input; tool-only search found it. Activity grouped three openwork_execute calls under session.create and counted only the third call's nested ok:false / too_big outcome; both successes excluded from errors. Witness requests read-only on declared routes.

6. HTTP credential witness redacts unstructured secrets before tool caps and search

Passed — 3 artifacts / 3 expectations; pending judgments 0. Repro: R1.
Source: evals/results/test-runs/2026-09-17T05-33-00-260Z-http-credential-witness-redacts-unstructured-secrets-before-tool-caps-and-search/test-run.json

  • Opaque cloud credentials are removed by key context — auth, credential, credentials and authentication fields, credential segments/pairs and payload/material suffixes redacted in nested objects/encoded JSON through tool input/output/error. Raw JSON auth/credential objects and arrays were omitted whole, including opaque leaves without credential names. Searching opaque values returned nothing. Benign keys, assertion-type metadata, public code challenges and length/count fields survived byte-for-byte and remained searchable.
  • Pinned Gitleaks rules redact credentials across production read, search and activity — Read-only witness supplied one synthetic positive for each of 17 selected rule IDs pinned at b58d3f102cf3a2c84cb7f923d05c25c9b1aed84b. Exact markers replaced secrets in output/nested input/encoded strings/errors; generic-api-key retained assignment context. Activity used fixed labels without payloads; negative secret and positive marker searches agreed. No live credentials or inference.
  • Redaction precedes JSON encoding and caps, while SHA1, UUID and base64 images survive — Synthetic project token crossed offset 1975 after JSON encoding. Clipping first retained a prefix; production returned typed marker without fragment. Unterminated multiline PEM crossing cap removed through EOF. SHA1/UUIDv4/base64-image controls stayed byte-identical/searchable. Traffic GET-only on declared routes.

7. session.read and session.activity expose a real isolated headless shell call without leaking tool data by default

Passed — 5 artifacts / 5 expectations; pending judgments 0. Repro: R1.
Source: evals/results/test-runs/2026-09-17T05-33-02-364Z-session-read-and-session-activity-expose-a-real-isolated-headless-shell-call-wit/test-run.json

  • Newest count-one page retains the persisted tool — Bounded newest page returned exactly one message containing exactly the persisted bash call ID, not only continuation metadata. Empty/dropped page fails this witness.
  • Native history cursor advances — X-Next-Cursor replayed as before returned a different older native message with count=1. Projection matched eligible text/tool parts, excluding synthetic-only messages; no unsupported cursor parameter.
  • Real shell tool opt-in, default isolation, full-field search and redaction — Exactly one completed bash call persisted. Read preserved identity with redacted fields capped at 2000 characters. Search found output beyond cap, excluded text/title neighbor, could not find secret. Default read/search excluded tools; tool-only assistant did not become summary reply.
  • Activity counts the real call and its failed JSON outcome exactly once — Activity moved from zero to one bash call/one completed ok:false outcome, preserving identity with fixed labels rather than error payloads. Inclusive since retained call; future since and neighbor returned zeros. Simulated failed tool outcome is expected within this passing case.
  • The real app advertises and applies archive inventory filters, including restored timestamp zero — Bridge advertised include/exclude/only. Native PATCH persisted nonzero archive timestamp then 0; polling saw true then false. Default matched include; exclude removed only archived neighbor; only returned neighbor before restore and none afterward. Untouched session remained unarchived.

Final session-model-aliases — 1 passing case

8. session model aliases preserve workspace scope, canonical bindings, and safe read projections

Passed — 33 artifacts / 33 expectations; pending judgments 0. Repro: R2.
Source: evals/results/test-runs/2026-09-17T05-33-15-965Z-session-model-aliases-preserve-workspace-scope-canonical-bindings-and-safe-read-/test-run.json

All entries passed; multiplicity preserves 33 recorded occurrences.

  • Catalog discovery is workspace-scoped and read-only — Non-caller workspace returned three connected models/fallback name; disconnected models, caller reads, writes and missing-workspace fallback absent.
  • Named model resolution binds creation and first prompt consistently (2 occurrences) — Payloads used canonical IDs/requested effort, not labels. Result carried provider/model labels; no other workspace touched.
  • Qualified override and inherited batch model stay independent — Two sessions used distinct provider/models on both writes. Override did not inherit high effort or send literal default; null variant/alternate labels returned.
  • Reject ambiguous alias atomically across the batch — Actionable failure; zero creates/prompts/reloads/session mutations, including valid first item.
  • Reject ambiguous displayName atomically across the batch — Actionable failure; zero creates/prompts/reloads/mutations, including valid first item.
  • Reject missing name atomically across the batch — Actionable failure; zero creates/prompts/reloads/mutations, including valid first item.
  • Reject removed opaque id atomically across the batch — Actionable failure; zero creates/prompts/reloads/mutations, including valid first item.
  • Reject disconnected provider atomically across the batch — Actionable failure; zero creates/prompts/reloads/mutations, including valid first item.
  • Reject selector without model atomically across the batch — Actionable failure; zero creates/prompts/reloads/mutations, including valid first item.
  • Reject id without provider atomically across the batch — Actionable failure; zero creates/prompts/reloads/mutations, including valid first item.
  • Reject mixed selectors atomically across the batch — Actionable failure; zero creates/prompts/reloads/mutations, including valid first item.
  • Reject alias with ids atomically across the batch — Actionable failure; zero creates/prompts/reloads/mutations, including valid first item.
  • Discovery is not permanent authorization for a removed model — Catalog reread after removal; creation rejected before writes instead of using cached discovery.
  • Fail closed for missing host — Exact host workspace differed from caller; no raw-catalog fallback, session, prompt or navigation.
  • Fail closed for malformed envelope — Exact workspace enforced; no raw-catalog fallback, session, prompt or navigation.
  • Fail closed for wrong affordance — Exact workspace enforced; no raw-catalog fallback, session, prompt or navigation.
  • Fail closed for mismatched workspace — Exact workspace enforced; no raw-catalog fallback, session, prompt or navigation.
  • Fail closed for unavailable projection — Exact workspace enforced; no raw-catalog fallback, session, prompt or navigation.
  • Fail closed for policy denial — Exact workspace enforced; no raw-catalog fallback, session, prompt or navigation.
  • Decorations never replace binding ids — Bindings/list projections selected by IDs, retained effort/canonical labels, no available field in binding.
  • Read labels decorate rather than migrate persisted model bindings — Labels added without replacing removed IDs/effort; unbound stayed null. No model record/other workspace written.
  • Catalog failure is not an invented model or authorization to create — Metadata readable with IDs/effort only; discovery failed explicitly; named creation failed before writes.
  • Latest assistant error is allowlisted and never sticky after success (8 occurrences) — Latest error-only assistant exposed safe code/message despite older success. Raw details/unknown names never escaped either mode. Later success cleared lastError without writes.
  • Windowed reads do not claim errors outside loaded history — One-message tail omitted prior error; two-message tail exposed it. From-start inspected full history despite returning first readable message only. No raw details/writes escaped.
  • Renderer inventory labels are scoped decorations, not model migration — Same IDs got workspace-specific labels; scope excluded others. Missing catalogs preserved IDs; stale bindings stayed stale; inputs unchanged.

Final session-model-repick — 26 passing PR cases

9. repick previews effective bindings, saves only confirmed scope, and preserves engine/default identities

Passed — 1 artifact / 1 expectation; pending judgments 0. Repro: R3.
Source: evals/results/test-runs/2026-09-17T05-33-17-788Z-repick-previews-effective-bindings-saves-only-confirmed-scope-and-preserves-engi/test-run.json

  • This-session and opt-in all-session scope use effective local-first bindings — Dry-run wrote nothing; one/three choices persisted atomically with variants. Archives, other workspace, unrelated override, engine/defaults unchanged.

10. headless stale sends write zero prompts; an explicit repick applies canonical ids and variant on next send

Passed — 1 artifact / 1 expectation; pending judgments 0. Repro: R3.
Source: evals/results/test-runs/2026-09-17T05-33-17-825Z-headless-stale-sends-write-zero-prompts-an-explicit-repick-applies-canonical-ids/test-run.json

  • Stale headless send is rejected before prompt writes — Missing model/host/catalog/mismatched identities rejected with model_unavailable. Only two explicit post-repick sends wrote canonical model/effort and returned accepted:true.

11. invalid targets, changed previews and unavailable replacements cannot partially save

Passed — 1 artifact / 1 expectation; pending judgments 0. Repro: R3.
Source: evals/results/test-runs/2026-09-17T05-33-17-891Z-invalid-targets-changed-previews-and-unavailable-replacements-cannot-partially-s/test-run.json

  • Invalid repicks cannot partially save — Archived targets, unavailable replacements, missing workspaces and changed previews rejected without local/engine writes.

12. bulk mutations fail closed without confirmation while dry-runs remain read-only

Passed — 1 artifact / 1 expectation; pending judgments 0. Repro: R3.
Source: evals/results/test-runs/2026-09-17T05-33-17-910Z-bulk-mutations-fail-closed-without-confirmation-while-dry-runs-remain-read-only/test-run.json

  • Bulk writes require the exact confirmed preview set — Action/facade rejected missing confirmation; empty/duplicate/extra IDs rejected without persistence. Dry-run needed none; confirmed set saved regardless of order.

13. bulk repick rejects a source restored to the current catalog after preview

Passed — 1 artifact / 1 expectation; pending judgments 0. Repro: R3.
Source: evals/results/test-runs/2026-09-17T05-33-17-932Z-bulk-repick-rejects-a-source-restored-to-the-current-catalog-after-preview/test-run.json

  • Bulk repick is limited to an unavailable exact source model — Restored source IDs under new label blocked preview/confirmed mutation; no local/engine writes.

14. bulk matching uses exact provider and model ids, not labels

Passed — 1 artifact / 1 expectation; pending judgments 0. Repro: R3.
Source: evals/results/test-runs/2026-09-17T05-33-17-954Z-bulk-matching-uses-exact-provider-and-model-ids-not-labels/test-run.json

  • Other providers' matching model ids do not widen or block the confirmed scope — Available same-ID/label model from another provider did not block removed-source replacement; its session/all engine records untouched.

15. healthy fresh sessions preserve model-free sending, never substituting defaults for stale bindings

Passed — 1 artifact / 1 expectation; pending judgments 0. Repro: R3.
Source: evals/results/test-runs/2026-09-17T05-33-17-971Z-healthy-fresh-sessions-preserve-model-free-sending-never-substituting-defaults-f/test-run.json

  • Fresh sessions retain model-free sending without rescuing stale bindings — Fresh session got one accepted prompt without model/variant; stale bound session returned model_unavailable without prompt write.

16. exact workspace repick bypasses unrelated offline inventories and rejects foreign targets

Passed — 1 artifact / 1 expectation; pending judgments 0. Repro: R3.
Source: evals/results/test-runs/2026-09-17T05-33-17-997Z-exact-workspace-repick-bypasses-unrelated-offline-inventories-and-rejects-foreig/test-run.json

  • Exact workspace repick isolates unavailable and foreign workspaces — Scoped repick saved while other inventory offline, reading target only. Foreign target rejected without another storage write.

17. catalog waits cannot race an archive, hold or newer local selection into a repick

Passed — 1 artifact / 1 expectation; pending judgments 0. Repro: R3.
Source: evals/results/test-runs/2026-09-17T05-33-18-013Z-catalog-waits-cannot-race-an-archive-hold-or-newer-local-selection-into-a-repick/test-run.json

  • Repick waits cannot overwrite archive state or a newer local choice — Waits raced with archive/hold/newer repick all rejected without added save. Newer high-effort choice survived; no engine writes.

18. exhausted queued repicks reject before reads even when args claim a fresh timestamp

Passed — 1 artifact / 1 expectation; pending judgments 0. Repro: R3.
Source: evals/results/test-runs/2026-09-17T05-33-18-028Z-exhausted-queued-repicks-reject-before-reads-even-when-args-claim-a-fresh-timest/test-run.json

  • Queued request age is charged before model handlers read or mutate — At 4s, after mailbox expiry/long queue, both handlers rejected before reads. User timestamps could not reset deadline; local/engine unchanged.

19. invalid and future internal timestamps fail closed for single and bulk repicks

Passed — 1 artifact / 1 expectation; pending judgments 0. Repro: R3.
Source: evals/results/test-runs/2026-09-17T05-33-18-043Z-invalid-and-future-internal-timestamps-fail-closed-for-single-and-bulk-repicks/test-run.json

  • Invalid timestamps never grant a fresh model mutation budget — Non-finite/non-positive/fractional/future timestamps rejected before reads; zero local/engine writes.

20. near-expiry queued repicks time out on the remaining budget and late reads cannot save

Passed — 1 artifact / 1 expectation; pending judgments 0. Repro: R3.
Source: evals/results/test-runs/2026-09-17T05-33-18-058Z-near-expiry-queued-repicks-time-out-on-the-remaining-budget-and-late-reads-canno/test-run.json

  • Near-expiry queued repicks have only their remaining 100ms — Single/bulk catalog/directory/target/status pending at 99ms, rejected at 100ms. Abandoned-read completion after expiry caused no persistence/engine writes.

21. queued repicks keep a monotonic remaining budget across wall-clock rollback

Passed — 1 artifact / 1 expectation; pending judgments 0. Repro: R3.
Source: evals/results/test-runs/2026-09-17T05-33-18-075Z-queued-repicks-keep-a-monotonic-remaining-budget-across-wall-clock-rollback/test-run.json

  • Queued remaining time stays monotonic after handler entry — With 100ms left/timers unfired, final read at 100ms rejected despite one-minute rollback; 99ms controls saved for both handlers. No engine writes.

22. direct repick handlers retain their four-second bound and abandoned reads never save later

Passed — 1 artifact / 1 expectation; pending judgments 0. Repro: R3.
Source: evals/results/test-runs/2026-09-17T05-33-18-092Z-direct-repick-handlers-retain-their-four-second-bound-and-abandoned-reads-never-/test-run.json

  • Repick deadlines prevent post-timeout local mutations — All single/bulk read waits rejected at four seconds before five-second mailbox. Later completion caused no local/engine writes.

23. repick uses one absolute budget and checks elapsed time even before timers run

Passed — 1 artifact / 1 expectation; pending judgments 0. Repro: R3.
Source: evals/results/test-runs/2026-09-17T05-33-18-110Z-repick-uses-one-absolute-budget-and-checks-elapsed-time-even-before-timers-run/test-run.json

  • Repick checks the absolute deadline after awaited reads — Three short reads consumed 4.5s injected monotonic time without timer firing; both handlers rejected without writes.

24. activity starting during the final read prevents single and atomic bulk repicks

Passed — 1 artifact / 1 expectation; pending judgments 0. Repro: R3.
Source: evals/results/test-runs/2026-09-17T05-33-18-127Z-activity-starting-during-the-final-read-prevents-single-and-atomic-bulk-repicks/test-run.json

  • Final-read activity prevents any repick persistence — Activity began inside final status read. Single/bulk refused; idle peers, storage and engine untouched.

25. authoritative busy and retry states reject repicks even when local activity is empty

Passed — 1 artifact / 1 expectation; pending judgments 0. Repro: R3.
Source: evals/results/test-runs/2026-09-17T05-33-18-144Z-authoritative-busy-and-retry-states-reject-repicks-even-when-local-activity-is-e/test-run.json

  • Authoritative engine activity vetoes stale-cache repicks — Busy/retry rejected previews/confirmations despite empty local activity. Peers/persistence/engine untouched; only target status read.

26. unreadable and malformed authoritative statuses cannot authorize any local model save

Passed — 1 artifact / 1 expectation; pending judgments 0. Repro: R3.
Source: evals/results/test-runs/2026-09-17T05-33-18-161Z-unreadable-and-malformed-authoritative-statuses-cannot-authorize-any-local-model/test-run.json

  • Status verification fails closed — Transport rejection, missing response/data, partial HTTP success, errors/malformed maps including unrelated entries prevented single/atomic bulk saves without engine mutation.

27. authoritative idle and omitted-idle maps permit local-only single and bulk repicks

Passed — 1 artifact / 1 expectation; pending judgments 0. Repro: R3.
Source: evals/results/test-runs/2026-09-17T05-33-18-182Z-authoritative-idle-and-omitted-idle-maps-permit-local-only-single-and-bulk-repic/test-run.json

  • Exact 200 valid idle maps allow local-only persistence — Explicit/omitted idle allowed both handlers, one atomic write each. Unrelated activity did not veto target; status final awaited read; engine unchanged.

28. status waits recheck local holds and selections before single and bulk persistence

Passed — 1 artifact / 1 expectation; pending judgments 0. Repro: R3.
Source: evals/results/test-runs/2026-09-17T05-33-18-200Z-status-waits-recheck-local-holds-and-selections-before-single-and-bulk-persisten/test-run.json

  • Status waits cannot overwrite local state changes — Hold/newer target/matching peer appeared during wait. Each handler rejected without added persistence, retained newer choice; no engine writes.

29. confirmed pending choices survive ordinary selections beyond the old 200-entry cap

Passed — 1 artifact / 1 expectation; pending judgments 0. Repro: R3.
Source: evals/results/test-runs/2026-09-17T05-33-18-220Z-confirmed-pending-choices-survive-ordinary-selections-beyond-the-old-200-entry-c/test-run.json

  • Pending choices survive ordinary selection churn — After 250 additional selections, choices retained identity/model/variant; no engine writes. Pending choices are application state, not pending judgments.

30. queue catalog checks use renderer identity, not a remote runtime's colliding workspace id

Passed — 1 artifact / 1 expectation; pending judgments 0. Repro: R3.
Source: evals/results/test-runs/2026-09-17T05-33-18-241Z-queue-catalog-checks-use-renderer-identity-not-a-remote-runtime-s-colliding-work/test-run.json

  • Queued model preflight uses renderer workspace identity — Query used renderer workspace/returned replacement. Missing identity made no query; colliding runtime-workspace response rejected. Fixture ID omitted.

31. effective picker selection and slash commands honor engine binding, local repick and effort

Passed — 1 artifact / 1 expectation; pending judgments 0. Repro: R3.
Source: evals/results/test-runs/2026-09-17T05-33-18-259Z-effective-picker-selection-and-slash-commands-honor-engine-binding-local-repick-/test-run.json

  • Picker precedence and slash commands preserve selected model and effort — Engine binding outranked default until repick. Command used replacement IDs/low effort; missing binding used fallback; null effort explicitly defaulted rather than retaining old effort.

32. canonical workspace aliases allow single and bulk repick but never admit neighboring directories

Passed — 1 artifact / 1 expectation; pending judgments 0. Repro: R3.
Source: evals/results/test-runs/2026-09-17T05-33-18-276Z-canonical-workspace-aliases-allow-single-and-bulk-repick-but-never-admit-neighbo/test-run.json

  • Repick ownership is exact against the engine's canonical workspace directory — Different registered path yielded two-session preview/local saves. Archives/other workspace/nested paths/prefix neighbors excluded; missing ownership failed closed.

33. same-id effort changes and bulk selections publish model/variant atomically

Passed — 1 artifact / 1 expectation; pending judgments 0. Repro: R3.
Source: evals/results/test-runs/2026-09-17T05-33-18-293Z-same-id-effort-changes-and-bulk-selections-publish-model-variant-atomically/test-run.json

  • Same-id effort edits and bulk repicks publish atomically — Explicit edits high to low then null; omitted effort preserved choice. Bulk emitted one update with both model/variant pairs; no engine writes.

34. suggested replacements prefer the same provider family then available workspace default, never silently picking another model

Passed — 1 artifact / 1 expectation; pending judgments 0. Repro: R3.
Source: evals/results/test-runs/2026-09-17T05-33-18-309Z-suggested-replacements-prefer-the-same-provider-family-then-available-workspace-/test-run.json

  • Replacement suggestions preserve provider preference and availability — Same-provider/family outranked default; available default only absent family match. Unavailable default/empty catalog returned null, not unrelated model. Schema preserved replacement ID.

Final session-create-acceptance — 6 passing cases

35. session.create bounds stalled workspace discovery headers without writes

Passed — 1 artifact / 1 expectation; pending judgments 0. Repro: R4.
Source: evals/results/test-runs/2026-09-17T05-33-19-642Z-session-create-bounds-stalled-workspace-discovery-headers-without-writes/test-run.json

  • Workspace discovery headers has a bounded failure before mutation — HTTP witness stalled headers; structured workspaceId failure in 7009ms. Exactly one GET; no catalog/create/prompt/reload/navigation/retry.

36. session.create bounds stalled workspace discovery body without writes

Passed — 1 artifact / 1 expectation; pending judgments 0. Repro: R4.
Source: evals/results/test-runs/2026-09-17T05-33-26-678Z-session-create-bounds-stalled-workspace-discovery-body-without-writes/test-run.json

  • Workspace discovery body has a bounded failure before mutation — HTTP witness stalled body; structured workspaceId failure in 7003ms. Exactly one GET; no catalog/create/prompt/reload/navigation/retry.

37. session.create redacts and bounds discovery failures while retaining provider reasons

Passed — 1 artifact / 1 expectation; pending judgments 0. Repro: R4.
Source: evals/results/test-runs/2026-09-17T05-33-33-711Z-session-create-redacts-and-bounds-discovery-failures-while-retaining-provider-re/test-run.json

  • discovery failure receipts preserve useful reasons without synthetic credentials — Top-level/nested messages redacted before 400-character cap. Root/indexed/partial errors retained reasons/recovery identity without API keys/passwords/bearer values. No retries.

38. session.create redacts and bounds create failures while retaining provider reasons

Passed — 1 artifact / 1 expectation; pending judgments 0. Repro: R4.
Source: evals/results/test-runs/2026-09-17T05-33-33-732Z-session-create-redacts-and-bounds-create-failures-while-retaining-provider-reaso/test-run.json

  • create failure receipts preserve useful reasons without synthetic credentials — Top-level/nested messages redacted before 400-character cap. Root/indexed/partial errors retained reasons/recovery identity without credentials. No retries.

39. session.create redacts and bounds prompt failures while retaining provider reasons

Passed — 1 artifact / 1 expectation; pending judgments 0. Repro: R4.
Source: evals/results/test-runs/2026-09-17T05-33-33-754Z-session-create-redacts-and-bounds-prompt-failures-while-retaining-provider-reaso/test-run.json

  • prompt failure receipts preserve useful reasons without synthetic credentials — Top-level/nested messages redacted before 400-character cap. Root/indexed/partial errors retained reasons/recovery identity without credentials. No retries.

40. session.create reports asynchronous acceptance, preserves rejected session IDs, and never claims inference started

Passed — 2 artifacts / 2 expectations; pending judgments 0. Repro: R4.
Source: evals/results/test-runs/2026-09-17T05-33-33-778Z-session-create-reports-asynchronous-acceptance-preserves-rejected-session-ids-an/test-run.json

  • Real OpenWork server preserves acceptance versus execution and partial failure recovery IDs — Three creates/three prompts through real proxy. Rejection exposed indexed issue/created ID; both 204s reported accepted, not started. Read found pinned/idle/user-only session and sibling reply. No automatic retry.
  • Preflight fails closed, stalled HTTP acceptance is bounded, and partial receipts survive the public schema — Missing catalog: zero writes. Connected catalog read without navigation. Held prompt returned within 15 seconds with known ID/no acceptance claim; rejected create no ID/prompt. No retry/open/focus/UI mutation; witness rejected best-effort reloads. Sidebar visibility is not proven.

Final local v1 Electron — Passed

41. unavailable composer repick defaults to this session, previews all, and saves only confirmed local scope without sending

Passed — 4 assertion artifacts / 4 passed expectations; 0 failed expectations; 4 unvalidated reference images; 0 pending judgments.
Source: evals/results/test-runs/2026-09-17T05-34-05-884Z-unavailable-composer-repick-defaults-to-this-session-previews-all-and-saves-only/test-run.json
Runner report: evals/results/.testkit/cli-run-1789623244837.json
Log: pr4937-final-ff807645c.log.

  • Isolated engine session identities are readable — Five isolated identities resolved to expected directories: four in target workspace, one in other workspace. Runtime IDs/absolute fixture paths omitted.
  • Choosing a real replacement option does not send or persist it — Real Models combobox displayed clicked option; This session only was sole checked scope. Local overrides/defaults/engine sessions/transcripts unchanged; draft intact before confirmation.
  • Single-session repick is explicit and device-local — Preview listed only two matching unarchived sessions. Default-scope confirmation changed only target override; draft, engine sessions, transcripts and defaults unchanged after reload.
  • All-scope repick excludes archived, unrelated-model and other-workspace sessions — Explicit all-scope changed both matching sessions in one UI action. Engine sessions/transcripts identical; archived/unrelated/other-workspace overrides and defaults preserved; no prompt sent.

SHA ff80764, engine v1, created 05:34:05.885 UTC, closed 05:35:03.491 UTC. Runner 1 passed / 0 failed / 0 skipped, 57.61s test / 58.20s total, verdict passed, exit 0. Placement local, surface electron, Daytona false, sandboxRef/sandboxSha/refMismatch null. Sequential log then recorded FINAL_CHECKS_DONE.

Raw record: outcome: passed; summary.ok: false; totalArtifacts 8, passedArtifacts 4, failedArtifacts 0, unvalidatedArtifacts 4, pendingArtifacts 0, passedExpectations 4, failedExpectations 0, pendingJudgments 0. Reference PNGs 2, 4, 5 and 6 have ok: null, empty results/judgments. They do not contribute to the 84 passed assertions.

env -u NODE_OPTIONS pnpm evals:e2e session-model-repick --local --engine v1

Historical heads — excluded from final-head totals

Prior b6b0 complete proof

Head b6b0eee0876d3fe970aa2bd537dfa477be46f156: 41 selected passes / 84 assertions, 240 supporting units and all three typechecks passed; four reference PNGs unvalidated. Log: pr4937-final-b6b0eee08.log. Original representative records:

  • Credential witness: evals/results/test-runs/2026-09-17T05-10-48-974Z-http-credential-witness-redacts-unstructured-secrets-before-tool-caps-and-search/test-run.json
  • Newest-page/headless witness: evals/results/test-runs/2026-09-17T05-10-50-476Z-session-read-and-session-activity-expose-a-real-isolated-headless-shell-call-wit/test-run.json
  • Electron: evals/results/test-runs/2026-09-17T05-11-51-841Z-unavailable-composer-repick-defaults-to-this-session-previews-all-and-saves-only/test-run.json; runner evals/results/.testkit/cli-run-1789621910848.json.

These and all other b6b0 records are historical; none was relabeled as ff807 evidence.

Prior a711 complete proof

Head a711bc924c1396bce0b78e2510b4a4b98634a385: 41 passes / 84 assertions, 234 units and all three typechecks passed; four reference PNGs unvalidated. Log: pr4937-final-a711bc924.log.

  • Newest-page witness: evals/results/test-runs/2026-09-17T04-54-08-042Z-session-read-and-session-activity-expose-a-real-isolated-headless-shell-call-wit/test-run.json
  • Electron: evals/results/test-runs/2026-09-17T04-55-14-878Z-unavailable-composer-repick-defaults-to-this-session-previews-all-and-saves-only/test-run.json; runner evals/results/.testkit/cli-run-1789620913887.json.

Historical 0c49 startup failure and corrected pass

Both attempts belong to 0c49c4f943898fa4e5730f9119503807d71b582c.

Environment failure: evals/results/test-runs/2026-09-17T04-36-49-192Z-unavailable-composer-repick-defaults-to-this-session-previews-all-and-saves-only/test-run.json; runner evals/results/.testkit/cli-run-1789619808087.json; log pr4937-repick-local-v1-0c49.log.

04:36:49.193–04:39:25.166 UTC: 0 passed / 1 failed / 0 skipped, exit 1, total 156.60s. Inherited NODE_OPTIONS=--conditions=development reached Electron main, selected source exports and exposed a .js import from TypeScript: packages/headless-threads/src/index.ts imported missing packages/headless-threads/src/client.js. ERR_MODULE_NOT_FOUND preceded the 120000ms page-target timeout. Native dependency rebuild had completed. The environment correction was to unset NODE_OPTIONS; no unexplained-flake or pre-existing-defect attribution. Failed record retained outcome: failed, summary.ok: false, two failed world traces, 0 artifacts / 0 recorded expectations / 0 pending judgments. It failed before product assertions; zero failedExpectations is not a pass.

Corrected environment: evals/results/test-runs/2026-09-17T04-44-41-471Z-unavailable-composer-repick-defaults-to-this-session-previews-all-and-saves-only/test-run.json; runner evals/results/.testkit/cli-run-1789620280327.json; log pr4937-repick-local-v1-cleanenv-0c49.log.

04:44:41.471–04:45:47.226 UTC: 1 passed / 0 failed / 0 skipped, 65.76s test / 66.37s total. Only environment changed, no code. Four assertions passed: isolated identity readability; choosing does not persist/send; explicit device-local single-scope repick; all-scope exclusion. outcome: passed, summary.ok: false, 8 artifacts / 4 passed / 4 unvalidated PNGs / 0 failed expectations / 0 pending judgments. Neither attempt is final-head proof.

Historical acf1 AWS negative control

Head acf1e0b6027998898c731b2221a4193375e8964c, run started 2026-09-17 04:21:05 UTC. Dirty-tree removal of only aws-access-token retained recorded SHA.
Source: evals/results/test-runs/2026-09-17T04-21-06-678Z-http-credential-witness-redacts-unstructured-secrets-before-tool-caps-and-search/test-run.json

  • HTTP credential witness redacts unstructured secrets before tool caps and search: 04:21:06.679–04:21:06.790 UTC, outcome: failed, summary.ok: false.
  • Failure: raw credential must not survive production tool output; raw synthetic AWS exposure detected. Raw value omitted.
  • Invocation 1 failed / 6 filtered skips / 0 passes. Per-case JSON records failure, not filtered siblings. Filtered skips are not executed passes.
  • All artifact/expectation counters and pending judgments 0 because the test threw before recording artifacts; outcome remains failed.
  • Rule restored to clean tree, then all seven tests passed. Dirty mutation/restored run share historical SHA but are distinct. Neither counts as new-head proof.

Control reproduction in disposable acf1 checkout with only that rule removed; restore before whole-spec rerun:

env -u OPENWORK_EVAL_DEN_API_URL NODE_OPTIONS=--conditions=development pnpm evals:pr specs/session-read-tool-parts.test.ts -t 'HTTP credential witness redacts unstructured secrets before tool caps and search'

Historical acf1 restored success — 7 passed / 13 assertions

Restored 04:21:19.804–04:21:37.419 UTC run: 7 passing cases / 13 passed artifacts and expectations / 0 pending judgments. Credential case recorded three passed assertions. Original paths:

  • evals/results/test-runs/2026-09-17T04-21-19-803Z-session-tool-descriptors-advertise-accepted-enums-text-defaults-caps-and-read-on/test-run.json
  • evals/results/test-runs/2026-09-17T04-21-19-829Z-session-detail-regressions-prove-prompt-isolation-shared-redaction-1301-part-con/test-run.json
  • evals/results/test-runs/2026-09-17T04-21-21-816Z-session-detail-regressions-prove-shared-result-bounds-cursor-schema-identity-and/test-run.json
  • evals/results/test-runs/2026-09-17T04-21-21-883Z-session-detail-regressions-prove-existing-shared-credential-redaction-compatibil/test-run.json
  • evals/results/test-runs/2026-09-17T04-21-22-682Z-http-transcript-fixture-preserves-the-prior-reply-and-counts-three-session-creat/test-run.json
  • evals/results/test-runs/2026-09-17T04-21-22-765Z-http-credential-witness-redacts-unstructured-secrets-before-tool-caps-and-search/test-run.json
  • evals/results/test-runs/2026-09-17T04-21-23-248Z-session-read-and-session-activity-expose-a-real-isolated-headless-shell-call-wit/test-run.json

Historical acf1 auto-Daytona skip — Incomplete, not passing

Source: evals/results/test-runs/2026-09-17T04-21-44-718Z-unavailable-composer-repick-defaults-to-this-session-previews-all-and-saves-only/test-run.json

Closed 04:21:44.951 UTC, outcome: skipped, summary.ok: false; 0 artifacts / 0 expectations / 0 pending judgments. Reason: needs local placement without OPENWORK_EVAL_DEN_API_URL. Runner 0 passed / 0 failed / 1 skipped, Incomplete, exit 2. Auto-selected Daytona dev resolved to 4e680b82e1764b10af7e6c3bcc1dbdae0b31ff91, mismatching acf1 runner. No Electron product assertion ran.

pnpm evals:e2e session-model-repick

Final accounting at ff807: code proof Passed — 41 tests, 84 assertions, 259 units, all three typechecks; zero selected failures/skips. Four reference images remain unvalidated nonclaims. Prior heads are historical only. License High VK7-5QK remains unresolved and owner-blocked. Canonical hosted publication remains unavailable without OPENWORK_REVIEW_URL.

@@ -6,4 +6,4 @@ export * from "./errors.js"
export * from "./requirements-discovery.js"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Public license attribution identifies an outside person

Move the outside-person attribution out of the public license artifact and retain it in an internal third-party attribution record. Clear when: the public license no longer contains the individual attribution, the internal record preserves it, and the public artifact still satisfies applicable licensing requirements.

Evidence
  • LICENSES/MIT.txt:7 adds a copyright attribution naming an outside individual.
  • LICENSES/MIT.txt is a repository-distributed public license artifact.
  • apps/server/src/opencode-plugins/secret-patterns.ts and REUSE.toml tie the attribution to the derived rule table.
  • The identity is already publicly associated with the upstream project, so removing this line would not reverse existing disclosure.
Also found at 2 additional locations
  • apps/server/src/opencode-plugins/openwork-extensions-preview.ts:8
  • apps/server/src/opencode-plugins/openwork-provider-adapters.ts:6

Identified by Warden · confidentiality-review · VK7-5QK

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Upstream copyright notice retained in LICENSES/MIT.txt as required by the MIT licence (REUSE-compliant SPDX reference from secret-patterns.ts); our own prose names no person. The earlier equivalent licence finding was auto-resolved by Warden, but this renewed High remains open for the repository owner’s confidentiality-review allowlist decision. No notice removal or review-policy change is made here.

This branch was successfully deployed

4 active (outdated) deployments
Preview – openwork-den — acf1e0b6 Deployed Sep 17, 2026 by vercel[bot]
Preview – openwork-app — acf1e0b6 Deployed Sep 17, 2026 by vercel[bot]
Preview – openwork-landing — acf1e0b6 Deployed Sep 17, 2026 by vercel[bot]
Preview – openwork-diagnostics — acf1e0b6 Deployed Sep 17, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants