Add trace artifact v0 for bean-run#2
Merged
Merged
Conversation
bean-run now writes .bean/runs/<run_id>.json after every run: schema_version, run_id, goal, started_at/ended_at, status, certificate, rounds, pivot_count, blockers_opened/blockers_closed, verifier_verdicts, residuals, artifacts_changed. One file per run (not a rolling file), so future tooling can analyze a corpus of runs without scraping transcripts. Scope: this does NOT make bean learn across tasks — no memory mutation, prompt rewriting, or cross-run optimization. It only emits the artifact so a future hill-climbing loop has a stable format to build on. - schemas/trace.schema.json — the v0 shape (required keys, types). - skills/bean/references/trace.md — schema docs + the scope note. - test/conformance.mjs — asserts a driver run writes the artifact with the stable shape (schema_version, all required keys, filename == run_id, status matches the run outcome). Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
…write
- Schema top-level is now additionalProperties:false (unknown keys rejected, catches drift);
additive/experimental fields go under a documented `metadata` object hatch (emitted as {}).
- bean-run fails CLOSED on a trace-write failure: prints the outcome to stderr and exits 3
(infra/load error, distinct from any convergence outcome) instead of reporting a clean run.
- Conformance asserts metadata present + no unknown top-level keys; docs note the stability
rules and that sample-trace fixtures belong in test/fixtures/traces/, never under the ignored
.bean/runs/.
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
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.
Summary
.bean/runs/<run_id>.jsonschemas/trace.schema.jsonandskills/bean/references/trace.md**/.bean/runs/,**/.bean/verdicts-raw/); schema/docs stay trackedScope
This does not add cross-task learning, memory mutation, prompt rewriting, or cross-run optimization. It only emits a stable trace/certificate artifact for future tooling to consume.
Validation
npm testnode test/conformance.mjscargo fmt --check --manifest-path rs/Cargo.toml🤖 Generated with Claude Code