Skip to content

CI: check-capabilities-throws-sync.php drift guard (007 / #195 rows) #2144

Description

@PurHur

Problem

#2103 asks for curated throw / try / catch rows in docs/capabilities-syntax.md, but there is no drift guard like #2068 (check-development-status-sync.php) or #2019 (006 multipart rows). Doc-only PRs can claim VM/JIT/AOT yes while ROADMAP #78 still lists #195 open.

Goal

  1. Add script/check-capabilities-throws-sync.php that asserts:
  2. Wire opt-in gate CAPABILITIES_THROWS_SYNC_GATE=0 in script/ci-defaults.env
  3. Hook in script/ci-common.sh ci_run_inventory_checks() (same band as WAVE3_ROADMAP_SYNC_GATE)
  4. Document in docs/local-ci-matrix.md
  5. Follow-up issue to default-on in ci-fast after Docs: capabilities-matrix throw / try / catch rows (post-#195/#57) #2103 lands

Implementation hints

File Notes
script/check-capabilities-throws-sync.php Regex/line checks; exit 1 + hint to run php script/capability-syntax.php
test/unit/CapabilitySyntaxTest.php Assert gate env + script exists
script/capability-syntax-lib.php Source of truth for curated web row text

Acceptance criteria

php script/check-capabilities-throws-sync.php
CAPABILITIES_THROWS_SYNC_GATE=1 ./script/ci-fast.sh --filter CapabilitySyntax

Dependencies

Verification

./script/docker-runforge.sh -- bash -lc 'php script/check-capabilities-throws-sync.php'

No GitHub Actions (#394 ✅).

Links

Activity

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions