Repository navigation
Description
Summary
Local observability tools need a durable way to identify the coordinator and descendant worker sessions belonging to a scan, including failed scans, without reconstructing ownership from timestamps and temporary paths.
Available today
- fix(sdk): keep API-key scan logs after scans finish #348, feat(cli): inspect saved scan and worker logs #349, and fix(cli): include scan-owned Deep worker session logs #426 added saved scan-log lookup and worker lineage through
scans logs. - fix(logs): prefer complete saved rollout copies #933 prefers complete saved rollouts over truncated copies.
- fix(sdk): report worker sessions without model progress markers #962 exposes observed worker events while a scan is running.
These help retrieval and live observation, but do not provide the durable artifact index and optional export requested here.
Remaining workflow
- Produce a scan-owned session index that identifies the coordinator and descendants while excluding unrelated sessions.
- Make it accessible to SDK/local tooling on both success and failure.
- Support an explicit opt-in to retain/export the indexed raw rollouts when needed.
- Preserve private artifact permissions and the original scan failure if indexing or cleanup also fails.
- Test ownership filtering, failure-path persistence, and cleanup using synthetic sessions.
Raw rollouts can contain source, prompts, and tool output, so export should remain an explicit local choice. Exact artifact names and any public option/flag are still design decisions.
Historical motivation and related work
The original failed run left 87 valid rollout files, including metadata for 56 child sessions, but associating them with the scan required manual correlation. No raw rollouts are attached here.
#278 is the open proposal for the index/export workflow. This is a local artifact/lookup feature, not a request for a general tracing backend.
Activity
2830500285 commentedon Aug 4, 2026
I would like to work on this as a focused SDK/CLI enhancement. My proposed shape is:
ScanResult/ JSON output so observability tools do not have to correlate timestamps or temporary directories;I will keep this limited to local session discovery/retention rather than introducing a general tracing backend. If maintainers prefer a different flag or artifact name, I can adjust before finalizing the PR.
mldangelo-oai commentedon Aug 15, 2026
Scan-session lookup and worker lineage are now available through
scans logsafter #348, #349, and #426. Keeping this open for the remaining artifact index, programmatic access, and optional session export.[-]Expose and optionally retain scan rollout sessions for observability and external indexing[/-][+]Expose a scan-session artifact index and optional rollout export[/+]mldangelo-oai commentedon Oct 8, 2026
Also related: merged #933 prefers complete saved rollouts over truncated copies. It improves log retrieval, but doesn’t provide the artifact index or optional export requested here.
[-]Expose a scan-session artifact index and optional rollout export[/-][+]Expose a durable scan-session artifact index and optional rollout export[/+]