Engine Split Metric (ADR-0076 D7) #3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Engine Split Metric (ADR-0076 D7) | |
| # Tracks the D7 repo-split trigger metric (#2462): the cross-package commit | |
| # ratio of the ObjectQL engine core (engine.ts / registry.ts). The engine may | |
| # only be extracted into its own repo once this ratio is low and stable | |
| # (~88% at ADR time). Report-only — no gate until a threshold is agreed | |
| # (ADR-0076 OQ#5); the ratio lands in the run's step summary. | |
| on: | |
| schedule: | |
| - cron: '17 3 * * 1' # weekly, Monday 03:17 UTC | |
| workflow_dispatch: {} | |
| pull_request: | |
| paths: | |
| - 'scripts/check-engine-split-ratio.mjs' | |
| - '.github/workflows/engine-split-metric.yml' | |
| permissions: | |
| contents: read | |
| jobs: | |
| ratio: | |
| name: Engine cross-package commit ratio | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - name: Checkout repository (full history) | |
| uses: actions/checkout@v7 | |
| with: | |
| fetch-depth: 0 | |
| - name: Compute ratio (90-day window) | |
| run: node scripts/check-engine-split-ratio.mjs --days 90 |