Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 57 minutes. View limit details
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. |
|
|
|
Waiting for bot review — thepastaclaw not yet. Wait for the missing reviews, or a writer can post |
thepastaclaw
left a comment
There was a problem hiding this comment.
⚠️ DEGRADED — Final validation — Phase 1 + Phase 2
⚠️ DEGRADED review. The primary review models were unavailable (gpt-6.2-solunavailable: Request rejected (429) · All credentials for model gpt-6.2-sol are cooling down (last error: usage_limit_reached: The us), so this review ran on stand-in models:gpt-5.6-luna→muse-spark-1.3-contributor,gpt-5.6-sol→muse-spark-1.3-contributor,gpt-5.6-terra→muse-spark-1.3-contributor,gpt-6-astra→muse-spark-1.3-contributor,gpt-6.1-sol→muse-spark-1.3-contributor,gpt-6.2-astra→muse-spark-1.3-contributor,gpt-6.2-sol→muse-spark-1.3-contributor. Both review phases and the independent verifiers still ran, but on weaker models, with Phase 1 capped athigheffort. Treat the verdict as provisional; a full-strength re-review will run on the next push once the primary models are back.
Nothing blocks: no blocking finding stands on this head.
Parity port of Swift's PV15 block explorer and transition-status reads to the Kotlin SDK via thin JNI exports plus one-to-one JSON decoders, with two example-app screens and four catalog rows. CI shows Kotlin SDK build and Rust workspace tests still in progress with no failed code checks on this head.
Review provenance
Source: reviewer 1: muse-spark-1.3-contributor (agent: phase1-reviewer, role: general); reviewer 2: muse-spark-1.3-contributor (agent: phase1-reviewer, role: rust-quality); reviewer 3: muse-spark-1.3-contributor (standing in for gpt-6.2-sol) (agent: phase2-reviewer, role: general); reviewer 4: muse-spark-1.3-contributor (standing in for gpt-6.2-sol) (agent: phase2-reviewer, role: architecture-layering); reviewer 5: muse-spark-1.3-contributor (standing in for gpt-6.2-sol) (agent: phase2-reviewer, role: ffi-engineer); reviewer 6: muse-spark-1.3-contributor (standing in for gpt-6.2-sol) (agent: phase2-reviewer, role: rust-quality); reviewer 7: muse-spark-1.3-contributor (standing in for gpt-6.2-sol) (agent: phase2-reviewer, role: general); reviewer 8: muse-spark-1.3-contributor (standing in for gpt-6.2-sol) (agent: phase2-reviewer, role: architecture-layering); reviewer 9: muse-spark-1.3-contributor (standing in for gpt-6.2-sol) (agent: phase2-reviewer, role: ffi-engineer); reviewer 10: muse-spark-1.3-contributor (standing in for gpt-6.2-sol) (agent: phase2-reviewer, role: rust-quality); final verifier: muse-spark-1.3-contributor (standing in for gpt-6.2-sol) (agent: sol-verifier, role: final-verifier)
- Degraded mode:
gpt-6.2-solunavailable: Request rejected (429) · All credentials for model gpt-6.2-sol are cooling down (last error: usage_limit_reached: The us (detected by lane, since 2026-11-23T09:05:43Z); stand-insgpt-5.6-luna→muse-spark-1.3-contributor,gpt-5.6-sol→muse-spark-1.3-contributor,gpt-5.6-terra→muse-spark-1.3-contributor,gpt-6-astra→muse-spark-1.3-contributor,gpt-6.1-sol→muse-spark-1.3-contributor,gpt-6.2-astra→muse-spark-1.3-contributor,gpt-6.2-sol→muse-spark-1.3-contributor; Phase 1 effort capped athigh - Triage:
normalbygpt-6.2-sol(effort low) — The PR spans JNI bindings, Kotlin decoding, and Compose request-state handling, but reuses existing SDK reads without changing consensus, proof verification, or other critical logic. - Phase 1 reviewers:
muse-spark-1.3-contributor— general (completed, effort xhigh); agentphase1-reviewer,muse-spark-1.3-contributor— rust-quality (completed, effort xhigh); agentphase1-reviewer - Phase 1 model:
muse-spark-1.3-contributor— not quota-gated; passed overgemini-3.8-flash-high(antigravity quota lookup failed),glm-5.3-flash(not used above high effort; tier asks max) - Second Phase-2 pass: on this first full review every Phase-2 reviewer also ran a second, independent time, and the verifier weighed both sets
- Fresh verifier:
muse-spark-1.3-contributor(standing in forgpt-6.2-sol) — final-verifier; agentsol-verifier - Phase 2 reviewers:
muse-spark-1.3-contributor(standing in forgpt-6.2-sol) — general (completed, effort high); agentphase2-reviewer,muse-spark-1.3-contributor(standing in forgpt-6.2-sol) — architecture-layering (completed, effort high); agentphase2-reviewer,muse-spark-1.3-contributor(standing in forgpt-6.2-sol) — ffi-engineer (completed, effort high); agentphase2-reviewer,muse-spark-1.3-contributor(standing in forgpt-6.2-sol) — rust-quality (completed, effort high); agentphase2-reviewer,muse-spark-1.3-contributor(standing in forgpt-6.2-sol) — general (completed, effort high); agentphase2-reviewer,muse-spark-1.3-contributor(standing in forgpt-6.2-sol) — architecture-layering (completed, effort high); agentphase2-reviewer,muse-spark-1.3-contributor(standing in forgpt-6.2-sol) — ffi-engineer (completed, effort high); agentphase2-reviewer,muse-spark-1.3-contributor(standing in forgpt-6.2-sol) — rust-quality (completed, effort high); agentphase2-reviewer
|
Bots are done — your move: post |
1a479ca to
bc3507f
Compare
|
Waiting for bot review — thepastaclaw not yet. Wait for the missing reviews, or a writer can post |
4846476 to
0c1caf7
Compare
|
Waiting for bot review — thepastaclaw not yet. Wait for the missing reviews, or a writer can post |
thepastaclaw
left a comment
There was a problem hiding this comment.
⚠️ DEGRADED — Re-review — Final validation — Phase 2 only (queue backlog)
⚠️ DEGRADED review. The primary review models were unavailable (gpt-6.2-solunavailable: All credentials for model gpt-6.2-sol are cooling down (last error: usage_limit_reached: The usage limit has been reache), so this review ran on stand-in models:gpt-5.6-luna→muse-spark-1.3-contributor,gpt-5.6-sol→muse-spark-1.3-contributor,gpt-5.6-terra→muse-spark-1.3-contributor,gpt-6-astra→muse-spark-1.3-contributor,gpt-6.1-sol→muse-spark-1.3-contributor,gpt-6.2-astra→muse-spark-1.3-contributor,gpt-6.2-sol→muse-spark-1.3-contributor. Both review phases and the independent verifiers still ran, but on weaker models, with Phase 1 capped athigheffort. Treat the verdict as provisional; a full-strength re-review will run on the next push once the primary models are back.
Nothing blocks: no blocking finding stands on this head.
New on this head: Ports the four protocol-version-15 block and transition-status reads to Kotlin via a new rs-unified-sdk-jni module over the existing rs-sdk-ffi functions, one-to-one Kotlin decoders in Sdk.blocks, and two example-app screens plus four catalog rows. CI snapshot at this head shows CodeRabbit successful with remaining checks queued, pending, or in progress and no failures reported.
🔴 0 blocking | 🟡 0 suggestion(s) | 💬 0 nitpick(s)
Review provenance
Source: reviewer 1: muse-spark-1.3-contributor (standing in for gpt-6.2-sol) (agent: phase2-reviewer, role: general); reviewer 2: muse-spark-1.3-contributor (standing in for gpt-6.2-sol) (agent: phase2-reviewer, role: architecture-layering); reviewer 3: muse-spark-1.3-contributor (standing in for gpt-6.2-sol) (agent: phase2-reviewer, role: ffi-engineer); reviewer 4: muse-spark-1.3-contributor (standing in for gpt-6.2-sol) (agent: phase2-reviewer, role: general); reviewer 5: muse-spark-1.3-contributor (standing in for gpt-6.2-sol) (agent: phase2-reviewer, role: architecture-layering); reviewer 6: muse-spark-1.3-contributor (standing in for gpt-6.2-sol) (agent: phase2-reviewer, role: ffi-engineer); final verifier: muse-spark-1.3-contributor (standing in for gpt-6.2-sol) (agent: sol-verifier, role: final-verifier)
- Degraded mode:
gpt-6.2-solunavailable: All credentials for model gpt-6.2-sol are cooling down (last error: usage_limit_reached: The usage limit has been reache (detected by probe, since 2026-11-23T09:07:27Z); stand-insgpt-5.6-luna→muse-spark-1.3-contributor,gpt-5.6-sol→muse-spark-1.3-contributor,gpt-5.6-terra→muse-spark-1.3-contributor,gpt-6-astra→muse-spark-1.3-contributor,gpt-6.1-sol→muse-spark-1.3-contributor,gpt-6.2-astra→muse-spark-1.3-contributor,gpt-6.2-sol→muse-spark-1.3-contributor; Phase 1 effort capped athigh - Triage:
normalbymuse-spark-1.3-contributor(standing in forgpt-6.2-sol) (effort low) — Large cross-cutting addition of block and transition-status reads across JNI, Kotlin SDK, and example app UI without changing consensus, funds, or crypto logic. - Phase 1 reviewers: not run (skipped for throughput: 11 PRs queued, above the 10 limit)
- Second Phase-2 pass: on this first full review every Phase-2 reviewer also ran a second, independent time, and the verifier weighed both sets
- Fresh verifier:
muse-spark-1.3-contributor(standing in forgpt-6.2-sol) — final-verifier; agentsol-verifier - Phase 2 reviewers:
muse-spark-1.3-contributor(standing in forgpt-6.2-sol) — general (completed, effort high); agentphase2-reviewer,muse-spark-1.3-contributor(standing in forgpt-6.2-sol) — architecture-layering (completed, effort high); agentphase2-reviewer,muse-spark-1.3-contributor(standing in forgpt-6.2-sol) — ffi-engineer (completed, effort high); agentphase2-reviewer,muse-spark-1.3-contributor(standing in forgpt-6.2-sol) — general (completed, effort high); agentphase2-reviewer,muse-spark-1.3-contributor(standing in forgpt-6.2-sol) — architecture-layering (completed, effort high); agentphase2-reviewer,muse-spark-1.3-contributor(standing in forgpt-6.2-sol) — ffi-engineer (completed, effort high); agentphase2-reviewer
🤖 Prompt for all review comments with AI agents
These findings are from an automated code review. Verify the current code and confirm that no unresolved issues remain.
No unresolved findings remain from the prior review on this head.
…KotlinExampleApp Port of SwiftExampleApp's block explorer and transition status checker (#6091) to the Kotlin SDK and KotlinExampleApp (protocol version 15). - rs-unified-sdk-jni: platform_blocks.rs binds dash_sdk_system_get_blocks, dash_sdk_system_get_owner_transactions_in_block, dash_sdk_system_get_recent_state_transition_status and dash_sdk_system_get_state_transition_status_by_hash, one export each, refusing a negative height or count before the C call. - kotlin-sdk: Sdk.blocks (PlatformBlocks) decodes the FFI's JSON one to one, keeping the proved flag Rust sets. - KotlinExampleApp: Block Explorer and Transition Status Checker screens, four catalog rows, the privacy note on the status reads, and results that clear when an input is edited or the network changes. - TEST_PLAN SYS-10..13 (Swift SYS-09..12), parity manifest partial. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
0c1caf7 to
48a74c2
Compare
Basic explanation
On a protocol version 15 network, SwiftExampleApp can read Platform blocks with the state transitions inside them, find one identity's transitions in a block, and check what happened to a state transition from its hash (#6091). The Android app could do none of this. This PR brings the same four reads to the Kotlin SDK and KotlinExampleApp so Android testers have them before the next PV14 to PV15 upgrade rehearsal.
Nothing new is decided on Android. Rust (rs-sdk) sends the requests, checks the proofs and says whether each answer is proved. The new Android code only passes the call through and shows the answer.
Before: Platform Queries on Android had no block or transition status entries.
rs-unified-sdk-jnibound none of the fourdash_sdk_system_*block functions.After: Platform Queries has two new screens and four new catalog rows:
Below protocol version 15 each read shows the SDK's refusal as it comes.
Issue being fixed or feature implemented
Android parity for the parity manifest capability
system.block_and_transition_status_reads(Swift reference #6091, Swift TEST_PLAN SYS-09 to SYS-12).What was done?
rs-unified-sdk-jni: a new moduleplatform_blocks.rsadds four JNI exports, one for each existingrs-sdk-ffifunction. Each returns the JSON the C function writes.lib.rsonly gains themodline.kotlin-sdk: a newSdk.blocksproperty (queries/PlatformBlocks.kt) wraps the four reads and decodes their JSON one to one into typed results.Sdk.ktonly gains that property.PlatformBlocksScreenportsPlatformBlocksView.swift(the block list and the block detail). An opened block shows inside the same screen, so no block crosses a navigation argument, and system back returns to the list.TransitionStatusCheckScreenportsTransitionStatusCheckView.swift.QueryRegistry(kept out of Diagnostics "Run All", as they fail below protocol version 15).QueryDefinitiongainsprivacyNoteandresultFollowsInputs. The two status reads showqueryDetail.privacyNote, and the four rows clear their result when an input is edited or the network changes.testTags (blocks.*,blockDetail.*,txStatus.*,epochQueries.browseBlocksLink,systemQueries.checkTransitionStatusLink).Sdk, the Kotlin form of Swift'ssdkGeneration. A read that completes after an edit or a network switch is dropped, and the owner lookup never runs on another network's SDK.supportedfor the SDK (unit and device tests) andpartialfor the app.PARITY_SUMMARY.mdwas regenerated withscripts/check_sdk_parity_manifest.py --write-summary.New public interfaces
JNI exports (
rs-unified-sdk-jni/src/platform_blocks.rs, Kotlininternal object PlatformBlocksNative)Java_org_dashfoundation_dashsdk_ffi_PlatformBlocksNative_getBlocksgetBlocks(sdk: Long, startHeight: Long, count: Int): String?dash_sdk_system_get_blocks..._getOwnerTransactionsInBlockgetOwnerTransactionsInBlock(sdk: Long, height: Long, ownerId: String): String?dash_sdk_system_get_owner_transactions_in_block..._getRecentStateTransitionStatusgetRecentStateTransitionStatus(sdk: Long, transitionHash: String): String?dash_sdk_system_get_recent_state_transition_status..._getStateTransitionStatusByHashgetStateTransitionStatusByHash(sdk: Long, transitionHash: String): String?dash_sdk_system_get_state_transition_status_by_hashsupport::guard, so a panic is thrown to Kotlin instead of aborting the app.dash_sdk_string_free.DashSDKExceptioncode 1 (InvalidParameter) before the C call for a negative height or count, or a string that is null or holds a NUL. Kotlin has no unsigned types, so a negative value would otherwise turn into a hugeu64.rs-sdk-fficodes: a null SDK handle, a malformed base58 id, or a hash that is not 32 bytes of hex.Kotlin API (
org.dashfoundation.dashsdk.queries)Sdk.blocks: PlatformBlocks, with suspend functions run under the SDK's query gate:getBlocks(startHeight: Long, count: Int): PlatformBlockList. The node serves a count of 1 to 10.getOwnerTransactionsInBlock(height: Long, ownerId: String): OwnerTransactionsInBlock. Each transition is proved; the list is not proved complete.getRecentStateTransitionStatus(transitionHash: String): NodeTransitionStatus. Always unproved.getStateTransitionStatusByHash(transitionHash: String): TransitionStatusByHash. OnlyIN_BLOCKis proved.The answer types are
@Serializabledata classes, decoded one to one from the snake_case JSON. They mirror Swift'sPlatformBlocks.swift:PlatformBlockList(proved, blocks)PlatformBlock(height, hash, timeMs, coreChainLockedHeight, appHash, proposerProTxHash, transactions)PlatformBlockTransaction(hash, code, executed, gasUsed, resultData, type, ownerId?)OwnerTransactionsInBlock(proved, height, transactions)NodeTransitionStatus(proved, status: COMMITTED | PENDING | UNKNOWN, height?, error?, nodeHeight?)NodeReportedTransitionError(code, message, consensusError?)TransitionStatusByHash(proved, status: IN_BLOCK | COMMITTED_NOT_PROVED | COMMITTED_REFUTED | PENDING | UNKNOWN, blockHeight?, blockHash?, blockTimeMs?, transaction?, height?, error?, nodeHeight?)Unknown keys are ignored, as Swift's
JSONDecoderignores them. A missing or undecodable answer is aDashSdkError.SerializationError. The SDK's refusals map toDashSdkErroras everywhere else.How Has This Been Tested?
Run:
./gradlew :sdk:testDebugUnitTest --tests '*PlatformBlocksDecodingTest': 7 of 7 pass. These decode every JSON shape the Rust tests inblocks.rsandtransition_status.rspin, plus unknown keys and undecodable answers../gradlew :app:compileDebugKotlin :sdk:compileDebugAndroidTestKotlin: compiles.cargo clippy -p rs-unified-sdk-jni --all-targets --all-features --locked -- --no-deps -D warnings: clean.cargo fmt --all -- --check: clean../build_android.sh --abi arm64: built.llvm-nm -Dshows the fourPlatformBlocksNativeexports inlibdash_sdk_jni.so.python3 scripts/check_sdk_parity_manifest.py --write-summary: OK../gradlew :sdk:connectedDebugAndroidTest -Pandroid.testInstrumentationRunnerArguments.class=org.dashfoundation.dashsdk.PlatformBlocksFfiTeston an API 35 arm64 emulator: 3 of 3 pass. These check the symbols, the method descriptors, the JNI layer's refusal of negative heights and counts, andrs-sdk-ffi's refusals of a null handle, a malformed owner id and a hash that is not 32 bytes of hex (all code 1). This test installs only the SDK's test package, not the example app. With it, the manifest's Kotlin SDK entry issupported; the app entry stayspartial.Not yet verified
Breaking Changes
None. Only additions.
Checklist:
structure.rs, regeneratedgrovedb-structure.json, and checked the structure viewer link posted on this pull requestFor repository code-owners and collaborators only
🤖 Generated with Claude Code
PR Hygiene ·
0c1caf7/skip-botsproceeds without the ones not yet reported/self-reviewedsdk-parity— you own itkotlin-sdk(packages/kotlin-sdk/KotlinExampleApp/TEST_PLAN.md,packages/kotlin-sdk/KotlinExampleApp/app/src/main/java/org/dashfoundation/example/navigation/AppNavHost.kt,packages/kotlin-sdk/KotlinExampleApp/app/src/main/java/org/dashfoundation/example/navigation/Routes.ktand 12 more) — HashEngineeringWhen every merge requirement is met, the
PR Hygienecheck passes. Reviewer limits do not block merging; other required GitHub checks and protections still apply.