Repository navigation
Driven adapters stop calling application; layering test - #136
Conversation
PR SummaryMedium Risk Overview Metadata / domain moves: Tag key backfill is now Cluster sync refactor: The adapter Enforcement: Behavior note: A successful HTTP sync response that fails JSON parse is now classified as Reviewed by Cursor Bugbot for commit 6bad45b. Configure here. |
f5260d0 to
709ee76
Compare
6bad45b to
21d2124
Compare
709ee76 to
8691b11
Compare
21d2124 to
5ed2d30
Compare
There was a problem hiding this comment.
Approved. Cursor Bugbot was not present on this head after the first check poll, so that signal was skipped; Format, Clippy, Test, and Doc links passed, and no approval policy on the base tip requires human review. Human review is not required.
Sent by Cursor Approval Agent: Pull Request Router and Approver
5ed2d30 to
f906391
Compare


Stacked on #135. Plan:
docs/superpowers/plans/2026-11-03-adapter-application-inversions.md.Driven adapters no longer call into
application, and a test now enforces the layering:Tag backfill is a provided
MetadataPort::backfill_tag_keysmethod; the freebackfill_tag_metadatais gone.StageTimermoves tocrate::telemetry.columnar_timestamps_nsmoves todomain/columnar_batch.rs.SyncClientis replaced byapplication/cluster/catch_up.rs(CatchUpService):PeerRpcmethods:join,sync_metadata_snapshot,sync_walandping. The existingsync_manifestandshard_mapmethods are reused.PeerClient::fetch_map_versionis removed.tests/architecture.rsscanssrc/and fails on a forbidden import. Groupeduse crate::{…}imports are checked too. The rules:domainimports no other layer;portsimports neitheradaptersnorapplication;applicationdoes not importadapters;adaptersimportsapplicationonly fromadapters/http/and the Raft state machine.The allowlist is empty: there are no violations today.
One change in error mapping: a peer's 2xx sync reply that fails to parse now reports
PeerUnreachableinstead ofSyncFailed. Both callers handle every sync error the same way, so only the log text changes.Gate: fmt, clippy
-D warnings, unit, integration 375 and CLI 54 tests all pass.