Skip to content

feat(spec): add ARG + TRG + FRG + CRG profiles for typed-wasm#87

Merged
hyperpolymath merged 2 commits into
mainfrom
arg-trg-frg-crg-profile-landing
May 28, 2026
Merged

feat(spec): add ARG + TRG + FRG + CRG profiles for typed-wasm#87
hyperpolymath merged 2 commits into
mainfrom
arg-trg-frg-crg-profile-landing

Conversation

@hyperpolymath
Copy link
Copy Markdown
Owner

Summary

Adds the four-axis maturation grading for typed-wasm, scored against the framework introduced in hyperpolymath/standards#232 (ARG + FRG) and the templates introduced in hyperpolymath/standards#229 (TRG + CRG profile templates).

typed-wasm is treated as a language-shaped compilation target: it has a defined grammar (binary + textual per spec/grammar.ebnf), instruction AST, operational semantics (per spec/type-safety-levels-for-wasm.adoc), a layered type system (L1-L17 per LEVEL-STATUS.md), and a runtime contract. "Adoption" means downstream languages targeting it as a compilation backend (ephapax, AffineScript).

Grades

Axis Grade Headline reason
ARG D README/EXPLAINME/QUICKSTART + 6 example .twasm + 3 consumer-feature surfaces. No public playground / error-code index / educator curriculum.
TRG C Front-end + middle-end + back-end strong; T1-T5 N/A (target, not compiler). 88/88 parser tests pass at v1.5.
FRG C 22 Idris2 files at src/abi/ with QTT linearity + dependent types, zero believe_me/assert_total in ABI files, A10 closure landed PR #79. Gated below B by absence of explicit L1-L10 preservation lemmas per PROOF-NEEDS.md.
CRG D typed-wasm-verify v0.1.0 (workspace-internal, not yet on crates.io). Idris2 ABI surface at C (consumed as source).

Cross-axis rule: ARG ≤ TRG holds (TRG = C ≥ ARG = D). typed-wasm becomes the strongest of the audit cohort on FRG (versus ephapax-D, AffineScript-E, my-lang-X) and ties ephapax at TRG-C.

Honest gaps for grade promotion

  • B for TRG/FRG requires per-level preservation lemmas for L1-L10 (currently structural only); L11/L12 still draft.
  • C for ARG requires a published error-code index + web playground + VeriSimDB attestation.
  • C for CRG requires audits/audit-typed-wasm-verify.md + VeriSimDB attestation.

Test plan

  • CI passes
  • .adoc renders cleanly
  • Grade-line regex from nextgen-languages/language-status-tracker.jl matches each *<GRADE>* correctly
  • No SPDX-header lint complaints

🤖 Generated with Claude Code

Adds the four-axis maturation grading for typed-wasm, scored against
the framework introduced in hyperpolymath/standards#232 (ARG + FRG)
and the templates introduced in hyperpolymath/standards#229 (TRG +
CRG profile templates).

Compilation target treated as a language-shaped artefact: it has a
defined grammar (binary + textual), instruction AST, operational
semantics, layered type system (L1-L17), and runtime contract.
"Adoption" means downstream languages targeting it as a compilation
backend (ephapax, AffineScript).

Grade:
- ARG-D — README/EXPLAINME/QUICKSTART present, 6 example modules,
  3 consumer-feature surfaces (boj-server, panic-attacker, ssg);
  no public playground / error-code index / educator-facing
  curriculum.
- TRG-C — front-end (F1-F4, F6, F7), middle-end (M1, M2, M3 via
  Idris2 oracle, M5 strongest in cohort), back-end (B1 = Idris2
  ABI as IR, B2 WASM emission, B5 Zig FFI + Idris2 ABI per estate
  convention); T1-T5 N/A (target, not compiler). 88/88 parser
  tests pass at v1.5.
- FRG-C — 22 Idris2 files at src/abi/ encoding safety protocol
  with QTT linearity + dependent types, zero believe_me /
  assert_total in ABI files, A10 closure landed PR #79 inhabiting
  VerifierSpecAgreement + SourceVerifierAgreement. Gated below B
  by absence of explicit L1-L10 preservation lemmas (per
  PROOF-NEEDS.md handoff).
- CRG-D — typed-wasm-verify v0.1.0 (workspace-internal, not yet
  on crates.io), Idris2 ABI surface at C (consumed as source by
  ephapax + AffineScript), Parser.affine + Zig FFI at D.

Cross-axis rule: ARG ≤ TRG holds (TRG = C ≥ ARG = D).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@hyperpolymath hyperpolymath enabled auto-merge (squash) May 28, 2026 12:11
@github-actions
Copy link
Copy Markdown

🔍 Hypatia Security Scan

Findings: 97 issues detected

Severity Count
🔴 Critical 8
🟠 High 19
🟡 Medium 70

⚠️ Action Required: Critical security issues found!

View findings
[
  {
    "reason": "Action actions/upload-artifact@v4 needs attention",
    "type": "unpinned_action",
    "file": "release.yml",
    "action": "pin_sha",
    "rule_module": "workflow_audit",
    "severity": "medium"
  },
  {
    "reason": "Action actions/download-artifact@v4 needs attention",
    "type": "unpinned_action",
    "file": "release.yml",
    "action": "pin_sha",
    "rule_module": "workflow_audit",
    "severity": "medium"
  },
  {
    "reason": "Issue in boj-build.yml",
    "type": "unknown",
    "file": "boj-build.yml",
    "action": "flag",
    "rule_module": "workflow_audit",
    "severity": "medium"
  },
  {
    "reason": "Issue in c5-regenerate.yml",
    "type": "unknown",
    "file": "c5-regenerate.yml",
    "action": "flag",
    "rule_module": "workflow_audit",
    "severity": "medium"
  },
  {
    "reason": "Issue in cargo-audit.yml",
    "type": "unknown",
    "file": "cargo-audit.yml",
    "action": "flag",
    "rule_module": "workflow_audit",
    "severity": "medium"
  },
  {
    "reason": "Issue in codeql.yml",
    "type": "unknown",
    "file": "codeql.yml",
    "action": "flag",
    "rule_module": "workflow_audit",
    "severity": "medium"
  },
  {
    "reason": "Issue in dogfood-gate.yml",
    "type": "unknown",
    "file": "dogfood-gate.yml",
    "action": "flag",
    "rule_module": "workflow_audit",
    "severity": "medium"
  },
  {
    "reason": "Issue in dogfood-gate.yml",
    "type": "unknown",
    "file": "dogfood-gate.yml",
    "action": "flag",
    "rule_module": "workflow_audit",
    "severity": "medium"
  },
  {
    "reason": "Issue in dogfood-gate.yml",
    "type": "unknown",
    "file": "dogfood-gate.yml",
    "action": "flag",
    "rule_module": "workflow_audit",
    "severity": "medium"
  },
  {
    "reason": "Issue in dogfood-gate.yml",
    "type": "unknown",
    "file": "dogfood-gate.yml",
    "action": "flag",
    "rule_module": "workflow_audit",
    "severity": "medium"
  }
]

Powered by Hypatia Neurosymbolic CI/CD Intelligence

@github-actions
Copy link
Copy Markdown

🔍 Hypatia Security Scan

Findings: 97 issues detected

Severity Count
🔴 Critical 8
🟠 High 19
🟡 Medium 70

⚠️ Action Required: Critical security issues found!

View findings
[
  {
    "reason": "Action actions/upload-artifact@v4 needs attention",
    "type": "unpinned_action",
    "file": "release.yml",
    "action": "pin_sha",
    "rule_module": "workflow_audit",
    "severity": "medium"
  },
  {
    "reason": "Action actions/download-artifact@v4 needs attention",
    "type": "unpinned_action",
    "file": "release.yml",
    "action": "pin_sha",
    "rule_module": "workflow_audit",
    "severity": "medium"
  },
  {
    "reason": "Issue in boj-build.yml",
    "type": "unknown",
    "file": "boj-build.yml",
    "action": "flag",
    "rule_module": "workflow_audit",
    "severity": "medium"
  },
  {
    "reason": "Issue in c5-regenerate.yml",
    "type": "unknown",
    "file": "c5-regenerate.yml",
    "action": "flag",
    "rule_module": "workflow_audit",
    "severity": "medium"
  },
  {
    "reason": "Issue in cargo-audit.yml",
    "type": "unknown",
    "file": "cargo-audit.yml",
    "action": "flag",
    "rule_module": "workflow_audit",
    "severity": "medium"
  },
  {
    "reason": "Issue in codeql.yml",
    "type": "unknown",
    "file": "codeql.yml",
    "action": "flag",
    "rule_module": "workflow_audit",
    "severity": "medium"
  },
  {
    "reason": "Issue in dogfood-gate.yml",
    "type": "unknown",
    "file": "dogfood-gate.yml",
    "action": "flag",
    "rule_module": "workflow_audit",
    "severity": "medium"
  },
  {
    "reason": "Issue in dogfood-gate.yml",
    "type": "unknown",
    "file": "dogfood-gate.yml",
    "action": "flag",
    "rule_module": "workflow_audit",
    "severity": "medium"
  },
  {
    "reason": "Issue in dogfood-gate.yml",
    "type": "unknown",
    "file": "dogfood-gate.yml",
    "action": "flag",
    "rule_module": "workflow_audit",
    "severity": "medium"
  },
  {
    "reason": "Issue in dogfood-gate.yml",
    "type": "unknown",
    "file": "dogfood-gate.yml",
    "action": "flag",
    "rule_module": "workflow_audit",
    "severity": "medium"
  }
]

Powered by Hypatia Neurosymbolic CI/CD Intelligence

@hyperpolymath hyperpolymath disabled auto-merge May 28, 2026 15:43
@hyperpolymath hyperpolymath merged commit f42d9b8 into main May 28, 2026
30 of 31 checks passed
@hyperpolymath hyperpolymath deleted the arg-trg-frg-crg-profile-landing branch May 28, 2026 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant