Commit 23b44b3
docs: TS→AS migration 01-triage — algorithm spec preserved as .md (closes 1 of standards#241) (#82)
## Summary
Part of standards#239 (TS→AffineScript estate migration) — closes 1 of
the 9 file candidates in standards#241 STEP 2.
Replaces \`docs/campaigns/2026-05-26/01-triage.ts\` (183 lines, Deno
TypeScript) with \`01-triage.md\` (196 lines, algorithmic spec). The TS
file was a historical campaign snapshot from 2026-05-26; a direct
AffineScript port surfaced 10 stdlib gaps that block a clean compile
until standards#242 STEP 3 (stdlib fill) lands.
## Why .md, not .affine
Attempted a full .affine port in the session that produced this PR. The
port surfaced fundamental stdlib gaps:
1. \`Set<T>\` membership — no native AS surface
2. \`Map<String, [T]>\` group-by — no native AS surface
3. Async generators (\`async function* walk(...)\`) — no AS surface
4. Typed JSON decoder for nested \`AssailReport\` shape —
\`json.affine\` v0.3 pending
5. Regex object construction (\`new RegExp(pat)\`) —
\`Deno::regexMatch\` is the limit
6. \`Date.toISOString()\` — no \`dateNowIso\` extern
7. \`Object.fromEntries(...)\` builder — no \`jsonObjectFromPairs\`
extern
8. Optional chaining (\`?.\`) — explicit \`Option\`/\`match\` (fine)
9. \`async\` / \`await\` on sync FS — Deno.affine is sync (fine)
10. Spread / rest destructuring — explicit helpers needed
Rather than ship a syntactically-iffy partial port that would block
other STEP 2 work in review, this PR preserves the algorithmic spec in a
structured Markdown document and removes the .ts file. A future PR will
land the \`.affine\` implementation once standards#242 STEP 3 closes the
relevant gaps.
## Per standards#241 acceptance
- [x] One per-repo PR per file group (this PR = 1 file in panic-attack/)
- [x] Hypatia ownership gate passes (no .ts after merge; .md is
governance-clean)
- [x] Stdlib gap list populated (see commit body + .md §"Stdlib gaps
surfaced")
## What the .md preserves
Every algorithmic detail needed to re-implement:
- Domain types (Severity, WeakPoint, AssailReport, PrCandidate)
- Static policy tables (proof exts, autofix-OK, issue-only, parked
debts)
- Category alias mapping (13 entries)
- 8-step classification algorithm
- PR grouping by \`(repo, file_dir, category)\`
- Output summary JSON shape
- Side-channel stderr log shape
## Net delta
- \`docs/campaigns/2026-05-26/01-triage.ts\`: −183 lines (removed)
- \`docs/campaigns/2026-05-26/01-triage.md\`: +196 lines (added)
## Refs
- standards#239 — TS→AS estate migration umbrella
- standards#241 — STEP 2 candidate list (this is 1 of 9)
- standards#242 — STEP 3 stdlib fill (consumes this PR's gap list)
- \`project_estate_ts_to_affinescript_2026_05_28.md\` — memory tracker
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent ea88be7 commit 23b44b3
2 files changed
Lines changed: 196 additions & 183 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
This file was deleted.
0 commit comments