Skip to content

Apply and deploy results misstate what happened in five edge cases #4130

Closed

Description

@vybe

A caller reads the result of apply_system and deploy_system to decide what to do next. In these cases, found by review of the code and not run on a live stack, the result is wrong or incomplete:

  1. A manifest where every member has deploy: false reports a failed deploy with 0 of 0 agents. It should be a named refusal that says there is nothing to deploy.
  2. adopted[] lists adoptions on a run that was refused and adopted nothing.
  3. Apply's summary counts a skill that was held back as a write.
  4. Apply warns that a restart_required member "could not be re-read" for a declared-only member, which by definition does not run.
  5. A skill write that lands the package but not its marker (marker_not_written) is dropped by apply and deploy, so the result reads as success. Re-assigning an existing set writes no delivery change either, so its outcome is not visible.

The deploy response also has no structured way to name a declared-only member. Add one if it is additive to the response.

Done when: each case has a test that runs the planner or the apply, and asserts the corrected result. Existing response fields keep their meaning.

Activity

  1. added
    priority-p3
    type-bug
    theme-reliability
    complexity-medium
    status-ready
    on Oct 31, 2026
  2. added
    status-in-progress
    and removed
    status-ready
    on Nov 1, 2026
  3. vybe commented on Nov 1, 2026

    @vybe
    ContributorAuthor

    Draft PR #4152, stacked on #4150. Review: MERGEABLE, 0 critical; fixes in ebc3928. Next: /validate-pr.

  4. added
    status-in-dev
    and removed
    status-in-progress
    on Nov 1, 2026
  5. removed
    status-in-dev
    on Nov 18, 2026
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

    complexity-mediumpriority-p3theme-reliabilitytype-bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions