Skip to content

fix(ci): remove pre-existing unused RAM promotion fields - #335

Merged
hyperpolymath merged 5 commits into
mainfrom
fix/ram-promotion-clippy
Oct 29, 2026
Merged

hyperpolymath merged 5 commits into
mainfrom
fix/ram-promotion-clippy

Conversation

@hyperpolymath

@hyperpolymath hyperpolymath commented Oct 29, 2026 •

Copy link
Copy Markdown
Owner

The current strict clippy (all-targets) job fails on rust-core/verisim-octad/src/ram_promotion.rs even for unrelated PRs (#333 and #334).

Two diagnostics:

  • HashSet is imported but never used.
  • PromotedState.modality is never read; the containing PromotionManager.promoted map already keys entries by Modality.

Remove the unused import and redundant private field/initializer. No storage format, behaviour, or API change. Await CI. This is independent of the WAL and API integrity changes.

Summary by CodeRabbit

  • Tests
    • Updated the capability-matching test setup; its matching logic and expected result remain unchanged.
  • Refactor
    • Simplified internal promotion-state handling and removed an unused import. No user-facing behaviour changes are reported.

@coderabbitai

coderabbitai Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

Walkthrough

The changes replace a vector with an array in a capability-matching test and remove redundant modality storage from RAM promotion state.

Changes

Capability matching test

Layer / File(s) Summary
Peer capability test data
rust-core/verisim-api/src/groove.rs
The test initialises peer capabilities as an array instead of a vector. Matching logic and the expected result remain unchanged.

Promotion state

Layer / File(s) Summary
Use the map key for modality
rust-core/verisim-octad/src/ram_promotion.rs
PromotedState no longer stores a separate modality field. Promotion continues to use modality as the map key.

Priority: Low

Estimated code review effort: 1 (Trivial) | ~5 minutes

Change: Refactor

Merge Risk: Minimal · previous review ac477

The cleanup is safe to merge.

Pre-merge checks: Passed 5
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title uses the conventional-commits prefix 'fix(ci):' and names the change as removing RAM promotion fields. The changeset removes an unused HashSet import and the redundant PromotedState.modality…
Docstring Coverage Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
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: Title check

Explanation

The title uses the conventional-commits prefix 'fix(ci):' and names the change as removing RAM promotion fields. The changeset removes an unused HashSet import and the redundant PromotedState.modality field in ram_promotion.rs, which the PR objectives describe as fixing strict clippy (all-targets) diagnostics. The title states what changes rather than that CI passes. However, the title says 'unused RAM promotion fields' (plural) while the diff removes one field and one import, and the groove.rs test change is not mentioned. The title is therefore partially related: it covers the main change but omits the second commit and the 'fix' framing is arguable since it addresses lint failures.

Full details: Docstring Coverage

Explanation

Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 1 functions across 2 files.

Finishing Touches: 💡 1
🛠️ Fix failing CI checks: 💡
  • Commit to this branch
  • Create a new PR
📝 Generate docstrings
🧪 Generate unit tests (beta)
  • 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.

@hyperpolymath
hyperpolymath marked this pull request as ready for review October 29, 2026 20:22
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 29, 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-29T21:26:08.460392Z ac4779f New commits
ℹ️ 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 29, 2026 •

Copy link
Copy Markdown
Contributor

✅ Coding Agent task started: View task and status

The task will inspect the CI failures, validate its fix, and commit the fix to this branch automatically.

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.

⏭️ Checks skipped: 10 · already failing on `main` (not caused by this PR)
  • GitHub Actions: Governance / governance _ UUID v8 conformance
  • GitHub Actions: Governance / governance _ Code quality + docs
  • GitHub Actions: Governance / governance _ Actions lockfile verify
  • GitHub Actions: Governance / governance _ Language _ package anti-pattern policy
  • GitHub Actions: Governance / governance _ Workflow security linter
  • GitHub Actions: Governance / governance _ UUID v7 conformance
  • GitHub Actions: Governance / governance _ Well-Known (RFC 9116 + RSR)
  • GitHub Actions: Governance / governance _ Well-Known (RFC 9116 + RSR)
  • GitHub Actions: Governance / governance _ Security policy checks
  • GitHub Actions: Governance / governance _ Allowlist Preflight

@coderabbitai

coderabbitai Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

🤖 Completed: Generate docstrings for PR #335 — View commit 0b52df6

@sonarqubecloud

Copy link
Copy Markdown

@hyperpolymath
hyperpolymath merged commit 8af7bde into main Oct 29, 2026
4 checks passed
@hyperpolymath
hyperpolymath deleted the fix/ram-promotion-clippy branch October 29, 2026 21:55
hyperpolymath added a commit that referenced this pull request Oct 31, 2026
…tions and v1 consumer contract (#337)

Independent code-grounded reconnaissance as of main
`5876bc67e8962e3b276fb0161664e0b3a420a64c`.

Adds three review documents:
- `docs/reviews/2026-10-29-verisimdb-as-built-recon.adoc` —
source-derived architecture, conceptual ER, eight-modality/persistence
matrix, actual lifecycle, P0/P1/P2 discrepancy register, tests and
formal proof obligations, independent
Mathesis/QuandleDB/JanusKey/Marches reuse, prioritized engineering
programme.
- `docs/consumer-interface-contract-v1-observed.adoc` — actual
flatten-vs-nested HTTP ABI, operations, HTTP statuses,
feature/configuration guarantees and explicit non-guarantees.
- `docs/reviews/2026-10-29-hypatia-verified-handover.adoc` — only
verified downstream integration facts.

No rewrite of the Octad schema; accepted generic term **modality
profile** distinguished from **modality set** and **consonance
subject**. References separate code fixes #333, #334, #335, #336. Makes
no soundness claims beyond observed source/test status. No data
mutation.
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.

2 participants