Skip to content

Make the v2 management bindings compile against the pinned generated API #752

Open

Description

@lumenpearson

Problem

Stage5b #746 validation1 ran once under a fresh serialized resource grant. It ended exit1 in43.88s. Core:data compilation failed with seven diagnostics: RpcManageResources resolves joinMode against the protobuf Builder receiver inside apply instead of the canonical DTO; RpcManageValues assumes Java accessor names that the pinned generated ClassStats cannot expose because singular subjects_count collides with repeated subjects. The generated API actually provides subjectsCount3 and subjects4List.

Source audit of the same builder scope also finds nullable SchoolClass and Subject fields shadowed by protobuf getters. Read the DTO explicitly when constructing each resource, preserving absent/clear masks. The existing real binding tests hold these semantics once compilation reaches execution. Do not change proto/generated files, versions or fixtures to fit incorrect mappings.

Fresh core:data Detekt also reported23 findings:22 maximum-line-length violations and one12-function mapping file exceeding its11-function budget. Fresh app Detekt passed with0 findings. Fix formatting and split a cohesive mapping helper; do not grow baselines or add suppressions.

No fresh JUnit case executed. In particular the two prospective server-address UI REDs were NOT reproduced by this attempt. Previous completed83-case RED remains separate evidence.

Acceptance

  • Correct canonical DTO receiver ownership and use the actual pinned generated ClassStats accessors without changing protocol/generated inputs.
  • Existing real REST/Connect/gRPC management assertions execute, including nullable fields, minimal masks and statistics.
  • Existing core:data/app Detekt limits pass without new baselines or suppressions.
  • Full gates, independent whole-branch review, CI/dev/master and source-matched production/native delivery are recorded with Move the remaining Android remotes to v2 transports (stage 5b) #746.

Fresh logs, frozen115inputs/two declared absences, exact tracked diff, result and observer/own-process absence are retained privately. This issue records compiler/lint evidence, not behavioural RED or release acceptance.

Focused correction evidence

Validation2 compiled both data/app and ran224 fresh cases. Every selected management binding/mapping assertion passed, including the existing nullable resource/mask/statistics tests. Exactly six additional issue747 ownership regressions failed as anticipated; there were no compiler/framework failures. Fresh core:data Detekt has0 findings; app Detekt is source-identical UP-TO-DATE from validation1's fresh0 report. The compiler/accessor/23lint correction is locally held, without proto/generated/baseline/suppression changes. Full-stage delivery acceptance remains open with #746.

A later newly admitted focused GREEN freshly executed224/224 passing cases and both data/app Detekt tasks with0 findings, exit0 in54.43s. This strengthens the local correction evidence while the full delivery criterion remains open.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    • Status
      Now

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions