feat(cicd_rules): extend :typescript_detected with linguist + /deps/ + /vscode/ carve-outs#378
Merged
Merged
Conversation
…+ /vscode/ carve-outs
Three asymmetries surfaced by 2026-05-28 estate inventory between the
hypatia rule's path_allow_prefixes (7 classes post hypatia#375) and the
standards governance-reusable check-ts-allowlist.ts builtin allowlist:
(a) `linguist/` — hyperpolymath fork of github-linguist/linguist; its
`samples/TypeScript/*.ts` are ML training fixtures for language
classification, not estate-authored TS. Same class as
rescript/servers/repos-monorepo (upstream forks).
(b) `/deps/` — Elixir Mix vendored-dep directory. Canonical example:
`tma-mark2/deps/phoenix_live_view/assets/js/phoenix_live_view/*.ts`
is Phoenix LiveView's authored TS, vendored as a hex-mix dep. We
don't own this code; the language ban shouldn't trip on it.
(c) `/vscode/` — VSCode extension entry points across 5 estate repos
(universal-language-server-plugin, reposystem, proof-burrower,
phronesis, bofj-kitt). These need AffineScript's VSCode-extension
API binding before they can migrate; that binding is on the AS
top-50 roadmap but unshipped. Carve-out unblocks the gate.
Carve-out classes now: 7 → 9. Tests grow from 8 → 11. No behaviour change
for the existing 7 classes.
Parallel to standards#NNN which mirrors these into language-policy.yml
+ .claude/CLAUDE.md + LANGUAGE-POLICY.adoc.
🔍 Hypatia Security ScanFindings: 102 issues detected
View findings[
{
"reason": "Issue in ci.yml",
"type": "unknown",
"file": "ci.yml",
"action": "flag",
"rule_module": "workflow_audit",
"severity": "medium"
},
{
"reason": "Issue in ci.yml",
"type": "unknown",
"file": "ci.yml",
"action": "flag",
"rule_module": "workflow_audit",
"severity": "medium"
},
{
"reason": "Issue in ci.yml",
"type": "unknown",
"file": "ci.yml",
"action": "flag",
"rule_module": "workflow_audit",
"severity": "medium"
},
{
"reason": "Issue in ci.yml",
"type": "unknown",
"file": "ci.yml",
"action": "flag",
"rule_module": "workflow_audit",
"severity": "medium"
},
{
"reason": "Issue in ci.yml",
"type": "unknown",
"file": "ci.yml",
"action": "flag",
"rule_module": "workflow_audit",
"severity": "medium"
},
{
"reason": "Issue in ci.yml",
"type": "unknown",
"file": "ci.yml",
"action": "flag",
"rule_module": "workflow_audit",
"severity": "medium"
},
{
"reason": "Issue in ci.yml",
"type": "unknown",
"file": "ci.yml",
"action": "flag",
"rule_module": "workflow_audit",
"severity": "medium"
},
{
"reason": "Issue in ci.yml",
"type": "unknown",
"file": "ci.yml",
"action": "flag",
"rule_module": "workflow_audit",
"severity": "medium"
},
{
"reason": "Issue in clusterfuzzlite.yml",
"type": "unknown",
"file": "clusterfuzzlite.yml",
"action": "flag",
"rule_module": "workflow_audit",
"severity": "medium"
},
{
"reason": "Issue in clusterfuzzlite.yml",
"type": "unknown",
"file": "clusterfuzzlite.yml",
"action": "flag",
"rule_module": "workflow_audit",
"severity": "medium"
}
]Powered by Hypatia Neurosymbolic CI/CD Intelligence |
🔍 Hypatia Security ScanFindings: 102 issues detected
View findings[
{
"reason": "Issue in ci.yml",
"type": "unknown",
"file": "ci.yml",
"action": "flag",
"rule_module": "workflow_audit",
"severity": "medium"
},
{
"reason": "Issue in ci.yml",
"type": "unknown",
"file": "ci.yml",
"action": "flag",
"rule_module": "workflow_audit",
"severity": "medium"
},
{
"reason": "Issue in ci.yml",
"type": "unknown",
"file": "ci.yml",
"action": "flag",
"rule_module": "workflow_audit",
"severity": "medium"
},
{
"reason": "Issue in ci.yml",
"type": "unknown",
"file": "ci.yml",
"action": "flag",
"rule_module": "workflow_audit",
"severity": "medium"
},
{
"reason": "Issue in ci.yml",
"type": "unknown",
"file": "ci.yml",
"action": "flag",
"rule_module": "workflow_audit",
"severity": "medium"
},
{
"reason": "Issue in ci.yml",
"type": "unknown",
"file": "ci.yml",
"action": "flag",
"rule_module": "workflow_audit",
"severity": "medium"
},
{
"reason": "Issue in ci.yml",
"type": "unknown",
"file": "ci.yml",
"action": "flag",
"rule_module": "workflow_audit",
"severity": "medium"
},
{
"reason": "Issue in ci.yml",
"type": "unknown",
"file": "ci.yml",
"action": "flag",
"rule_module": "workflow_audit",
"severity": "medium"
},
{
"reason": "Issue in clusterfuzzlite.yml",
"type": "unknown",
"file": "clusterfuzzlite.yml",
"action": "flag",
"rule_module": "workflow_audit",
"severity": "medium"
},
{
"reason": "Issue in clusterfuzzlite.yml",
"type": "unknown",
"file": "clusterfuzzlite.yml",
"action": "flag",
"rule_module": "workflow_audit",
"severity": "medium"
}
]Powered by Hypatia Neurosymbolic CI/CD Intelligence |
🔍 Hypatia Security ScanFindings: 102 issues detected
View findings[
{
"reason": "Issue in ci.yml",
"type": "unknown",
"file": "ci.yml",
"action": "flag",
"rule_module": "workflow_audit",
"severity": "medium"
},
{
"reason": "Issue in ci.yml",
"type": "unknown",
"file": "ci.yml",
"action": "flag",
"rule_module": "workflow_audit",
"severity": "medium"
},
{
"reason": "Issue in ci.yml",
"type": "unknown",
"file": "ci.yml",
"action": "flag",
"rule_module": "workflow_audit",
"severity": "medium"
},
{
"reason": "Issue in ci.yml",
"type": "unknown",
"file": "ci.yml",
"action": "flag",
"rule_module": "workflow_audit",
"severity": "medium"
},
{
"reason": "Issue in ci.yml",
"type": "unknown",
"file": "ci.yml",
"action": "flag",
"rule_module": "workflow_audit",
"severity": "medium"
},
{
"reason": "Issue in ci.yml",
"type": "unknown",
"file": "ci.yml",
"action": "flag",
"rule_module": "workflow_audit",
"severity": "medium"
},
{
"reason": "Issue in ci.yml",
"type": "unknown",
"file": "ci.yml",
"action": "flag",
"rule_module": "workflow_audit",
"severity": "medium"
},
{
"reason": "Issue in ci.yml",
"type": "unknown",
"file": "ci.yml",
"action": "flag",
"rule_module": "workflow_audit",
"severity": "medium"
},
{
"reason": "Issue in clusterfuzzlite.yml",
"type": "unknown",
"file": "clusterfuzzlite.yml",
"action": "flag",
"rule_module": "workflow_audit",
"severity": "medium"
},
{
"reason": "Issue in clusterfuzzlite.yml",
"type": "unknown",
"file": "clusterfuzzlite.yml",
"action": "flag",
"rule_module": "workflow_audit",
"severity": "medium"
}
]Powered by Hypatia Neurosymbolic CI/CD Intelligence |
3 tasks
hyperpolymath
added a commit
that referenced
this pull request
May 30, 2026
…ch — standards#260/#261/#263) (#391) ## Summary Single batched Layer-1 PR for **three** estate-campaign STEP 1 sub-issues: - `hyperpolymath/standards#260` — ReScript→AffineScript Layer-1 (umbrella #252) - `hyperpolymath/standards#261` — npm→Deno Layer-1 (umbrella #253) - `hyperpolymath/standards#263` — Unnecessarily-JS→AffineScript Layer-1 (umbrella #254) Batched because the changes are non-conflicting and the carve-out classes share structural overlap (vscode, bootstrap shims, upstream forks, archived, vendored deps). Mirrors the TS Layer-1 batch shape from #375 + #378. ## Rule changes | Rule | Status | Carve-out classes | |---|---|---| | `:rescript_detected` | extended | 8 — bsconfig, upstream forks, archived, vendored, vscode, compiled output (lib/js, lib/es6, lib/bs), bootstrap shims, Telegraf | | `:rescript_interface_detected` | extended | same 8 | | `:nodejs_detected` (package-lock.json) | extended | 6 — vscode, bootstrap shims, upstream forks, archived, vendored, example/test fixtures | | `:javascript_detected` (*.js) | **NEW** | 8 — host-required (mcp-bridge/, /plugins/), tooling configs (.config.{js,cjs,mjs}), bootstrap shims, upstream forks, archived, vendored, compiled output (/out/, /lib/js/, /.deno/), vscode | | `:javascript_jsx_detected` (*.jsx) | **NEW** | same 8 | JS ship-mode design question (umbrella#254 STEP 1) decided in favour of HARD-BLOCK with extensive carve-outs; per-PR exemption via inline `// hypatia: allow cicd_rules/javascript_detected -- <reason>` pragma. ## Tests `test/rules/cicd_rules_rescript_npm_js_test.exs` — 15 representative cases across all 4 rules (flag + per-carve-out exemption) mirroring `cicd_rules_typescript_test.exs`. Verified locally via standalone `elixirc` compile + sanity-check script (15/15 pass). Local `mix test` blocked by Elixir 1.14 vs Phoenix dep mismatch unrelated to this PR; CI runs on a compatible toolchain. ## Seam-finding origin Identified as Layer-1 batch candidate during the umbrella filings session 2026-05-30 (see [[feedback_fanout_and_seam_analyst_meander]] in operator memory). The three STEP 1 sub-issues all cross-reference each other and this batch. ## Test plan - [ ] CI green (Elixir-compatible toolchain runs the new test file) - [ ] No regression in `cicd_rules_typescript_test.exs` (orthogonal rules) - [ ] Manual scan of an estate repo confirms new rules don't fire on legitimate paths ## Cross-references - Refs hyperpolymath/standards#260 (RS STEP 1) - Refs hyperpolymath/standards#261 (npm STEP 1) - Refs hyperpolymath/standards#263 (JS STEP 1) - Refs hyperpolymath/standards#252 (RS umbrella) - Refs hyperpolymath/standards#253 (npm umbrella) - Refs hyperpolymath/standards#254 (JS umbrella) - Pattern: hypatia#375 + #378 (TS Layer-1) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Extends
:typescript_detectedpath_allow_prefixesfrom 7 to 9 carve-out classes, closing asymmetries surfaced by the 2026-05-28 estate inventory.Three new classes
linguist/— hyperpolymath fork ofgithub-linguist/linguist; itssamples/TypeScript/*.tsare ML training fixtures, not estate-authored. Same class asrescript//servers//repos-monorepo/./deps/— Elixir Mix vendored-dep dir. Exemplar:tma-mark2/deps/phoenix_live_view/assets/js/phoenix_live_view/*.tsships Phoenix LiveView's authored TS, vendored as a hex-mix dep./vscode/— VSCode extension entry points across 5 estate repos (universal-language-server-plugin,reposystem,proof-burrower,phronesis,bofj-kitt). Each has avscode/extension.ts. Blocked on AffineScript VSCode-extension API binding (top-50 roadmap, unshipped); carve-out unblocks the gate.Test plan
**/deps/; new**/vscode/**test covering all 5 estate repos)Related
.claude/CLAUDE.mdexemption table +LANGUAGE-POLICY.adoccarve-outs +language-policy.ymlgrep chain)🤖 Generated with Claude Code