Skip to content

docs: tighten Airflow references to placeholders across framework files - #1

Merged
potiuk merged 1 commit into
mainfrom
sanitization-pass-1
Apr 28, 2026
Merged

potiuk merged 1 commit into
mainfrom
sanitization-pass-1

Conversation

@potiuk

@potiuk potiuk commented Apr 28, 2026

Copy link
Copy Markdown
Member

Summary

Follow-up sanitization pass on the framework, replacing literal Airflow URLs and ASF-domain strings with the framework's placeholder convention. Remaining "Apache Airflow" references are in legitimate (example: …) parentheticals, placeholder-convention tables, and the vulnogram SKILL.md documenting the airflow-specific reference implementation — all within the "Airflow as example in comments" rule.

What's substituted

Literal Placeholder
airflow.apache.org/docs/.../security_model.html <security-model-url>
https://airflow.apache.org/ (project website) <project-website>/
security.airflow.apache.org (security-list domain) <security-list-domain>
domain: "airflow.apache.org" (in ponymail/gmail code) domain: "<project-domain>"
`Apache Airflow:` (literal title prefix) `<vendor>: <product>:` (e.g. `Apache Airflow:`)

Files touched

13 files: 5 skills (allocate-cve, import-security-issue, import-security-issue-from-pr, invalidate-security-issue, sync-security-issue), 6 tool docs (tools/{ponymail,gmail,vulnogram}/*.md), README.md, and CONTRIBUTING.md.

Test plan

  • Re-grep across the framework: count of literal Apache Airflow / airflow.apache.org / apache/airflow / airflow-s/airflow-s mentions dropped from ~50 to ~36.
  • Remaining mentions reviewed and confirmed to fall under (example: …) parentheticals or placeholder tables.
  • Future: refactor tools/vulnogram/generate-cve-json/ Python implementation to be project-agnostic (currently airflow-specific defaults; the SKILL.md still describes airflow defaults). Once refactored, the framework can ship the implementation, and the SKILL.md can drop the Airflow-specific examples.

🤖 Generated with Claude Code

Mechanical sanitization pass replacing literal Airflow URLs and
ASF-domain strings with placeholders, leaving illustrative
"(example: …)" parentheticals intact:

- airflow.apache.org/docs/.../security_model.html → <security-model-url>
- https://airflow.apache.org/ → <project-website>/
- security.airflow.apache.org → <security-list-domain>
- domain: "airflow.apache.org" (in ponymail/gmail code samples) →
  <project-domain>
- `Apache Airflow:` literal title prefix → described as
  <vendor>: <product>: with Airflow as illustrative example

Affects 13 files (5 skills + 6 tool docs + README + CONTRIBUTING).
Remaining "Apache Airflow" references are in placeholder-convention
tables, "(example: …)" parentheticals, and the vulnogram SKILL.md
documenting the airflow-specific reference implementation — all
within the "Airflow as example in comments" rule from
.../airflow-steward repository conventions.

Generated-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@potiuk
potiuk merged commit 00850ff into main Apr 28, 2026
potiuk referenced this pull request in andreahlert/magpie May 1, 2026
…, lychee)

Adds a minimal doc-validation layer to pre-commit + a lychee link-check
workflow. Catches the bug classes review currently has to find by eye:

- markdownlint-cli2 with a tight config (MD051 broken anchors, MD053
  dangling link refs); style rules off so the diff stays small
- typos with project-term allowlist in .typos.toml (CNA, Vulnogram,
  ponymail, mis-, Nd, pre-empted)
- tools/dev/check-placeholders.sh refuses hardcoded apache/airflow /
  Apache Airflow inside .claude/skills/ and tools/*.md (PR #1 already
  had to scrub these once)
- lychee runs in a separate workflow on PR + daily cron; informational
  only today (continue-on-error: true) because the existing tree has
  24 pre-existing broken refs to files that have not landed yet
  (config/, projects/airflow/, the issue-template YAML); flips to a
  hard gate once the baseline reaches zero

Wiring this up surfaced five real broken anchors I fixed along the
way:

- AGENTS.md missing "the project's" prefix in
  #point-reporters-to-the-security-model-dont-re-explain-it
- tools/ponymail/operations.md anchors #get-email and #get-thread
  pointed at headings that are actually "Get an email" / "Get a thread"
- projects/_template/scope-labels.md and tools/github/issue-template.md
  carried headings with a literal "→" that GitHub URL-encodes into
  unresolvable slugs; renamed to "to" and re-ran doctoc

Signed-off-by: André Ahlert <andre@aex.partners>
potiuk added a commit that referenced this pull request May 1, 2026
…, lychee) (#18)

* ci: add doc-validation hooks (markdownlint, typos, placeholder linter, lychee)

Adds a minimal doc-validation layer to pre-commit + a lychee link-check
workflow. Catches the bug classes review currently has to find by eye:

- markdownlint-cli2 with a tight config (MD051 broken anchors, MD053
  dangling link refs); style rules off so the diff stays small
- typos with project-term allowlist in .typos.toml (CNA, Vulnogram,
  ponymail, mis-, Nd, pre-empted)
- tools/dev/check-placeholders.sh refuses hardcoded apache/airflow /
  Apache Airflow inside .claude/skills/ and tools/*.md (PR #1 already
  had to scrub these once)
- lychee runs in a separate workflow on PR + daily cron; informational
  only today (continue-on-error: true) because the existing tree has
  24 pre-existing broken refs to files that have not landed yet
  (config/, projects/airflow/, the issue-template YAML); flips to a
  hard gate once the baseline reaches zero

Wiring this up surfaced five real broken anchors I fixed along the
way:

- AGENTS.md missing "the project's" prefix in
  #point-reporters-to-the-security-model-dont-re-explain-it
- tools/ponymail/operations.md anchors #get-email and #get-thread
  pointed at headings that are actually "Get an email" / "Get a thread"
- projects/_template/scope-labels.md and tools/github/issue-template.md
  carried headings with a literal "→" that GitHub URL-encodes into
  unresolvable slugs; renamed to "to" and re-ran doctoc

Signed-off-by: André Ahlert <andre@aex.partners>

* fix(ci): bump node language version + use ASF-allowlisted lychee-action SHA

PR #18's first CI run failed three checks; this fixup commit addresses
all three:

- prek / markdownlint — markdownlint-cli2 v0.22.1 requires Node ≥ 20
  (its string-width dep uses the regex `/v` flag), but
  `default_language_version.node` was pinned to 18.6.0. Bumped to
  22.11.0 (current active LTS).

- asf-allowlist-check — `lycheeverse/lychee-action@82202e5e…`
  (v2.6.1) is not on the ASF infrastructure-actions allowlist.
  Re-pinned to the allowlisted v2.8.0 SHA
  `8646ba30535128ac92d33dfc9133794bfdd9b411`. Comment in the workflow
  now explains the allowlist requirement so future bumps go through
  the same check.

- zizmor (ref-version-mismatch) — the v2.6.1-comment + actual-SHA
  combination from the original pin was flagged because the SHA
  pointed to v2.4.1, not v2.6.1. The new v2.8.0 SHA correctly maps
  to its tag, so the warning disappears with the same change.

prek + zizmor verified clean locally.

Generated-by: Claude Code (Opus 4.7)

---------

Signed-off-by: André Ahlert <andre@aex.partners>
Co-authored-by: Jarek Potiuk <jarek@potiuk.com>
@andreahlert andreahlert added the mode:platform Substrate / infra — not a mode (sandbox, CI, validators) label May 7, 2026
potiuk added a commit to potiuk/magpie that referenced this pull request Sep 15, 2026
Run apache#1 of `bump dev version` failed, and the reason is worth keeping rather
than rediscovering:

    gh: protected branch 'main' check failed:
      3 of 3 required status checks are expected.

`main` requires three status checks, and a commit arriving through the API
carries none — GitHub enforces branch protection there exactly as it does on a
push. The preceding commit already routes the bump through a pull request; this
records the evidence for why, in the workflow header and in CONTRIBUTING, so the
direct-push shape is not proposed again.

Generated-by: Claude Opus 5
potiuk added a commit that referenced this pull request Sep 15, 2026
* feat(dev): check the bump candidate with the real PR workflows, open it as a draft

The bump commit never met a gate. A commit created through GitHub's API raises
no events, and a direct push to `main` is not a pull request, so nothing would
have checked what this workflow produces — and a bump is not "only a version
string": it regenerates fourteen manifests and the lockfile, any of which can
come out wrong.

The candidate is now built on its own branch, put through the *same* four check
workflows a pull request runs, and only then offered as a pull request. A failed
check deletes the branch instead of leaving a broken PR behind.

`pre-commit.yml`, `tests.yml`, `rat.yml` and `zizmor.yml` each gain a
`workflow_call` trigger and an optional `ref` input, and the bump workflow
`uses:` them. They are called, not copied, so they cannot drift from what a PR
gets; the input is empty on every other trigger, leaving `actions/checkout` on
its normal behaviour.

The pull request opens as a **draft**, which is what makes it usable. GitHub
raises no `pull_request` events for anything `GITHUB_TOKEN` does, so a ready PR
opened from here would sit forever on "N of N required status checks are
expected", and the checks this workflow ran are attached to its own run rather
than to the PR head. Marking a draft ready raises `ready_for_review`, which is a
real event because a human does it — so the four check workflows now list that
type explicitly (it is not in the default set) and pressing *Ready for review*
starts the required checks against the PR head, exactly as an ordinary PR gets
them.

Reusable-workflow calls use GitHub's `$/` self-repository syntax rather than
`./`, per zizmor's `self-repository` audit.

Generated-by: Claude Opus 5

* docs(dev): describe the dev-version bump workflow

`CONTRIBUTING.md` listed every CI workflow except the one a human starts by
hand, which is also the only one that writes to the repository — so the job
graph, the signed-commit path and the draft-PR behaviour existed only as
comments inside the YAML.

Adds a *Bumping the dev version* section covering the six jobs, why the checks
are `uses:` of the real workflows rather than copies of their steps, and why
the pull request opens as a draft: GitHub raises no `pull_request` events for
anything `GITHUB_TOKEN` does, so marking the draft ready is what starts the
required checks against the PR head. Notes the side effect that every draft PR
in this repo now behaves that way, and gives the one-liner for reviewing a bump
diff — every changed line should be the version string and nothing else.

Also realigns `docs/setup/marketplace.md` § *How to bump*, which still described
the workflow committing straight to `main`.

Generated-by: Claude Opus 5

* docs(dev): record why the bump cannot commit to main

Run #1 of `bump dev version` failed, and the reason is worth keeping rather
than rediscovering:

    gh: protected branch 'main' check failed:
      3 of 3 required status checks are expected.

`main` requires three status checks, and a commit arriving through the API
carries none — GitHub enforces branch protection there exactly as it does on a
push. The preceding commit already routes the bump through a pull request; this
records the evidence for why, in the workflow header and in CONTRIBUTING, so the
direct-push shape is not proposed again.

Generated-by: Claude Opus 5
@potiuk potiuk added contract:cve-authority Tool capability: CVE allocation / record management / publication contract:mail-archive Tool capability: mailing-list / forum archive reads contract:mail-create Tool capability: outbound mail composition (editable draft; sending is a separate human step) contract:mail-source Tool capability: inbound-mail ingestion (mbox / IMAP / ...) labels Sep 25, 2026
@potiuk potiuk added capability:intake Import external signal + sync tracker state capability:resolve Close-out: invalidate, dedupe, CVE allocate, announcement family:docs Docs, MISSION.md, READMEs family:security security-* skills family:tools tools/* labels Nov 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

capability:intake Import external signal + sync tracker state capability:resolve Close-out: invalidate, dedupe, CVE allocate, announcement contract:cve-authority Tool capability: CVE allocation / record management / publication contract:mail-archive Tool capability: mailing-list / forum archive reads contract:mail-create Tool capability: outbound mail composition (editable draft; sending is a separate human step) contract:mail-source Tool capability: inbound-mail ingestion (mbox / IMAP / ...) family:docs Docs, MISSION.md, READMEs family:security security-* skills family:tools tools/* mode:platform Substrate / infra — not a mode (sandbox, CI, validators)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants