Skip to content

trailers: parseTrailersFromMessage accepts a whitespace-only trailer value #340

Closed

Description

@stackbilt-admin

Found during constellation-loop review of #339 (differential harness, case #13 under --cleanup=verbatim).

packages/git/src/trailers.ts matches trailer values with \s*.+, so Governed-By: (trailing spaces only) counts as a governed commit in charter validate --ci. The commit-msg gate added in #339 rejects it, so local and CI disagree in the permissive direction on CI's side.

Fix: require a non-whitespace value (e.g. \s*\S.*) and add a parser test. Refs #299.

Activity

  1. added a commit that references this issue on Oct 15, 2026
    0113073
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