refactor(knowledge): close Source Ledger module - #210
Conversation
|
Warning Review limit reached
Next review available in: 49 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Plus Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThe Source Ledger module now has a closed boundary with explicit allowed dependencies. Its documentation and changelog reflect the boundary. Modulith verification now asserts that the module is closed. ChangesSource Ledger Boundary
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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. Comment |
TegamiThis repository uses Tegami to manage releases. When your changes affect published packages, add a changelog file under Create a changelog → · Changelog format Release preview
Changelogs in this PR
Run Managed by Tegami. |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In @.tegami/close-source-ledger-module.md:
- Around line 11-12: Add or link an architecture challenge record for the Source
Ledger boundary described in close-source-ledger-module.md, documenting the
independent challenge and rejected alternatives for the closed public API and
dependency allowlist decision. Preserve the existing outcome while connecting it
to the repository’s established decision-governance flow.
In `@core/src/test/java/com/orgmemory/core/ModulithVerificationTests.java`:
- Around line 44-47: Update sourceLedgerIsAClosedNestedModule() to assert the
exact allowed-dependencies set for the Source Ledger module: knowledge.acl,
knowledge::storage, organization, permission, shared, and shared::error.
Preserve the existing isOpen() assertion and modules.verify() behavioral check.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro Plus
Run ID: 1eb47b7e-33cb-4394-83f9-d2c07252b29d
⛔ Files ignored due to path filters (2)
docs/increments/active/2026-07-31-spring-modulith-package-refactor/design.mdis excluded by!docs/**docs/increments/active/2026-07-31-spring-modulith-package-refactor/plan.mdis excluded by!docs/**
📒 Files selected for processing (3)
.tegami/close-source-ledger-module.mdcore/src/main/java/com/orgmemory/core/knowledge/sourceledger/package-info.javacore/src/test/java/com/orgmemory/core/ModulithVerificationTests.java
📜 Review details
⏰ Context from checks skipped due to timeout. (1)
- GitHub Check: Backend · Java 25
🧰 Additional context used
📓 Path-based instructions (3)
**/*
📄 CodeRabbit inference engine (AGENTS.md)
**/*: Treat the repository and runtime evidence as the engineering system of record; do not treat chat or Northstar as authoritative.
Before changing a domain, read its specification, test-coverage document, and applicable decision filenames.
Material decisions about domain boundaries, authorization, persistence, publication, concurrency, cache isolation, parity scope, or deployment require an independent architecture challenge and documented alternatives before implementation.
Do not use completed increment documents as the source for current behavior; use them only for history or archaeology.
Before using unfamiliar Spring Boot, Spring Modulith, Spring AI, Gradle, React, Vite, Tailwind, TypeScript, Next.js, or Fumadocs APIs, consult current official documentation, Context7, and the relevant verification skill.
Readdocs/guidelines/agent-safety.mdbefore retrieval, AI, MCP, permission, upload, graph, or export work; never commit secrets or customer data.
Keepddl-auto=validateand pair every persisted-model change with a Flyway migration.
Use the testing harness; a terminating clean test is the JVM context gate, andbootRunis not verification.
Files:
core/src/main/java/com/orgmemory/core/knowledge/sourceledger/package-info.javacore/src/test/java/com/orgmemory/core/ModulithVerificationTests.java
**/*.java
📄 CodeRabbit inference engine (AGENTS.md)
Apply IDE inspection only to edited backend Java files.
Files:
core/src/main/java/com/orgmemory/core/knowledge/sourceledger/package-info.javacore/src/test/java/com/orgmemory/core/ModulithVerificationTests.java
core/src/main/java/com/orgmemory/core/{authorization,knowledge,permission}/**/*.java
⚙️ CodeRabbit configuration file
core/src/main/java/com/orgmemory/core/{authorization,knowledge,permission}/**/*.java: Treat PostgreSQL ACL evidence as canonical and OpenFGA as the relationship
authorization decision point. Authorization must fail closed. Filtering
must happen before ranking, LIMIT, graph traversal, answer generation,
export, and citation rendering. Flag metadata or timing leak paths.
Files:
core/src/main/java/com/orgmemory/core/knowledge/sourceledger/package-info.java
🔇 Additional comments (4)
core/src/main/java/com/orgmemory/core/knowledge/sourceledger/package-info.java (2)
12-18: LGTM!
6-11: 🗄️ Data Integrity & IntegrationNo change needed for the ACL dependency declaration.
knowledge.aclhas no explicit@NamedInterface, and with an open module the default dependency target is the module’s root-package API (knowledge.acl::). The currentknowledge.acldependency is not allowing all internal package types.> Likely an incorrect or invalid review comment..tegami/close-source-ledger-module.md (1)
1-9: LGTM!core/src/test/java/com/orgmemory/core/ModulithVerificationTests.java (1)
4-4: LGTM!
Summary
knowledge.sourceledgernested application moduleVerification
modules.verify():core:test(1m24s)python scripts/check_docs.py(399 Markdown files, 8 mirrored domain pairs)pnpm release:check(37 release-policy tests)./gradlew.bat --no-daemon clean test(6m30s, 108 tasks)Scope
Summary by CodeRabbit