Skip to content

feat: convergence tracking, rivet get, MCP server, LSP doc validation#108

Merged
avrabe merged 3 commits intomainfrom
feat/parallel-batch
Apr 2, 2026
Merged

feat: convergence tracking, rivet get, MCP server, LSP doc validation#108
avrabe merged 3 commits intomainfrom
feat/parallel-batch

Conversation

@avrabe
Copy link
Copy Markdown
Contributor

@avrabe avrabe commented Apr 2, 2026

Summary

Four features from parallel agent execution:

Agent convergence tracking (#100)

  • FailureSignature fingerprinting: severity:rule:artifact_id:message_hash
  • RetryStrategy escalation: Normal → ExpandedContext → DifferentApproach → HumanReview
  • --track-convergence flag on rivet validate
  • Persistent state in .rivet/convergence.json
  • 22 unit tests

rivet get command (#93)

  • Single-artifact read: rivet get REQ-001
  • Three output formats: --format text|json|yaml
  • 3 CLI integration tests

MCP server scaffold (#98)

  • rivet mcp — JSON-RPC 2.0 over stdio
  • 3 tools: rivet_validate, rivet_list, rivet_stats
  • No new dependencies (uses serde_json)
  • Compatible with Claude Code, Cursor, etc.

LSP document validation (audit fix)

  • validate_documents() now called in LSP flow
  • Broken [[ID]] references surfaced with file + line
  • Applied at startup, didSave, and didChange
  • Satisfies SC-LSP-002

Tests: 25 new (22 convergence + 3 get)

Refs #93, #98, #100.

Test plan

  • cargo test --workspace — 700+ tests pass
  • cargo check — clean
  • CI

🤖 Generated with Claude Code

avrabe added 3 commits April 1, 2026 20:38
…gnatures (#100)

Tracks validation failure fingerprints across runs to detect when
AI agents are stuck in retry loops:

- FailureSignature: severity:rule:artifact_id:message_hash
- RetryStrategy escalation: Normal → ExpandedContext → DifferentApproach → HumanReview
- Persistent state in .rivet/convergence.json
- --track-convergence flag on rivet validate

22 unit tests covering signature determinism, escalation, resolution,
and JSON persistence.
Retrieves a single artifact by ID with text/json/yaml output.
3 integration tests: text output, JSON with fields, nonexistent ID.
JSON-RPC 2.0 over stdio implementing Model Context Protocol.
3 initial tools: rivet_validate, rivet_list, rivet_stats.
No new dependencies — uses serde_json directly.

Start with: rivet mcp
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 2, 2026

Codecov Report

❌ Patch coverage is 91.45299% with 30 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
rivet-core/src/convergence.rs 93.31% 23 Missing ⚠️
rivet-core/src/validate.rs 0.00% 7 Missing ⚠️

📢 Thoughts on this report? Let us know!

@avrabe avrabe merged commit 9a5011e into main Apr 2, 2026
16 of 18 checks passed
@avrabe avrabe deleted the feat/parallel-batch branch April 2, 2026 00:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant