Repository navigation
test(stack): add Stack Witness 0001 fixture artifact shape - #499
Conversation
📝 WalkthroughWalkthroughThis PR introduces comprehensive test fixtures for the Stack Witness 0001 "file history" consumer model. It adds a GraphQL schema defining three operations (createBuffer, replaceRange, textWindow) with Wesley metadata directives, corresponding operation metadata in JSON, and validates the fixture across schema analysis, Rust code generation, and TypeScript code generation tests. ChangesStack Witness 0001 Test Fixture and Validation
🎯 3 (Moderate) | ⏱️ ~20 minutes
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
🔍 The Case of Pull Request #499Plain-English Readout
Suggested next actions
📚 Glossary (what the Holmes terms mean)
🕵️ SHA-lock HOLMES full report (click to expand)🕵️ SHA-lock HOLMES Investigation
🔍 Executive Deduction"Watson, after careful examination of the evidence, I deduce..." Weighted Completion: ░░░░░░░░░░ 0.0% 🧩 SCS Breakdown
🧪 TCI Breakdown
|
| Component | Risk Share | Points | Count |
|---|---|---|---|
| Drops | 0% | 0 | 0 |
| Renames Without Uid | 0% | 0 | 0 |
| Add Not Null Without Default | 0% | 0 | 0 |
| Non Concurrent Indexes | 0% | 0 | 0 |
📊 The Weight of Evidence
"Observe, Watson, how not all features carry equal importance..."
| Element | Weight | Status | Evidence | Strength | Deduction |
|---|
🚪 Security & Performance Gates
"Elementary security measures, Watson..."
| Gate | Status | Evidence | Holmes's Ruling |
|---|---|---|---|
| Migration Risk | ✅ | MRI: 0.0% | "Trivial risk" |
| Test Coverage | TCI: 0.0% | "Theatrical tests!" | |
| Sensitive Fields | ✅ | 0 fields | "All secured" |
| Evidence Quality | ⛔ | 0 exact · 0 whole-file · 0 coarse | "No evidence citations were available for trust analysis." |
📋 The Verdict
⛔ YOU SHALL NOT PASS
"Critical evidence is missing! Return to your laboratory!"
Signed and sealed,
- S. Holmes, Consulting Detective
[END OF INVESTIGATION FOR COMMIT bb38252]
🧵 Command Run
- Run ID: run-mp1f53w9-n9ofvu
- Transmutation: holmes-investigate
- Command: investigate
- Status: completed
- Ledger: /home/runner/work/wesley/wesley/test/fixtures/examples/.wesley-cache/ledger
🩺 Dr. WATSON full report (click to expand)
🩺 Dr. Watson's Independent Verification Report
Medical Examination of Evidence
- Examination Date: 2026-05-11T16:31:37.467Z
- Patient SHA: bb38252
🔬 Citation Verification
"Let me examine each piece of evidence independently..."
- Citations Examined: 0
- Verified: 0 ✅
- Failed: 0 ❌
- Unable to Verify: 0
- Exact Subrange Citations: 0
- Whole-file Citations: 0
- Coarse Citations: 0
- Evidence Trust: missing
- Trust Note: No evidence citations were available for trust analysis.
Verification Rate: 0.0%
📊 Mathematical Verification
"I shall recalculate Holmes's arithmetic..."
Holmes claimed SCS: 0.0%
Watson calculates: 0.0%
Difference: ✅ Negligible
🔍 Consistency Analysis
"Checking for contradictions in Holmes's deductions..."
🩺 Dr. Watson's Medical Opinion
VERIFICATION: CONCERNS NOTED
"While Holmes's methods are generally sound, I have noted some"
"discrepancies that warrant further investigation. No evidence citations were available for trust analysis."
Respectfully submitted,
- Dr. J. Watson, M.D.
Medical Examiner & Verification Specialist
🧵 Command Run
- Run ID: run-mp1f5r74-weiagv
- Transmutation: watson-verify
- Command: verify
- Status: completed
- Ledger: /home/runner/work/wesley/wesley/test/fixtures/examples/.wesley-cache/ledger
🔮 Professor MORIARTY full report (click to expand)
🧠 Professor Moriarty's Temporal Predictions
The Mathematics of Inevitability
- Analysis Date: 2026-05-11T16:32:29.617Z
🔮 Current State
SCS: ░░░░░░░░░░ 0.0%
TCI: ░░░░░░░░░░ 0.0%
MRI: 0.0% risk
Evidence Trust: missing
📈 Velocity Analysis
SCS Velocity: +0.00%/day
Git Activity (window): 24h · commits 2 (2 relevant) · ~2.00 commits/day
↳ Magnitude: ~179 relevant LOC/day across ~1.0 files/day
Activity Index: 15 / 100 (PR 0, Window 39)
Blended Velocity: +0.09%/day
Commit Size Burstiness: 66 / 100 (higher = more uneven commit sizes)
⏰ Completion Predictions
ETA: Cannot predict (insufficient velocity)
"At current velocity, completion is... improbable."
⚠️ Warnings
- Evidence trust is missing; No evidence citations were available for trust analysis.
🧪 Readiness EXPLAIN
- SCS ≥ 80% → FAIL ❌ (actual 0.0%)
- TCI ≥ 70% → FAIL ❌ (actual 0.0%)
- MRI ≤ 40% → PASS ✅ (actual 0.0%)
- CI Stability ≥ 90% (branch main) → PASS ✅ (actual 93% over ~168h)
- Evidence Trust ≥ moderate → FAIL ❌ (actual missing) — No evidence citations were available for trust analysis.
- Delivery context (last 168h): 0 issues closed · 3 PRs merged (informational, not gating)
Signals blend: SCS velocity (70%) + Git activity (30%, branch-first). Activity only suppresses false plateaus; it never inflates readiness.
📊 Historical Trajectory
05-11: ░░░░░░░░░░ 0.0%
05-11: ░░░░░░░░░░ 0.0%
05-11: ░░░░░░░░░░ 0.0%
"Every problem becomes elementary when reduced to mathematics"
— Professor Moriarty
🧵 Command Run
- Run ID: run-mp1f6vfz-zksj1x
- Transmutation: moriarty-predict
- Command: predict
- Status: completed
- Ledger: /home/runner/work/wesley/wesley/test/fixtures/examples/.wesley-cache/ledger
Machine-readable reports: holmes-report.json · watson-report.json · moriarty-report.json (see workflow artifacts).
Filed at 221B Repository Street
|
Summary
Adds the Stack Witness 0001 fixture artifact shape for the jedit-through-Echo walking skeleton.
This PR publishes a hermetic Wesley fixture that Echo can mirror without making Wesley depend on Echo runtime internals.
Why
Echo now has a tiny jedit-through-Echo walking skeleton. Wesley needs to publish the corresponding fixture artifact shape so the stack can detect drift before real generated integration begins.
The specific boundary being proven is:
The fixture is intentionally narrow. It does not redesign Wesley, generalize contract hosting, touch Continuum, or publish a new Wesley release.
Changes
test/fixtures/consumer-models/stack-witness-0001-file-history.graphqlwith the Stack Witness 0001 GraphQL operation surface.test/fixtures/consumer-models/stack-witness-0001-vectors.jsonwith operation ids, canonical vars encoding, helper shape, declared footprints, and expected query payload bytes.replaceRangeandtextWindowso target buffer identity is part of operation meaning.QueryByteswith base64-shaped byte payload semantics instead of pretending arbitrary bytes are plain text.consumer-models/fixture ownership intest/fixtures/README.md.Evidence
test/fixtures/consumer-models/stack-witness-0001-file-history.graphql: lines 48-75createBuffer,replaceRange, andtextWindowpublish artifact identity, op ids, helper kind, canonical vars encoding, canonical vars bytes, fixture-vector anchors, and footprints.test/fixtures/consumer-models/stack-witness-0001-file-history.graphql: lines 78-173helloquery bytes as hex.test/fixtures/consumer-models/stack-witness-0001-vectors.json: lines 1-87crates/wesley-core/tests/operation_analysis.rs: lines 305-519crates/wesley-emit-rust/src/lib.rs: lines 738-789crates/wesley-emit-typescript/src/lib.rs: lines 755-809Risk
Low runtime risk. This PR adds fixture data, tests, docs, and changelog coverage only.
Main integration risk is fixture drift between Wesley and Echo. That is intentional: Echo now mirrors this vector and has a separate drift-lock regression. If this Wesley vector changes, Echo must update its mirror in the dependent PR.
No Wesley release is included. Publishing should wait for reuse pressure after the seam lands.
Backout
Revert this PR. It only adds fixture artifacts and tests; reverting removes the Stack Witness 0001 fixture surface without touching released Wesley runtime behavior.
If Echo has already landed its mirror, revert or update the Echo drift-lock PR/commit at the same time so Echo does not point at a removed Wesley fixture.
Testing
Additional push-time validation:
CI on PR head
1b8cdaa2de57031fe91c29d8820f8c4f04885d7eis green.Checklist
createBuffer,replaceRange, andtextWindow.