Skip to content

Layer the lychee and zizmor configs in the link and zizmor scripts over standards #18980

Done

Description

@kyle-sexton

Goal

scripts/check-changed-links-online.sh and scripts/run-zizmor.sh take their lychee and zizmor configuration through the layering melodic-software/standards defines, with no copy of the standards file in this repository and no merge script.

Owner decision

Row Q295 ("Z2, config layering rule") in architecture docs/owner-decisions.md L423, 2026-11-25. Owner, verbatim: "What is the cleanest mechanism? If there isn't one.. I don't want hacky solutions - so we just keep them separate?" then, after the recommendations were shown, "OK go w/ recommendations".

The row's decision, quoted exactly: "each synced tool config uses the tool's native layering where it exists (lychee multiple --config, typos and markdownlint merge, gitleaks [extend], pyright extends, EditorConfig cascade); where none exists (zizmor, shellcheck, actionlint, editorconfig-checker) melodic-software/standards is the default, a repository may replace the whole file, and individual findings are suppressed with the tool's own mechanism (for example # zizmor: ignore[rule]); no custom merge scripts".

The contract is melodic-software/standards components/lychee/README.md and components/zizmor/README.md. ci-workflows' lychee-offline composite, maintenance-check-links-online and pr-audit-workflows reusables already implement it.

Current behavior

  • check-changed-links-online.sh reads one config: LYCHEE_CONFIG, else lychee.toml, and the standards checkout's lychee.toml only when the repository has none. A repository lychee.toml replaces standards' instead of extending it.
  • run-zizmor.sh already treats a repository zizmor config as a complete override and falls back to standards, but its API fallback names melodic-software/standards in the script.

Done when

  • check-changed-links-online.sh passes standards' lychee.toml as the first --config and the repository's root lychee.toml, when present, as the second; LYCHEE_CONFIG stays a complete override read alone.
  • Both scripts take standards' file from STANDARDS_DIR, else from the standards_repository of docs/conventions/source-control.yaml through the API; neither names the standards repository. run-zizmor.sh reads that key from the base commit when BASE_SHA is set.
  • A missing standards file or a missing standards_repository fails closed with exit 2.
  • scripts/check-changed-links-online.test.sh and scripts/run-zizmor.test.sh cover the layered, override, API and fail-closed cases.

Activity

  1. added
    session-owned
    on Nov 25, 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

    session-owned

    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