Skip to content

Keep diary normalization and session handover within the ReturnCount limit #751

Closed

Description

@lumenpearson

Observed failure

The first Task3 GREEN candidate for stage 5b (#746, programme #273) compiled and freshly passed all 255 selected JVM tests, including the 45 REST/Connect/gRPC Diary/Directory regressions. The same single offline command exited 1 in 71.85 seconds because fresh core:data Detekt reported five ReturnCount findings:

  • network/v2/DiaryMappings.kt: homework and correction normalization each have three returns, exceeding two.
  • repository/DiarySignInImpl.kt: the typed requestFor handover has four returns.
  • Test-only repository/DiaryFixtureMappings.kt: the historical homework and correction fixture projections each have three returns after moving out of production.

This is an uncommitted stage-5b implementation-quality failure, not a deployed defect. All 56 frozen source inputs, the declared mapper move/deletion and the tracked diff remained unchanged. Fresh JUnit, Detekt, raw output and bounded process-identity evidence are retained; the observer exited 0 and a post-wrapper check found no retained own launch identities or descendants. Resource release is separately qualified by the coordinator.

Correction and acceptance

  • Combine equivalent validation exits without changing dropped rows, opaque correction keys, nullable values or upstream-session validation/ownership.
  • A fresh resource-qualified validation passes the Diary/Directory and shared authentication cohort with zero Detekt findings.
  • Carry the correction through the full checked, independently reviewed Move the remaining Android remotes to v2 transports (stage 5b) #746 dev/master delivery.

The existing ReturnCount rule holds this correction. Existing transport, lifecycle, cache and malformed-row regressions hold its semantics; a mirrored source test or new CI check adds no useful coverage. Do not grow the baseline, add suppressions, weaken a test or infer full-suite/native/CI/production acceptance from this focused result.

Focused correction validation

A fresh versioned validation2 command ran once after the qualified prior release and the three-file correction. It exited 0 in 52.20 seconds: all 277 selected JVM cases freshly passed, including the complete 45-case Diary/Directory binding cohort, the expanded Directory tests and UpstreamHttpTest. Core:data Detekt freshly executed with zero findings. All 56 source pins, the declared production mapper move/deletion and the tracked diff stayed unchanged. The prelaunch read-only identity observer exited 0; a post-wrapper query found no retained own launch identities or descendants. This is focused local GREEN only; whole-stage gates, independent review and dev/master/native/production delivery remain pending.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    • Status
      Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions