Skip to content

Provisioning logs: carry stage, package and HTTP status through VersionBuildFailed #102

Done

Description

@shuv1337

Follow-up to #73 / PR #101. Provisioning failure logs now carry a safe cause, but on self-host they can only name the tag, VersionBuildFailed. The SDK drops the details when it turns the runtime's build error into VersionBuildFailed.

Proposed:

  1. Log VersionBuildFailed.stage in failureCause (apps/hosted/server/src/implementation/provisioning.ts). It is a closed enum (for example dependencies), so it is safe and cheap. This is Opus review minor 1 on Name the cause a provisioning attempt failed with #101.
  2. In the SDK, carry the missing package's name and the registry HTTP status on VersionBuildFailed as typed optional fields, plus the registry origin only (never a path, query or userinfo). failureCause already reads those fields when they are present.
  3. Test: a self-host scenario where the registry returns 404 for a pinned package logs stage: dependencies, the package name and status 404, and no secret.

Also from the review (nits): the package/version picks are untested on any real path, and a future error with a URL in those fields would be logged verbatim. Validate them, for example as an npm name and a semver, when adding item 2.

Review: ~/.cache/agent-ws/executor-73-review-r1.md on shuvdev.

Activity

  1. added 2 commits that reference this issue on Nov 23, 2026
  2. shuv1337 commented on Nov 27, 2026

    @shuv1337
    OwnerAuthor

    Fixed by PR #135 (merged to v2 at fa12ccaf7).

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