Skip to content

feat: retain rollout sessions for scan observability - #278

Open
2830500285 wants to merge 1 commit into
openai:mainfrom
2830500285:codex/retain-rollout-sessions
Open

feat: retain rollout sessions for scan observability#278
2830500285 wants to merge 1 commit into
openai:mainfrom
2830500285:codex/retain-rollout-sessions

Conversation

@2830500285

Copy link
Copy Markdown

Summary

  • index the coordinator and all transitive worker rollout sessions in private scan artifacts on successful and failed scans, while excluding unrelated sessions and enforcing a 4,096-session bound
  • add opt-in raw JSONL retention with private permissions, race-aware copying, and automatic index-only fallback when retention is unavailable
  • expose the index through ScanResult, machine-readable failed scan output, scan history, reruns, and bulk scans
  • persist the relative artifact path through the workbench schema and include the new modules in the npm package contract

Product rationale

Long-running and delegated scans can fail after producing substantial execution history. Keeping a bounded relationship index by default gives operators and external indexers a stable correlation point, including on failure, without copying source-bearing prompts and tool output unless retention is explicitly enabled.

Rollout indexing is best-effort and cannot replace the primary scan outcome: retention failures warn and degrade to an index-only artifact, and indexing failures never mask the original scan failure.

Validation

  • pnpm run types
  • pnpm run format
  • pnpm test: 798 passed, 5 platform/integration skips, 0 failed
  • packed-package inspection and installed-package smoke: 187 tarball entries and 95 bundled plugin files validated
  • Python workbench modules compiled with py_compile
  • focused success, failure, fallback, privacy, history, migration, CLI, and 4,096/4,097 boundary tests

Fixes #187

@github-actions github-actions Bot added the enhancement New feature or request label Aug 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Expose and optionally retain scan rollout sessions for observability and external indexing

1 participant