Repository navigation
feat: rename the veriq: bind property to calc: with producer-path references (#205) - #227
Draft
shunsuke-shimomura wants to merge 3 commits into
Draft
shunsuke-shimomura wants to merge 3 commits into
shunsuke-shimomura wants to merge 3 commits into
Conversation
shunsuke-shimomura
force-pushed
the
feat/205-calc-property
branch
from
November 10, 2026 00:56
16e3843 to
adf23cd
Compare
…erences (#205) A bind now references calc evidence with `calc: "<path>"`, the target's path in the producer's calculation graph (veriq: `Scope::?name`), in place of `veriq: "module.function"`. The parser rejects an empty or whitespace-containing calc reference; nothing else about the path is interpreted. Every enum variant, message, blame cause, export value, fixture, snapshot, the web viewer and the VS Code grammar follow the rename. Evaluating calc evidence remains #208/#209. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
A bind still written with `veriq:` got "unknown property" plus "a bind requires exactly one of test: or calc:". It now gets one error that names the rename and the new value format. Also pin that `calc:` is refused on a non-bind.
shunsuke-shimomura
force-pushed
the
feat/205-calc-property
branch
from
November 10, 2026 03:55
adf23cd to
cdaf960
Compare
Member
Author
Review follow-up (2026-11-10)Rebased onto the updated #226 and force-pushed. One commit was added.
A bind still written with Left as is
|
This branch has not been deployed
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.
Description
Closes #205 (parent: #40). Stacked on #226, which specifies
calc:.Renames the bind evidence property
veriq:tocalc:throughout the implementation, as a direct replacement with no compatibility alias (theci:→test:precedent):calc:;veriq:is no longer a property.SourceRef::Veriq→SourceRef::Calc,EvidenceKind::Veriq→Calc,Property::Veriq→Calc(comment anchor namecalc),SourceScheme::Veriq→Calc. Error messages nametest:/calc:.module.functionform is gone. Acalc:value is a path in the producer's calculation graph (veriq:Scope::?name); the parser rejects an empty value or one containing whitespace, while still recording the reference so a bind is not also blamed for lacking one.test:values are unchanged (whitespace stays allowed).BlameReason::VeriqNotEvaluated→CalcNotEvaluated(JSONcalc_not_evaluated),BlockedReasonlikewise; messages read "calc evidence is not evaluated yet". Wiring real evidence in is calc evidence: load-time consumption, interface hash and assumption edges in check #208/calc evidence: evaluate calc binds and fill the bind hash's assumption slot #209."kind": "calc"in the export JSON; the web viewer's zod schema, tests and fixture (web/fixtures/aocs.elements.json, regenerated withinka export) follow.inka-lsprenderscalc: "…"in navigation.tests/fixtures/aocsbinds now referenceAOCS::?verify_*; theunestablishedCLI fixture, READMEs (en/ja) and the VS Code TextMate grammar are updated. Snapshots regenerated.Prose that names veriq as a tool (dogfood descriptions, "promote to a veriq verification") is left as is.
Test results
cargo test --workspace: all pass exceptinka-evidence-rust/tests/adapter.rs, which requirescargo-nextest(not installed locally; unrelated). New parser tests:rejects_a_calc_reference_containing_whitespace,rejects_an_empty_calc_reference,a_test_reference_may_contain_whitespace.Veriq→Calc,veriq→calc,veriq_not_evaluated→calc_not_evaluatedand the five aocs target paths.web:npm testandtsc --noEmitpass (see below).cargo fmt --check,cargo clippy --workspace --all-targets,prekon changed files: clean.Impact
veriq:no longer parses — any argument using it must switch tocalc:with a producer path. The only in-repo users were the aocs andunestablishedfixtures.evidence.kindvalue changes fromveriqtocalc; the web viewer is updated in the same PR.calc; a bind with a comment on that property hashes differently from before, as the spec in docs: specify calc evidence contracts and freeze its hash layouts (#211) #226 states. No recorded approval or golden vector is affected.Supplementary information
calc:format check is deliberately producer-independent (non-empty, no whitespace) rather than aScope::?namegrammar, percalc-evidence.md.🤖 Generated with Claude Code