Skip to content

Unmanaged file get records a failed chain step #1963

Backlog

Description

@retr0h

What happens

file get (and file status) on a path that osapi did not deploy returns the row state: unmanaged, which is correct. But the chain record of the job shows the step managedfile.get as failed: … not managed. In the UI step tree, a normal read looks like a failure.

How it was found

UI pass of #1943 in the lab: Plans, a file.get step on hosts with no managed file. The row said unmanaged, and the chain had a red failed step.

Where

internal/behaviors/file/linux.go Status calls behavior.Call(ctx, managedfile.Behavior, managedfile.Get, …) and maps managedfile.ErrNotManaged to Unmanaged. behavior.Call records each error as a failed step, also an error that the caller expects and handles. main does the same. #1943 only moved the directory check after the read of the record.

Fix to evaluate

A way for a caller to mark an error as an expected answer, so that the chain records the step as ok (for example "not managed" as its output). Or a managedfile read that returns found=false instead of an error.

Activity

  1. added
    bug
    side-finding
    component/behaviors
    on Dec 6, 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

    bugcomponent/behaviorsside-finding

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions