Skip to content

feat(source-control): convention parse-contract + shared enforcement resolver seam #913

Closed

Description

@kyle-sexton

Seams-first (sequential blocker). Give hooks a machine-readable path to the resolved commit/PR pattern WITHOUT changing the consumer-facing markdown surface (per #660).

Part of #912. Contract + design in #912 — do not diverge.

Activity

  1. added
    area: security
    on Jul 22, 2026
  2. kyle-sexton commented on Jul 23, 2026

    @kyle-sexton
    MemberAuthor

    Reopen outcome (recorded per #1141's acceptance criteria): the "no YAML / no path rename / no consumer format change" boundary of this issue was REOPENED and REVERSED — shipped in PR #1149 (source-control 0.23.0, guardrails 0.13.0).

    Grounds for reopening a recorded decline (full brief in #1141 and inbox item 20260723-084404-source-control-convention-ssot-reopen):

    1. Author directive — the plugin author explicitly requested the decoupled SSOT while operating as a consumer ("use a SSOT… I am the author").
    2. Observed drift in real use — a consuming machine held three hand-synced byte-identical copies of one regex (repo CLAUDE.md prose, .claude/source-control.md markdown-H2, a machine-local commit-msg hook's flat YAML).
    3. Ecosystem moved — AGENTS.md became an LF-stewarded prose-only pointer standard; no ecosystem tool offers one config consumed by both enforcement and drafting.
    4. The audit checklist's recurring-concerns memory (ci: onboard to the CI platform (ci-workflows + standards) #4 flat-scalar YAML, feat(hook-telemetry): marketplace-wide telemetry contract + markdown-formatter producer #5 .claude/ coupling) encoded the opposite of this decline.

    What was preserved from this issue's design — the reversal is narrower than "YAML replaces markdown": the H2 parse contract, the POSIX-ERE accepted-or-rejected dialect rule, unresolved = no enforcement, the team-only policy floor, and .claude/source-control.md as the default surface are all unchanged. The neutral file is opt-in via a team-declared ## convention_source pointer; absent pointer = exactly this issue's shipped behavior. The incumbent markdown-H2 steelman (config-doubles-as-documentation) was walked before replacement and is recorded in docs/conventions/commit-convention/README.md "The neutral convention SSOT".

    Future audits: this supersedes the "no YAML" line in this issue's body — do not resurface it as a gap; the contract now lives in the commit-convention seam README.

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

    area: security

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions