feat: export provider-neutral research traces - #1020
Merged
Conversation
Greptile SummaryThe PR adds deterministic native trace exports and provider-neutral semantic JSONL projections while introducing explicit stdout/stderr framing across task-log writers and consumers.
Confidence Score: 5/5The PR appears safe to merge because no blocking failure remains in the eligible follow-up review scope. No blocking failure remains.
|
| Filename | Overview |
|---|---|
| cli/trace-export.ts | Streams deterministic ledger and task evidence records into an exclusive JSONL destination with explicit completeness accounting. |
| cli/semantic-export.ts | Coordinates bounded task-log projection through registered provider adapters and emits task-level and bundle-level completeness metadata. |
| cli/semantic-parser.ts | Reads stable evidence through a bounded line scanner, completes stateful adapter parsing, and detects source changes. |
| cli/trace-evidence.ts | Derives causally referenced task IDs and validates task-store identities and expected log locations. |
| src/task-log-line.js | Defines the shared encoder and decoder for legacy, stderr-tagged, and channel-framed task-log records. |
| task-lib/watcher-output-runtime.js | Frames watcher stdout and stderr at their source while preserving bounded output and terminal diagnostics. |
| cli/index.js | Adds trace and semantic export dispatch, snapshot reconciliation, and shared framed-log parsing to the CLI. |
| scripts/build-cli-runtime.js | Extends runtime compilation and packaging to include the new export modules. |
Flowchart
%%{init: {'theme': 'neutral'}}%%
flowchart LR
W[Task and provider writers] -->|channel-framed-v2| L[Task log]
DB[Cluster ledger] --> T[Trace exporter]
S[Task store] --> T
L --> T
T --> N[Native trace JSONL]
DB --> P[Semantic exporter]
S --> P
L --> D[Shared framing decoder]
D --> P
P --> A[Provider adapter parser]
A --> E[Semantic event JSONL]
Reviews (5): Last reviewed commit: "test: decode framed provider logs in e2e..." | Re-trigger Greptile
tomdps
force-pushed
the
codex/trace-export
branch
from
August 14, 2026 20:14
5ba2024 to
602cb0c
Compare
tomdps
enabled auto-merge
August 14, 2026 20:20
tomdps
force-pushed
the
codex/trace-export
branch
from
August 14, 2026 20:26
602cb0c to
5967c36
Compare
|
🎉 This PR is included in version 6.40.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
Why
The research adapter needs one source-owned, provider-neutral evidence boundary before sandboxes are removed. Native evidence stays authoritative; downstream ATIF remains a derived view.
Validation
The live OMP sidecar startup test is environment-degraded in the development checkout because Bun was installed without its postinstall binary; deterministic OMP writer-to-semantic coverage passes.