Skip to content

Commit 5181178

Browse files
chore: move internal docs into docs/ (#62)
1 parent ffce09c commit 5181178

13 files changed

Lines changed: 21 additions & 21 deletions

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ jobs:
4545

4646
# Every correctness GATE through ONE runner — sanity / agnostic / conformance /
4747
# highlighter / vue / yaml / the generative scope≡role check / the gap-ledger selftest
48-
# + --check (stale KNOWN-GAPS.md fails). One ✓/✗ summary, one exit code. The comparative
48+
# + --check (stale docs/KNOWN-GAPS.md fails). One ✓/✗ summary, one exit code. The comparative
4949
# METRICS (scope-gap / src-coverage) and BENCH tools need the external TS corpus / VS Code
50-
# grammars and run in the readme-bench workflow, not here. See TESTING.md for the taxonomy.
50+
# grammars and run in the readme-bench workflow, not here. See docs/TESTING.md for the taxonomy.
5151
- name: Test
5252
run: npm run check
5353

.github/workflows/gap-issues.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Reconcile GitHub issues from the gap ledger (KNOWN-GAPS.md → issues), idempotently.
1+
# Reconcile GitHub issues from the gap ledger (docs/KNOWN-GAPS.md → issues), idempotently.
22
# Runs when the ledger CHANGES on master (a gap appeared or was fixed) and on manual dispatch.
33
# The deterministic ledger is the source of truth; this only PROJECTS it: opens an issue for a new
44
# gap, auto-closes the issue when its fingerprint leaves the ledger. See test/gap-issues.ts.
@@ -7,7 +7,7 @@ name: gap-ledger-issues
77
on:
88
push:
99
branches: [master]
10-
paths: ['KNOWN-GAPS.md']
10+
paths: ['docs/KNOWN-GAPS.md']
1111
workflow_dispatch: {}
1212

1313
permissions:
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

test/check.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
// check.ts — the SINGLE gate runner. Runs every correctness GATE as a subprocess and
33
// prints ONE ✓/✗ summary, exiting non-zero if any fails. `npm run check` answers
44
// "is the repo healthy?" in one command + one output — instead of running a dozen
5-
// scripts with a dozen output formats. See TESTING.md for the report taxonomy
5+
// scripts with a dozen output formats. See docs/TESTING.md for the report taxonomy
66
// (gate / metric / ledger / bench); this runs the GATE tier (the CI-blocking pass/fail
77
// checks that need no external corpus). Metrics live in the README coverage table
8-
// (`npm run coverage:table`), findings in the gap ledger (`KNOWN-GAPS.md`).
8+
// (`npm run coverage:table`), findings in the gap ledger (`docs/KNOWN-GAPS.md`).
99
//
1010
// Assumes the generated grammars are current (`npm run gen`), as CI does before this.
1111
// Run: node test/check.ts # all gates

test/gap-issues.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// ─────────────────────────────────────────────────────────────────────────────
2-
// gap-issues.ts — RECONCILE GitHub issues from the gap ledger (KNOWN-GAPS.md).
2+
// gap-issues.ts — RECONCILE GitHub issues from the gap ledger (docs/KNOWN-GAPS.md).
33
//
44
// The deterministic ledger (test/gap-ledger.ts) is the SOURCE OF TRUTH — a committed,
55
// fingerprinted list of valid-input flat-highlighter divergences the generative
@@ -14,7 +14,7 @@
1414
// Because the fingerprint is content-derived and the ledger is deterministic, this is a
1515
// pure function of (ledger, open issues) → it never spams and auto-closes on fix — the
1616
// OSS-Fuzz model. The CI workflow (.github/workflows/gap-issues.yml) runs it on a push
17-
// that changes KNOWN-GAPS.md (and on manual dispatch).
17+
// that changes docs/KNOWN-GAPS.md (and on manual dispatch).
1818
//
1919
// Run: node test/gap-issues.ts # reconcile live (needs `gh` auth / GH_TOKEN)
2020
// node test/gap-issues.ts --dry-run # print the plan, touch nothing
@@ -23,7 +23,7 @@ import { readFileSync } from 'node:fs';
2323
import { execFileSync } from 'node:child_process';
2424

2525
const DRY = process.argv.includes('--dry-run');
26-
const LEDGER = 'KNOWN-GAPS.md';
26+
const LEDGER = 'docs/KNOWN-GAPS.md';
2727
const LABEL = 'gap-ledger';
2828
const marker = (id: string) => `<!-- gap-ledger:${id} -->`;
2929
const MARKER_RE = /<!-- gap-ledger:([0-9a-f]+) -->/;
@@ -63,7 +63,7 @@ function openIssues(): Map<string, number> {
6363
function title(g: Gap): string { return `[gap-ledger] ${g.language}: ${g.repro.replace(/\n/g, '\\n').slice(0, 50)}`; }
6464
function body(g: Gap): string {
6565
return [
66-
'Auto-filed by the **gap ledger** (`test/gap-ledger.ts` → `KNOWN-GAPS.md`). The generative scope≡role',
66+
'Auto-filed by the **gap ledger** (`test/gap-ledger.ts` → `docs/KNOWN-GAPS.md`). The generative scope≡role',
6767
'check found a flat-highlighter divergence from the Monogram parser on **valid input** — the floor-blind',
6868
'class the corpus-bound scope-gap metric is blind to. **This issue auto-CLOSES when the gap leaves the',
6969
'ledger** (i.e. when the highlighter is fixed and the next ledger regen drops it).',
@@ -102,6 +102,6 @@ for (const g of toOpen) {
102102
}
103103
for (const [id, num] of toClose) {
104104
console.log(` - CLOSE #${num} (gap ${id} no longer in the ledger — resolved)`);
105-
if (!DRY) gh(['issue', 'close', String(num), '--comment', `Resolved — gap \`${id}\` is no longer in the ledger (\`KNOWN-GAPS.md\`); the highlighter no longer diverges here. Auto-closed by \`test/gap-issues.ts\`.`]);
105+
if (!DRY) gh(['issue', 'close', String(num), '--comment', `Resolved — gap \`${id}\` is no longer in the ledger (\`docs/KNOWN-GAPS.md\`); the highlighter no longer diverges here. Auto-closed by \`test/gap-issues.ts\`.`]);
106106
}
107107
if (!toOpen.length && !toClose.length) console.log(' (in sync — nothing to do)');

0 commit comments

Comments
 (0)