feat: PRD-7 Phase 0 synergies, datum intelligence modules, generic McpProvider, b00t-iface expansion#61
Merged
Conversation
…add type attestation concept - constraints.rs: `ConstraintEvaluation::to_issues()`, `to_meta_flag()`, `InvoiceVerification`, `InvoiceConstraintSolver::verify()` - validation.rs: `CommitGate` enum (Approved / PendingOperator / Blocked) - legal.rs: `From<Z3Result> for Vec<Issue>`, `LegalSolver::verify_all()`, `Jurisdiction::legal_ruleset()`, FBAR/FEIE/AU-FBT/AU-GST-s40-5 rules - pipeline.rs: `PipelineState<Ingested>::check_constraints()`, `PipelineState<Validated>::verify_legal()`, `evaluate_commit_gate()` - PRD-6-FUTURE.md: concept definition for #[attested] proc-macro lint + dual-solver invariant ledger - README.md: capability table updated; Future Ambitions section added (PRD-7/8/6-FUTURE) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…ev and datum CI steps - crates/ledger-core/tests/legal_z3_integration.rs: Z3-native verify_all() integration test gated behind --features legal-z3; validates SatResult→Z3Result mapping on au-gst-38-190 - .github/workflows/ci.yml: add libz3-dev apt install, cargo test -p datum step, and legal_z3_integration --features legal-z3 step Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
… tomllmd compiler
- ast.rs: DatumAst section hierarchy, LintSeverity (Error/Warning/Info), lint_ast(),
parse_datum(), validate_datum_structure() — 15 tests, CI-gateable
- logic.rs: NAND/NOR/ADD/WAIT/TX/RX gate types, flux capacitor meta-state,
shorthand tokenizer (&&/||/!/→/←) — 19 tests
- protocol.rs: Z3/Kasuari-style constraint system for protocol encoding optimality
(O = P XOR B), evaluate_protocol(), has_unrecoverable_violations(),
classify_violations(), KASUARI_SHORTHAND dialect table — 11 tests
- tomllmd.rs: .tomllmd compiler with SectionLevels (verbatim/executive/epigram),
EntanglementRef with type validation {{ name.type }}, compounding metadata,
command interpolation via {{ cmd: ... }} — 11 tests
- Cargo.toml: feature flag real_datums for external _b00t_ repo tests; 58 total
standalone tests with no external deps
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…b00t, just, ir0ntology - provider.rs: McpProvider trait (initialize, call_tool, list_tools, shutdown), StdioMcpProvider (subprocess stdio MCP transport), McpProviderRegistry (discovery/routing, initialize_all(), call_tool() by name) - providers/definitions.rs: B00tProvider, JustProvider, Ir0ntologyProvider — each wrapping StdioMcpProvider with typed constructors and B00T_HOME resolution - providers/mod.rs: module exports - lib.rs: re-export provider and providers modules - mcp_adapter.rs: wiring stubs for external tool dispatch - ledgerr-mcp-server.rs: McpProviderRegistry initialization path - Cargo.toml: serde_json, thiserror deps for provider transport layer - Not yet wired into tool dispatch; requires McpProviderRegistry injection at server startup — see AGENTS.md 2026-05-02 entry for wiring plan Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- sarif/mod.rs: extended SARIF output helpers for clippy-to-sarif pipeline, additional rule severity mappings, and result suppression annotations - ralph.rs: stub for ralph integration surface (placeholder, not yet wired) - lib.rs: expose ralph module Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…iant, datum AST linter - .tomllmd: pipeline autoresearch→tomllmd, three summary levels, command interpolation, entanglement invariant typing, compounding via sm0l/ch0nky LLM merge - McpProvider: trait as the invariant MCP interface; StdioMcpProvider + registry; B00t/Just/Ir0ntology providers; Cloudflare Code Mode as next evolution target; wiring plan into mcp_adapter.rs dispatcher - Datum AST linter: DatumAst, lint_ast(), 58 standalone tests, real_datums feature gate Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- .gitignore: app4dog* — external project datum files not tracked in this repo - Cargo.lock: dependency resolution update for datum and ledgerr-mcp additions Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…rgs, no recursion Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Member
|
@copilot review this code |
…ts with tempdir/real_datums Agent-Logs-Url: https://github.com/PromptExecution/l3dg3rr/sessions/e9f325f4-ebc0-459e-9c58-56cd122e8058 Co-authored-by: elasticdotventures <35611074+elasticdotventures@users.noreply.github.com>
… in tests Agent-Logs-Url: https://github.com/PromptExecution/l3dg3rr/sessions/e9f325f4-ebc0-459e-9c58-56cd122e8058 Co-authored-by: elasticdotventures <35611074+elasticdotventures@users.noreply.github.com>
Contributor
Code review identified two CI failures in
All 48 tests now pass locally with clippy clean. |
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
ConstraintEvaluation → Issue + MetaFlag,Z3Result → Issue,CommitGate,verify_legal(),check_constraints(),evaluate_commit_gate(). 12 new tests, all passing.#[attested]proc-macro lint concept — types claiming formal properties must provide dual-solver (Z3 + Kasuari) assertions backed by Kani proofs, recorded in an append-only_invariantsworkbook ledger.O = P XOR B), and.tomllmdcompiler (verbatim/executive/epigram summary levels, entanglement refs, compounding). 58 standalone tests.StdioMcpProvider) +McpProviderRegistry+ concreteB00tProvider,JustProvider,Ir0ntologyProvider. Invariant interface for all external tool surfaces.libz3-devapt step,cargo test -p datum,legal_z3_integration --features legal-z3.Backlog issues opened
TransactionFactsfrom pipeline stateInvoiceConstraintSolver,VendorConstraintSet,CommitGate)_auditsheetledger-attestproc-macro skeletonIngestStatementOpPDF branch +DoclingProcessSurfaceb00t attestationTest plan
cargo test -p ledger-core— 12 new tests green, all existing tests passcargo test -p datum— 58 standalone tests (ast/logic/protocol/tomllmd), no external depscargo test --workspace --exclude b00t-iface— pre-existingcontract_codegensnapshot failure unrelated to this branchcargo test -p ledger-core --test legal_z3_integration --features legal-z3— requireslibz3-devon host🤖 Generated with Claude Code