Skip to content

A queued management action can write to the next active class #758

Closed

Description

@lumenpearson

Failure scenario

The user starts a management action while class A is displayed. ManagementPlumbing checks the operation generation, but ManageRepositoryImpl enters its IO dispatcher before capturing the membership. If the dispatcher is delayed and the active membership becomes B, the repository captures B and authorizes B's request for A's action. A join-mode edit updates B. If both owned classes have the same display name, A's deletion confirmation can also match and delete B.

The one independent whole-branch review of PR #757 found this on source a86f0ce: ManagementPlumbing.kt32, ManageRepositoryImpl.kt80 and ClassCardActions.kt159. Source tracing corroborates the capture order. At filing, a deterministic behavioral regression had not yet run; no production incident is claimed.

Required behavior

Carry the initiating displayed server/class/bearer identity across the dispatcher boundary and every wire call. A successor membership must receive no write. UI generation checks alone cannot undo a request already sent. Keep persistence locks outside network IO.

Acceptance

  • Deterministic tests pause immediately before repository capture, switch A to B, and observe the current wrong write before correction.
  • The same-named-class deletion case and join-mode case send zero writes to B after correction.
  • Expected initiating identity reaches the production management graph and send-time credential check.
  • Focused RED/GREEN, complete affected gates/counts, exact-head CI and dev/master delivery are retained with Move the remaining Android remotes to v2 transports (stage 5b) #746.

Parent #746. This is review finding C1 in the single corrective pass; PR #757 stays draft and merge is held.

Corrective checkpoint — 14 November 2026

ManagementInitiatingOwnerTest covers class/bearer/address changes across join-mode and same-name deletion; its six failure witnesses were observed before correction. ManagementOwnershipTest verifies the displayed owner reaches the owner-bound repository.

All initiating-owner regressions pass in the full2202-case gate; current-same-owner controls remain green.

The ONE review corrective cohort first produced82 cases/20 AssertionError failures; the same82 identities now pass. Full unfiltered Android test/both ordinary assembles/detekt passed at2202 unique cases,0failures/errors/skips. Both completed-report count validators pass at3910/2202 and168 selected document guards pass separately. No baseline growth or suppression was added. Earlier failed/green evidence remains retained.

Corrective head is 473e88af87b5a106cee660a2c7fe24b7029fd0f9 in draft PR #757. Exact-head CI43554034696 is still running at this checkpoint. CI/dev/master delivery and the broader #746 acceptance remain unfinished; this issue stays open. No re-review is planned; Minor #764/#765 remain deferred.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    • Status
      Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions