Skip to content

Bootstrap should reject multiline or malformed Treehouse version output #1249

Description

@Moshik21

Problem

Firstmate's bootstrap needs Treehouse >=2.0.1 and durable lease support for guarded pool recovery and cleanup. The prior check could accept multiline treehouse --version output when the first line was a supported canonical version, such as:

v2.0.1
unexpected diagnostic

That can treat a malformed or wrapped executable as compatible even though downstream lifecycle safety depends on canonical version and lease behavior.

Expected behavior

Accept exactly one canonical version line at or above v2.0.1, then retain the existing durable-lease capability check. Reject multiline, malformed, pre-floor, or lease-incompatible output through the existing installation diagnostic.

Contribution

PR #1247 implements the bounded correction and regression coverage. Its configured validation is green with low risk. It preserves the existing upgrade-consent path, backend scoping, durable lease check, and guarded cleanup behavior.

Because the repository belongs to kunchenguid, an upstream maintainer must review and merge the contribution.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions