Skip to content

feat: rename the veriq: bind property to calc: with producer-path references (#205) - #227

Draft
shunsuke-shimomura wants to merge 3 commits into
docs/211-calc-evidencefrom
feat/205-calc-property
Draft

shunsuke-shimomura wants to merge 3 commits into
docs/211-calc-evidencefrom
feat/205-calc-property

Conversation

@shunsuke-shimomura

@shunsuke-shimomura shunsuke-shimomura commented Nov 9, 2026 •

Copy link
Copy Markdown
Member

Description

Closes #205 (parent: #40). Stacked on #226, which specifies calc:.

Renames the bind evidence property veriq: to calc: throughout the implementation, as a direct replacement with no compatibility alias (the ci: → test: precedent):

  • Language: lexer/parser accept calc:; veriq: is no longer a property. SourceRef::Veriq → SourceRef::Calc, EvidenceKind::Veriq → Calc, Property::Veriq → Calc (comment anchor name calc), SourceScheme::Veriq → Calc. Error messages name test: / calc:.
  • Format check: the dotted module.function form is gone. A calc: 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).
  • Eval / review: BlameReason::VeriqNotEvaluated → CalcNotEvaluated (JSON calc_not_evaluated), BlockedReason likewise; 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.
  • CLI export and web: "kind": "calc" in the export JSON; the web viewer's zod schema, tests and fixture (web/fixtures/aocs.elements.json, regenerated with inka export) follow. inka-lsp renders calc: "…" in navigation.
  • Fixtures and grammar: tests/fixtures/aocs binds now reference AOCS::?verify_*; the unestablished CLI 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 except inka-evidence-rust/tests/adapter.rs, which requires cargo-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.
  • Snapshot diffs are exactly Veriq→Calc, veriq→calc, veriq_not_evaluated→calc_not_evaluated and the five aocs target paths.
  • Golden vectors unchanged and still replayed: no frozen vector carries a comment on the evidence property, so renaming the anchor changes no recorded hash.
  • web: npm test and tsc --noEmit pass (see below).
  • cargo fmt --check, cargo clippy --workspace --all-targets, prek on changed files: clean.

Impact

  • veriq: no longer parses — any argument using it must switch to calc: with a producer path. The only in-repo users were the aocs and unestablished fixtures.
  • The export JSON's evidence.kind value changes from veriq to calc; the web viewer is updated in the same PR.
  • The comment canonical form's anchor for the evidence property is 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

  • The calc: format check is deliberately producer-independent (non-empty, no whitespace) rather than a Scope::?name grammar, per calc-evidence.md.

🤖 Generated with Claude Code

shunsuke-shimomura and others added 3 commits November 10, 2026 12:27
…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

Copy link
Copy Markdown
Member Author

Review follow-up (2026-11-10)

Rebased onto the updated #226 and force-pushed. One commit was added.

cdaf960 — fix(core): report the retired veriq: property once, as renamed to calc:

A bind still written with veriq: "…" used to get "unknown property" plus "a bind requires exactly one of test: or calc:". It now gets one error naming the rename and the new value format. A test also pins that calc: is refused on a non-bind.

Left as is

  • "Once" holds for a quoted value. veriq: foo (unquoted) still adds "expected a quoted reference" and the bind's "requires exactly one of test: or calc:" (checked with inka check). The value is deliberately still read as a calc: reference so the rest of the block is checked; the extra lines are cosmetic.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation 📓 Improvements or additions to documentation sys::SE システムズエンジニアリング

Projects

None yet

Development

Successfully merging this pull request may close these issues.

calc evidence: rename the veriq: bind property to calc: with Scope::?name references

1 participant