feat: borrow agent-language ideas — contracts-in-evidence, boruna_symbols, agent corpus, quickfix gate#80
Merged
Merged
Conversation
…de-patch design note
…um variants, bare match patterns) The reference showed constructs that do not compile: 'record' keyword (lexer only has 'type'), struct-style enum variants with multiple fields (parser accepts unit or single-payload only), and 'Enum::Variant' paths in match arms (parser uses bare variant names). All corrected forms verified with 'boruna lang check'.
|
Bench compare Threshold for regression: ≥ 10% slower mean.
|
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.
Borrows the strongest ideas from the other projects catalogued at agentlanguages.dev, each mapped onto Boruna's determinism + evidence moat. Four disjoint slices, built in parallel and integrated behind full-workspace gates.
What's in it
1. Contract checks → sealed evidence (the differentiator)
requires/ensureswere already enforced as runtime guards, but a passing contract left no trace. Now every contract check emits aContractCheck { function, kind, index, passed }event (both pass and fail) into the hash-chainedEventLog, so an evidence bundle now proves every precondition/postcondition held on a run — a compliance artifact none of the verification-camp peers (Vera, Aver) produce.Event::ContractCheck;EVENT_LOG_VERSION1→2 (backward-read preserved).Op::Assertextended to carrykind+ clause index; VM records both outcomes then still traps on violation.ContractChecksurvives into a sealed +verify_bundle-passing evidence bundle, and tampering the sealed log fails verification.2.
boruna_symbolsMCP tool (zero-training-data mitigation)13th MCP tool:
.axsource → exact typed signatures (fns/records/enums), capabilities, andrequires/ensuresarity — so coding agents ground on real APIs instead of hallucinating them.3. Agent-facing corpus (zero-training-data mitigation)
llms.txt+llms-full.txt(.axteaching primer) +docs/agent/portal.json(machine-readable manifest: caps, 13 libs, 5 templates, 13 tools).4. Quickfix-coverage CI gate (X07 discipline)
tooling/tests/quickfix_coverage.rspartitions the diagnostic-code registry: every fixable code must ship a repair (proven by a behavioral fixture that emits + applies a real edit) or be allowlisted with a reason. Plus a node-addressed-patch design note.5. Doc-drift fix (surfaced by the work)
docs/reference/ax-language.mdshowed syntax that does not compile (recordkeyword, struct-style enum variants,Enum::Variantmatch paths). Corrected to the real grammar (type, single-payload variants, bare match patterns), each form verified withboruna lang check.Verification
Full-workspace gates on the integrated branch:
cargo fmt --checkclean ·cargo clippy --workspace -D warningszero warnings ·cargo test --workspace= 1402 passed / 0 failed (+14 new tests).Deferred (need a design pass first)
Behavioral certificates (Lean), conformal-confidence gating, type-guided token sampling, M-EVAL benchmark harness.
https://claude.ai/code/session_01BEk2VHyMr1MrSPitnhox5o