Skip to content

docs: define modality-profile terminology and cardinality semantics (#299) - #313

Merged
hyperpolymath merged 1 commit into
mainfrom
arena/b36d5f05-verisimdb
Oct 24, 2026
Merged

hyperpolymath merged 1 commit into
mainfrom
arena/b36d5f05-verisimdb

Conversation

@hyperpolymath

Copy link
Copy Markdown
Owner

Terminology-only change for issue #299 (no wire format, schema, grammar or client type is touched). Refs #299; does not close it — part of its acceptance criteria are owner rulings, see "What this does not do" below.

What changed

  • docs/modality-profile.adoc (new; canonical for the vocabulary)
    • modality profile = the selection an implementation supports (named, versioned slot list + required/optional rules). For this implementation: the Octad, eight fixed slots, not selectable per request.
    • modality set = membership alone, per subject; a subset of the slots is normal.
    • Octad = VeriSimDB's specifically named eight-modality model/API only — not a generic word for a modality group.
    • Defines the subject → profile → slots → set relationship, and states plainly that "up to 8" describes membership, not a variable-arity contract.
    • Required vs optional verified against source, not intent: all seven payload modalities are optional (OctadInput::default() is a valid create); temporal is not settable via the server-side OctadInput and is written by the store on every create/update; metadata is not a modality; update merges and does not shrink the set; is_complete() is an observation (OctadConfig::require_complete is declared but read by no code — stated as a real gap).
    • Cardinality/version representation: no profile object, no profile_version, no cardinality field, no negotiation — and nothing invented. Existing version markers are listed.
    • HEXAD documented as a legacy VCL source keyword (hexad_source = 'HEXAD', uuid, grammar v3.0), explicitly not a six-modality profile and not evidence of a six-slot wire shape.
    • Examples for the supported cases + an explicit "what this version does not support" list for downstream consumers.
  • scripts/check-modality-contract.py + tests/modality-contract-gate.sh — the doc's // modality-contract: annotations are bound to modality.json, octad-input.json and the ModalityStatus/OctadInput structs, so the prose cannot silently describe an implementation that no longer exists. Stdlib Python only; no new action (actions.lock unchanged). Positive control plants four drift directions (ninth enum value, renamed ModalityStatus field, opened schema, extra slot in the doc) and asserts each is rejected for the right reason. Wired into the Documentation Gates workflow.
  • Terminology aligned in README.adoc, EXPLAINME.adoc, ARCHITECTURE.adoc, FAQ.adoc, docs/INDEX.adoc; CHANGELOG.adoc entry added.

Tests run

Gate Result
tests/doc-consonance-gate.sh PASS
scripts/check-doc-links.sh PASS — 377 links / 102 documents, 0 exempt
tests/assail-classifications-gate.sh PASS (incl. positive control)
tests/modality-contract-gate.sh (new) PASS — real tree + all four planted drift directions rejected

Not run: no cargo/rustc and crates.io is network-blocked here, so no Rust test/clippy ran. No Rust source changed; the doc's behavioural claims are read from source and the doc says where that matters.

What this does not do (needs an owner ruling)

Five real contract divergences were found while verifying. None is fixed here — each moves a wire contract or a client API, which #299 explicitly keeps out of a terminology change. All are written up in docs/modality-profile.adoc §9–§10 and in the CHANGELOG:

  1. OpenAPI body vs server. verisim-api-v1.yaml binds POST/PUT /api/v1/octads to the nested octad-input.json, while the handler deserialises the flattened OctadRequest. Reconciling is breaking in one direction.
  2. Promised provenance event. The OpenAPI description says a created provenance event is automatic on create; nothing adds one, so provenance_chain_length can be 0.
  3. Hand-written client input types declare temporal/name/description (Rust, Elixir) or a modalities list (Zig, Julia); the core type and schema declare neither.
  4. The Rust client posts its nested OctadInput to /api/v1/octads, whose keys are unknown to OctadRequest and ignored — by static reading a create would succeed near-empty rather than fail. Flagged as not verified end-to-end.
  5. JSON-Schema $ids are unversioned, so "the versioned contract" cannot be cited by URL alone.

Suggested follow-up: one issue per item above, with the canonical shape decided once.

…299)

Terminology-only change for issue #299. No wire format, schema or API change:
OctadInput, octad-input.json, the VCL grammar and every client type are
untouched.

- docs/modality-profile.adoc (new, canonical for the vocabulary): defines
  consonance subject / modality set / modality profile / Octad, and their
  cardinality; states required-vs-optional against the current source (the
  seven payload modalities are optional, temporal is store-written and always
  present, metadata is not a modality); documents that the profile is fixed at
  eight slots and is not selectable per request; records that HEXAD is a legacy
  VCL source keyword and not a six-modality profile; gives examples for the
  supported cases and an explicit "not supported" list.
- scripts/check-modality-contract.py + tests/modality-contract-gate.sh: bind the
  doc's slot/payload annotations to modality.json, octad-input.json and the
  ModalityStatus/OctadInput structs, with a positive control that plants four
  drift directions. Wired into the Documentation Gates workflow; stdlib only, no
  new action, actions.lock unchanged.
- Terminology aligned in README, EXPLAINME, ARCHITECTURE, FAQ and docs/INDEX.
- CHANGELOG records five contract divergences found while verifying, all
  referred for an owner ruling rather than fixed: OpenAPI body vs the server's
  flattened OctadRequest, the promised automatic provenance event, hand-written
  client OctadInput types, the Rust client posting a body the server ignores,
  and the unversioned JSON-Schema $id's.

Refs #299. Does not close it: acceptance criteria are partly owner decisions.

Co-authored-by: arena-agent <[email protected]>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 24, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-24T10:26:31.124456Z 9e8e40e PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@coderabbitai

coderabbitai Bot commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 9e7405cf-6da5-4db3-9a57-8eb4bf7b7224
Commits

Reviewing files that changed from the base of the PR and between 72837eb and 9e8e40e.

Files selected for processing: 10
  • .github/workflows/doc-consonance.yml
  • ARCHITECTURE.adoc
  • CHANGELOG.adoc
  • EXPLAINME.adoc
  • FAQ.adoc
  • README.adoc
  • docs/INDEX.adoc
  • docs/modality-profile.adoc
  • scripts/check-modality-contract.py
  • tests/modality-contract-gate.sh

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

Recent review details
Context from checks skipped due to timeout: 17
  • GitHub Check: spark-theatre-gate / SPARK Theatre Gate
  • GitHub Check: analyze (javascript-typescript, none)
  • GitHub Check: semgrep-cloud-platform/scan
  • GitHub Check: Elixir build validation
  • GitHub Check: cargo-llvm-cov (≥60%)
  • GitHub Check: benchmarks compile
  • GitHub Check: cargo doc
  • GitHub Check: cargo deny
  • GitHub Check: clippy (all-targets)
  • GitHub Check: fuzz targets compile (rust-core/fuzz/Cargo.toml)
  • GitHub Check: fuzz targets compile (fuzz/Cargo.toml)
  • GitHub Check: cargo audit
  • GitHub Check: cargo test
  • GitHub Check: rustfmt
  • GitHub Check: pr-fuzzing (address)
  • GitHub Check: Rust build validation
  • GitHub Check: reuse lint
CI failures not shown inline: 6

GitHub Actions: Secret Scanner / 0_scan _ gitleaks.txt: docs: define modality-profile terminology and cardinality semantics (#299)

Conclusion: failure

View job details

##[group]GITHUB_TOKEN Permissions
 Contents: read
 Metadata: read
 ##[endgroup]
 Secret source: Actions
 Cache mode: write
 Using locked action versions from the workflow's lockfile
 Prepare workflow directory
 Prepare all required actions
 Getting action download info
 ##[error]Unable to resolve action `actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1`: invalid lockfile pin. Run `gh actions-lock` to update the lockfile

GitHub Actions: Secret Scanner / scan _ gitleaks: docs: define modality-profile terminology and cardinality semantics (#299)

Conclusion: failure

View job details

##[group]GITHUB_TOKEN Permissions
 Contents: read
 Metadata: read
 ##[endgroup]
 Secret source: Actions
 Cache mode: write
 Using locked action versions from the workflow's lockfile
 Prepare workflow directory
 Prepare all required actions
 Getting action download info
 ##[error]Unable to resolve action `actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1`: invalid lockfile pin. Run `gh actions-lock` to update the lockfile

GitHub Actions: Secret Scanner / 1_scan _ rust-secrets.txt: docs: define modality-profile terminology and cardinality semantics (#299)

Conclusion: failure

View job details

##[group]GITHUB_TOKEN Permissions
 Contents: read
 Metadata: read
 ##[endgroup]
 Secret source: Actions
 Cache mode: write
 Using locked action versions from the workflow's lockfile
 Prepare workflow directory
 Prepare all required actions
 Getting action download info
 ##[error]Unable to resolve action `actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1`: invalid lockfile pin. Run `gh actions-lock` to update the lockfile

GitHub Actions: Secret Scanner / scan _ rust-secrets: docs: define modality-profile terminology and cardinality semantics (#299)

Conclusion: failure

View job details

##[group]GITHUB_TOKEN Permissions
 Contents: read
 Metadata: read
 ##[endgroup]
 Secret source: Actions
 Cache mode: write
 Using locked action versions from the workflow's lockfile
 Prepare workflow directory
 Prepare all required actions
 Getting action download info
 ##[error]Unable to resolve action `actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1`: invalid lockfile pin. Run `gh actions-lock` to update the lockfile

GitHub Actions: Secret Scanner / 2_scan _ shell-secrets.txt: docs: define modality-profile terminology and cardinality semantics (#299)

Conclusion: failure

View job details

##[group]GITHUB_TOKEN Permissions
 Contents: read
 Metadata: read
 ##[endgroup]
 Secret source: Actions
 Cache mode: write
 Using locked action versions from the workflow's lockfile
 Prepare workflow directory
 Prepare all required actions
 Getting action download info
 ##[error]Unable to resolve action `actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1`: invalid lockfile pin. Run `gh actions-lock` to update the lockfile

GitHub Actions: Secret Scanner / scan _ shell-secrets: docs: define modality-profile terminology and cardinality semantics (#299)

Conclusion: failure

View job details

##[group]GITHUB_TOKEN Permissions
 Contents: read
 Metadata: read
 ##[endgroup]
 Secret source: Actions
 Cache mode: write
 Using locked action versions from the workflow's lockfile
 Prepare workflow directory
 Prepare all required actions
 Getting action download info
 ##[error]Unable to resolve action `actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1`: invalid lockfile pin. Run `gh actions-lock` to update the lockfile
Additional context used
ast-grep (0.45.3)
tests/modality-contract-gate.sh

[warning] 52-52: set +e (or set +o errexit) disables the shell's errexit option, so the script keeps running after a command fails. This masks failures of security-critical operations (downloads, signature/checksum verification, permission changes, cleanup of secrets), letting the script proceed with a bad or insecure state. Leave errexit enabled (set -e / set -euo pipefail), or handle failures explicitly with if/|| and an explicit exit instead of globally turning off failure detection.
Context: set +e
Note: [CWE-754] Improper Check for Unusual or Exceptional Conditions.

(set-plus-e-error-masking-bash)

scripts/check-modality-contract.py

[warning] 101-105: Regex pattern passed to re is built from a non-literal (variable, call, concatenation, or f-string) value. If that value is attacker-controlled it can introduce a malicious pattern with catastrophic backtracking (ReDoS). Use a hardcoded literal pattern, or validate/escape untrusted input with re.escape() and bound the regex complexity before compiling.
Context: re.search(
rf"pub struct {struct_name}\b[^{{]{{(.?)\n}}",
source,
re.DOTALL,
)
Note: [CWE-1333] Inefficient Regular Expression Complexity.

(redos-non-literal-regex-python)

Ruff (0.16.10)
scripts/check-modality-contract.py

[warning] 61-61: Remove quotes from type annotation

Remove quotes

(UP037)

[warning] 118-118: Use list.extend to create a transformed list

(PERF401)

[warning] 120-120: Use list.extend to create a transformed list

(PERF401)

Additional comments: 10
docs/modality-profile.adoc: 1

1-394: LGTM!

ARCHITECTURE.adoc: 1

17-20: LGTM!

Also applies to: 224-229

EXPLAINME.adoc: 1

19-28: LGTM!

Also applies to: 86-88

FAQ.adoc: 1

53-75: LGTM!

README.adoc: 1

20-20: LGTM!

Also applies to: 65-73, 119-119

docs/INDEX.adoc: 1

81-86: LGTM!

tests/modality-contract-gate.sh: 1

1-146: LGTM!

CHANGELOG.adoc: 1

12-38: LGTM!

.github/workflows/doc-consonance.yml: 1

41-48: 🩺 Stability & Availability

The workflow has no paths filter. Both push to main and pull_request events trigger it for changes to the schema, Rust core, and gate script. No workflow change is required.

scripts/check-modality-contract.py: 1

1-1: 🩺 Stability & Availability

The finding is refuted. The checker and the gate script are both recorded in the Git index with mode 100755, not 100644. The premise that a fresh checkout would lose the executable bit does not hold for the inspected state.

The index output does not state which commit it reflects. It reflects the checkout that was inspected. The reviewed head is 9e8e40e3687bfcffbeb1cc0628979737f787eb88, but the inspection did not confirm that the checkout is at that revision. The claim is refuted for the inspected index. The gate script's -x check was not read, so its behaviour is not assessed here.

📝 Summary

Summary by CodeRabbit

  • Documentation
    • Clarified the distinction between the Octad’s fixed eight-slot profile and the modalities currently present for a subject.
    • Added a reference guide covering supported modalities, input and completeness rules, update behaviour, and known schema and client differences.
    • Updated the README, FAQ, architecture guides, documentation index and changelog with these definitions and links.
  • Tests
    • Added an automated documentation contract check and validation for mismatches between documented modalities, schemas and implementation.

The pull request adds a canonical reference for the fixed Octad modality profile, updates related documentation, and adds a Python contract checker. A shell gate tests the checker against the repository and fixture mutations, and the documentation workflow runs that gate.

Changes: Modality profile contract

Layer / File(s) Summary
Define and publish modality profile semantics
docs/modality-profile.adoc, ARCHITECTURE.adoc, EXPLAINME.adoc, FAQ.adoc, README.adoc, docs/INDEX.adoc
The canonical reference documents the eight fixed Octad slots, modality membership, input and update behaviour, examples, unsupported cases, and known contract divergences. Related documentation links to the reference and distinguishes the Octad profile from a subject’s modality set.
Compare documentation with schema and Rust contracts
scripts/check-modality-contract.py
The checker compares documented slot and payload declarations with JSON schema and Rust fields. It checks that the input schema is closed and that temporal is the only slot without a payload field.
Test and run the contract gate
tests/modality-contract-gate.sh, .github/workflows/doc-consonance.yml, CHANGELOG.adoc
The shell gate checks the repository and fixture mutations. The workflow runs the gate. The changelog records the documentation, unresolved divergences, and verification results.

Priority: Low

Estimated code review effort: 3 (Moderate) | ~25 minutes

Change: Other

Merge Risk: Minimal · up to 9e8e4

No actionable merge-blocking issue is established; the documentation and contract gate are mergeable after normal checks.

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 11.11% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 9 functions across 2 files. (8 skipped: 8… Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 4 passed
Check name Status Explanation
Title check Passed The title clearly summarises the main documentation change: defining modality-profile terminology and cardinality semantics.
Description check Passed The description is directly related to the changeset and explains the documentation, contract checker, tests, scope, and documented divergences.
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

Docstring coverage is 11.11% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 9 functions across 2 files. (8 skipped: 8 unsupported.)

Resolution

Write docstrings for the functions missing them to satisfy the coverage threshold.

Finishing Touches: 💡 1
📝 Generate docstrings: 💡
  • Commit to this branch
  • Create a new PR
🛠️ Fix failing CI checks
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 9e8e40e368

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +195 to +196
* *Update merges.* A supplied modality is replaced; an omitted modality is left
untouched, and its presence flag carries over from the pre-update status

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Distinguish replacement from append-only modality updates

For updates supplying graph or provenance data, the blanket statement that a supplied modality is replaced contradicts the implementation. In rust-core/verisim-octad/src/store.rs, update() calls process_graph(), which inserts the supplied edges without removing existing relationships, and process_provenance(), which appends an event to the existing chain. A consumer following this canonical description could submit a replacement relationship list and incorrectly assume old relationships were removed. Document these modality-specific update semantics while retaining the separate guarantee that omitted modalities preserve their presence flags.

Useful? React with 👍 / 👎.

|`vector` |yes, `Option` |yes |`embedding` length must match the store's
configured `vector_dimension`.
|`tensor` |yes, `Option` |yes |`shape` product must equal `data` length.
|`semantic` |yes, `Option` |yes |No required sub-fields.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Qualify the semantic payload's required sub-fields

When deserializing a core OctadInput, an empty semantic payload is not valid: OctadSemanticInput in rust-core/verisim-octad/src/lib.rs declares non-optional types: Vec<String> and properties: HashMap<String, String> without any #[serde(default)] attributes, so both fields must be present. Only octad-input.json permits their omission. Since this table explicitly describes the source-verified OctadInput contract, saying there are no required sub-fields conceals another schema/core divergence and directs consumers toward payloads that fail deserialization. State the core requirements or explicitly distinguish them from the schema's optional fields.

Useful? React with 👍 / 👎.

@coderabbitai

coderabbitai Bot commented Oct 24, 2026

Copy link
Copy Markdown
Contributor

Add Carrot credits or activate Agent usage billing to use Autofix

@coderabbitai

coderabbitai Bot commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

⚠️ Coding task failed

The task could not be completed. Open the task for details or retry.

@hyperpolymath
hyperpolymath merged commit cb6c538 into main Oct 24, 2026
26 of 33 checks passed
@hyperpolymath
hyperpolymath deleted the arena/b36d5f05-verisimdb branch October 24, 2026 10:42
@coderabbitai

coderabbitai Bot commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

✅ CI fix PR created: #314

Follow #314 for fix progress and CI status. If CI still fails, re-run the fix-ci command to try again.

Note: Fixing CI failures is a beta feature and may encounter errors. Expect some limitations and changes as we gather feedback and continue to improve it.

⚠️ Local verification: format ✗ (2 failing), lint ✗ (2 failing), tests ✗ (2 failing). Real CI will surface the remaining failures.

Note: If your CI is configured to only run on PRs targeting specific branches (e.g., main), it may not trigger on the fix PR. You can merge the fix into your branch and CI will validate on the original PR.

18 PR-caused check(s)

Showing 14 errors from 14 check run(s) out of ~18 total. Deferred 4 check run(s) (GitHub Actions: rust-ci / clippy (all-targets), GitHub Actions: rust-ci / 9_cargo test.txt, GitHub Actions: rust-ci / cargo test, GitHub Actions: rust-ci / cargo deny — lint, test, unknown). These may resolve after fixing the shown errors, or may need a follow-up run.

  • GitHub Actions: Secret Scanner / 0_scan _ gitleaks.txt
  • GitHub Actions: Secret Scanner / scan _ gitleaks
  • GitHub Actions: Secret Scanner / 1_scan _ rust-secrets.txt
  • GitHub Actions: Secret Scanner / scan _ rust-secrets
  • GitHub Actions: Secret Scanner / 2_scan _ shell-secrets.txt
  • GitHub Actions: Secret Scanner / scan _ shell-secrets
  • GitHub Actions: rust-ci / 2_cargo-llvm-cov (≥60%).txt
  • GitHub Actions: rust-ci / cargo-llvm-cov (≥60%)
  • GitHub Actions: rust-ci / cargo-llvm-cov (≥60%)
  • GitHub Actions: rust-ci / 4_clippy (all-targets).txt
  • GitHub Actions: rust-ci / clippy (all-targets)
  • GitHub Actions: rust-ci / 5_cargo deny.txt
  • GitHub Actions: rust-ci / cargo deny
  • GitHub Actions: rust-ci / cargo deny
  • GitHub Actions: rust-ci / 7_cargo audit.txt
  • GitHub Actions: rust-ci / cargo audit
  • GitHub Actions: rust-ci / 9_cargo test.txt
  • GitHub Actions: rust-ci / cargo test
⏭️ Checks skipped: 7 · already failing on `main` (not caused by this PR)
  • GitHub Check: scan / rust-secrets
  • GitHub Check: scan / gitleaks
  • GitHub Check: scan / shell-secrets
  • GitHub Check: cargo-llvm-cov (≥60%)
  • GitHub Check: cargo deny
  • GitHub Check: clippy (all-targets)
  • GitHub Check: cargo audit
14 file(s) modified
  • Cargo.lock
  • rust-core/verisim-api/src/proto/verisim.rs
  • rust-core/verisim-document/src/lib.rs
  • rust-core/verisim-graph/src/lib.rs
  • rust-core/verisim-normalizer/src/lib.rs
  • rust-core/verisim-normalizer/src/regeneration.rs
  • rust-core/verisim-octad/src/lib.rs
  • rust-core/verisim-provenance/src/lib.rs
  • rust-core/verisim-semantic/src/lib.rs
  • rust-core/verisim-spatial/src/lib.rs
  • rust-core/verisim-storage/src/backend.rs
  • rust-core/verisim-temporal/src/lib.rs
  • rust-core/verisim-tensor/src/lib.rs
  • rust-core/verisim-vector/src/lib.rs
View agent analysis
Added `#[allow(clippy::double_must_use)]` to every `#[async_trait]` trait in the workspace. Next: the advisory failures (rustls / webpki-root-certs in Cargo.lock).

I fixed three of the failing check groups by editing source and the lockfile. Two others are caused by files under `.github/workflows/`, which I'm not allowed to change. I didn't build, lint or test anything; the verification step that runs next will do that.

**1. Clippy (`clippy::double_must_use`)** — Newer clippy (1.99) rejects the bare `#[must_use]` that `async-trait` adds to every method in a trait marked `#[async_trait]`. CI only reported `verisim-provenance` and `verisim-spatial` because the build stopped there, but every trait like that in the workspace would hit the same error. I added `#[allow(clippy::double_must_use)]` to each of them:
- graph, vector, tensor, semantic, document, temporal (two traits), provenance, spatial, octad, storage, normalizer (two traits)
- the two gRPC server traits in the pre-generated `verisim-api/src/proto/verisim.rs`

**2. cargo audit / cargo deny (5 advisories)** — There's no `cargo` here, so I edited `Cargo.lock` by hand. I took the new version numbers and checksums from the crates.io index:
- `rustls` 0.23.45 → 0.23.46 (fixes RUSTSEC-2026-0346 to -0349). Its dependency list hasn't changed.
- `webpki-root-certs` 1.0.6 → 1.0.10 (fixes RUSTSEC-2026-0383). It still only depends on `rustls-pki-types`.

The "no crate matched" message for `RUSTSEC-2026-0195` in `deny.toml` is only a warning by default. The comment there says the ignore entry is kept on purpose because whether it matches depends on which features are built, so I left it alone. The `tokio` and `lru` "unsound" items and the yanked `clipboard-win` are also warnings, not the cause of the failures.

**Blocked: needs a change under `.github/workflows/`**
- **Secret Scanner (gitleaks, rust-secrets, shell-secrets):** `.github/workflows/actions.lock` has an invalid pin for `actions/checkout@3d3c42e5…`. Someone with workflow write access needs to run `gh actions-lock` to regenerate it.
- **cargo-llvm-cov (≥60%):** the job runs `cargo llvm-cov` but the tool is never installed. The install step in the rust-ci workflow needs fixing.

None of these failures comes from the PR's documentation changes.

hyperpolymath pushed a commit that referenced this pull request Oct 24, 2026
<!-- coderabbit-ai-generated:v1 -->

CI failure fixes was requested by @hyperpolymath.

*
#313 (comment)

The following files were modified:

* `Cargo.lock`
* `rust-core/verisim-api/src/proto/verisim.rs`
* `rust-core/verisim-document/src/lib.rs`
* `rust-core/verisim-graph/src/lib.rs`
* `rust-core/verisim-normalizer/src/lib.rs`
* `rust-core/verisim-normalizer/src/regeneration.rs`
* `rust-core/verisim-octad/src/lib.rs`
* `rust-core/verisim-provenance/src/lib.rs`
* `rust-core/verisim-semantic/src/lib.rs`
* `rust-core/verisim-spatial/src/lib.rs`
* `rust-core/verisim-storage/src/backend.rs`
* `rust-core/verisim-temporal/src/lib.rs`
* `rust-core/verisim-tensor/src/lib.rs`
* `rust-core/verisim-vector/src/lib.rs`

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
hyperpolymath added a commit that referenced this pull request Oct 25, 2026
Follow-up to #313 (merged `cb6c538`), which delivered the terminology
half of #299. This lands the **handover** so the session survives as a
document instead of a conversation.

## What this adds

- **`docs/HANDOVER-2026-10-24.adoc`** (new) — 14 sections:
  - current state, and the four gates that guard it
  - what #299 asked for, criterion by criterion, with an honest verdict
- the vocabulary as adopted (modality profile / modality set / Octad),
including the rules that follow for downstream projects
- cardinality and required/optional, **each row with its source
evidence** (`OctadInput::default()` is a valid create; `temporal` is
store-written on every create *and* update; `require_complete` is
declared but read by no code; `additionalProperties: false` versus the
Rust types' missing `deny_unknown_fields`)
  - `HEXAD` settled against grammar v3.0
- the six contract divergences, with a table of which consumers speak
which shape
  - the DEED / kyq / kyX standards findings
- eight options for the request-shape ruling (O0–O6) and a recommended
sequence
  - the three decisions still owed by the owner
  - ranked remaining work, a reproduce block, traps, and a thread map
- **`docs/INDEX.adoc`** — new *Handovers* section.
- **`CHANGELOG.adoc`** — `[Unreleased]` entry.

## Contract impact

**None.** Documentation only; no schema, OpenAPI, grammar, Rust or
client file is touched. Item 1 is analysed, costed and *not* implemented
— deliberately, because it needs an owner ruling.

## Tests run

| Gate | Result |
|---|---|
| `tests/doc-consonance-gate.sh` | PASS |
| `scripts/check-doc-links.sh` | PASS — 389 links / 103 documents, 0
exempt |
| `scripts/check-modality-contract.py` | PASS — 8 slots / 8 payload
fields |
| `tests/modality-contract-gate.sh` | PASS — 4 planted drift directions
rejected |
| `tests/assail-classifications-gate.sh` | PASS incl. positive control |

**Not run:** no `cargo`/`rustc`/`mix`/`bun` here and crates.io is
blocked, so no Rust, Elixir or Coq build ran. Nothing in this PR is
code, so nothing new is untested.

## Issue status

**#299 is deliberately left open.** The terminology half is delivered;
the implicit "the contract is verified and versioned" half cannot be met
by a documentation change — the JSON-Schema `$id`s are unversioned and
the OpenAPI request body disagrees with the running server. The handover
says so explicitly in §2, so nobody closes the issue on the strength of
improved wording.

Decision requests are consolidated in §9: (1) which request shape is
canonical, (2) whether `deny_unknown_fields` may ship as a `400` now,
(3) whether the promised automatic `created` provenance event should be
implemented or the sentence deleted.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

<!-- coderabbit-ai-generated:v1 -->

## Summary by CodeRabbit

* **Documentation**
* Added a handover document covering modality-profile terminology and
the fixed eight-slot cardinality.
* Documented differences between the schema, API, clients and grammar,
along with standards research and verification findings.
* Added links to the handover in the documentation index, including a
summary of open decisions and follow-up work.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Signed-off-by: Jonathan D.A. Jewell <[email protected]>
Co-authored-by: Arena Agent <[email protected]>
Co-authored-by: arena-agent <[email protected]>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
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