Skip to content

Move the base64 helper out of keymanager so spki stays off the module cycle - #389

Merged
GLinnik21 merged 1 commit into
mainfrom
lane/spki-b64
Oct 2, 2026
Merged

GLinnik21 merged 1 commit into
mainfrom
lane/spki-b64

Conversation

@GLinnik21

Copy link
Copy Markdown
Collaborator

Problem: main is red. spki.rs imported keymanager::b64, keymanager is on the big top-level module cycle, and net -> spki closes it, so the module-cycle ratchet (#387) fails with module(s) newly on a cycle: 'spki'.

Fix: the base64 helper references no other crate module, so it moves unchanged into a new leaf module crate::b64. keymanager and spki import it from there. Cycle stays at 44 modules; spki and b64 sit outside it. The ratchet baseline is not touched (it only prints a notice that outside-cycle count rose 12 to 14).

Gates (committed tree, status empty before and after):

  • python3 ci/check-module-cycle.py: ok (44 on cycle, baseline 44)
  • python3 ci/test_module_cycle.py: 18 tests OK
  • make check: test result: ok. 5583 passed; 0 failed; 7 ignored, exit 0
  • CARGO_INCREMENTAL=0 cargo +nightly check --manifest-path rust-modules/Cargo.toml --lib --no-default-features: Finished

🤖 Generated with Claude Code

https://claude.ai/code/session_01PUkd69QzFciCfQucbfiyKv

… cycle

spki imported the base64 helper from keymanager, and keymanager sits on the large top-level
module cycle, so the spki -> keymanager reference pulled spki onto it (net -> spki closes it) and
tripped the module-cycle ratchet added in #387. The helper references no other crate module, so it
now lives in its own leaf module, crate::b64, with its behaviour and test unchanged. keymanager and
spki both import it from there; spki and b64 stay outside the cycle and the ratchet baseline is
untouched.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01PUkd69QzFciCfQucbfiyKv
@GLinnik21
GLinnik21 merged commit 5fb02e9 into main Oct 2, 2026
9 checks passed
@GLinnik21
GLinnik21 deleted the lane/spki-b64 branch October 2, 2026 01:48
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