Skip to content

Follow-ups from the #4076 review: unmapped review-policy refusal, reviewer-picker focus, stale docs and LOWs #4101

Closed

Description

@yannickmonney

Follow-ups from the independent post-merge review of #4076 (independent agent review of tasks), merged as 19776cf18dbe3139642973008dc57c1942101cba.

Source: Tale agent #2 (TALE-359, run feb91650-660e-442d-8d9b-e902957dc283), issuecomment-5960639103, also recorded on TALE-450 (5a7189c9).

  • The verdict there: source accepted, with follow-ups. No HIGH remains, and no security or data-integrity MEDIUM.
  • The fleet manager (TALE-357, run 68e6c40e-ea0e-411f-81e0-a37c27fb0343) files this issue only to give the reviewer's open items an owner. It adds no new investigation.
  • File and line references are from that review, at 19776cf18.

MEDIUM

  1. M1: TASK_REVIEW_POLICY_UNAVAILABLE reaches the UI unmapped.
    • With an unreadable review_policy, a person's Approve, or a drag to Done, is refused with 409 (reviews.ts:566).
    • reviewer-refusal.ts maps only the governance codes to reviewer.policyUnavailable, so the user sees a generic toast.
    • The error-code register files the code under "Reachable on the API surface only" (tests/manual/reference/error-codes.md:70).
    • The strict read is organization-wide, so one invalid policy blocks every human approval. That is documented, but the blast radius should be visible in the message.
    • Acceptance:
      • a translated EN/DE/FR message that names the cause and the recovery;
      • the register row moved to the UI-reachable section;
      • a UI test with the refusal stubbed.
  2. M2: choosing a reviewer can drop keyboard focus. This was found in source and not run.
    • task-reviewer-field.tsx disables the picker while the save is pending.
    • A disabled reviewer-picker.tsx renders a static span (lines 166–175), which unmounts the trigger that focus should return to.
    • Suggested fix: keep the trigger mounted with aria-disabled.
    • Acceptance: a keyboard test, with focus on the trigger after save succeeds and after it fails, plus a local browser check.

Partial or stale (from the same table)

  1. B: the docs contradict the code. tasks.md still says a reassignment keeps the review decidable. The code answers TASK_REVIEW_STALE (source_changed), and a transfer to a person recovers it. Align the EN/DE/FR docs.
  2. 11: the timeline still renders "Project default → Project default".
  3. 12: manual suite headers. The projects.md header says 59, but it has 61 boxes. The tasks.md header says 115, but it has 121. The readme total is right.
  4. E: who acts next.

LOW

The "New, LOW" list and the remaining 12:45 LOW list in the source comment are covered here:

  • close protection after a transfer to a person;
  • reviewFiles listing behaviour;
  • stage-token lifetime;
  • invalid_metadata edge cases;
  • staging audit;
  • assignTask reviewer check;
  • the approvalId docs;
  • turbo inputs;
  • "Deleted agent" while loading;
  • FR, DE and register wording.

Each needs triage: fix it, or record it as accepted with a reason.

Gating note

Agent #2 lists these before production opt-in of agent review:

  • M1, with its register row moved;
  • M2, checked in a browser;
  • B's docs contradiction;
  • its own EN/DE/FR browser lifecycle and accessibility pass.

The opt-in itself is root's decision. This issue doesn't change it.

Routing: a cycle implementer, with a reviewer distinct from that implementer. Tests stay local: synthetic data, no production.

Activity

  1. yannickmonney commented on Oct 2, 2026

    @yannickmonney
    ContributorAuthor

    Root has taken implementation ownership of the bounded pre-opt-in slice: M1 (the policy refusal across both review actions and board drag), M2 (focus preservation during a transient reviewer save), and a precise EN/DE/FR explanation of stale decisions and guarded human transfer. An isolated local coding agent is preparing the change; please do not start a competing implementation of this slice. A different reviewer will assess the result, and browser judgment stays local.

    Fresh source triage on the merged #4100 tree confirms M1 and the M2 trigger-unmount risk. The docs statement about preserving the historical producer is correct; the missing guidance should be added without reversing that statement. M2 runtime behavior still needs actual local evidence.

    This does not close the whole issue or accept the remaining LOWs. Their individual dispositions and the wider independent lifecycle/accessibility pass remain tracked here. No production review grant or deployment is implied.

  2. yannickmonney commented on Oct 12, 2026

    @yannickmonney
    ContributorAuthor

    Addendum to the LOW "Deleted agent while loading" (Review A, TALE-358, 2026-10-12 20:15 Zurich occurrence): a failed read makes it permanent. main c94f1fd84, paths under services/platform/app/features/.

    • projects/hooks/queries.ts:66-84: useProjectAgents returns agents: data ?? [] together with hasAnswer and error.
    • tasks/hooks/use-actor-directory.ts:139 reads only agents and isLoading. Its agent map and catalog are then empty (:160-161), and resolveActor names every agent actor t('timeline.deletedAgent') (:241-246).
    • While loading, that is the LOW above. After a failed roster read, it stays: the task timeline, comment authors and agent assignees all say "Deleted agent" for agents that exist, with no error and no Try again.
    • mentionsPending (:338) also ignores the failure, so mentions of those agents resolve as gone.

    Expected: while hasAnswer is false, or error is set, show a neutral placeholder instead of "Deleted agent", and treat mentions as pending. Offer the hook's retry where the timeline already shows read errors.

    Regression: an actor-directory test with a rejected listProjectAgents read. An agent actor is not named "Deleted agent". On c94f1fd84 it is.

    Severity: low to medium. It is misleading but recoverable on reload. This is static reading, verified at the cited lines. I didn't run it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions