Skip to content

port: ReScript surface -> AffineScript (session-management-standards/src/ui/tea/system_update_gui.affine) (Refs #229)#142

Merged
hyperpolymath merged 2 commits into
mainfrom
rs-elimination-229
May 19, 2026
Merged

port: ReScript surface -> AffineScript (session-management-standards/src/ui/tea/system_update_gui.affine) (Refs #229)#142
hyperpolymath merged 2 commits into
mainfrom
rs-elimination-229

Conversation

@hyperpolymath
Copy link
Copy Markdown
Owner

ReScript-surface elimination — session-management-standards/src/ui/tea/system_update_gui.affine

Refs #229 (estate-wide, sequenced, human-gated — not Closes).
Per-repo hands-off confirm: granted (single-file TEA GUI, intended
AffineScript target, not interop).

Tier-1 port per the language-grounded canonical map
(affinescript/docs/RESCRIPT-ELIMINATION.adoc):

  • List(T)[T] — 1 occurrence
  • expression-position record literals { … }#{ … } (the record
    sigil, spec.md:414-421). Match record-patterns and
    struct/enum/type decl bodies left as { } — the sigil is
    expression-literal-only (oracle-confirmed: #{ pattern parse-errors).
  • ReScript string + → AffineScript ++ where present (concat is
    ++; + is numeric — was a String/Int unify error beneath the
    parse wall; numeric +/- untouched). A layered RS-ism the
    text-scanner could not see (oracle-peeled — exactly the
    RESCRIPT-ELIMINATION.adoc lower-bound-triage warning).

Verified: affinescript main check session-management-standards/src/ui/tea/system_update_gui.affineType checking passed
(pre-port: parse error / DRIFT-SYNTAX). Self-contained, no imports.

🤖 Generated with Claude Code

hyperpolymath and others added 2 commits May 19, 2026 13:39
Estate anti-theatre lint, sub-issue of the proof-debt epic. Per
SPARK_Mode-On Ada unit, with no repo-wide GNATprove evidence:

  T1 (hard fail): a strong proof assertion ("formally verified",
      "SPARK Proof Level", "(Gold)", "all preconditions and
      postconditions are verified", "proving the invariant holds") in
      the FILE HEADER BANNER. Header-scoped so an incidental phrase in a
      body comment (e.g. an enum-literal description) does not false-fire
      — verified against ambientops strategy_matrix.ads:53.

  T2 (warn; hard fail when enforce_zero_contract: true): SPARK_Mode (On)
      with zero Pre/Post/Global/Depends/Contract_Cases. Warning by
      default so the ~13 repos mid Ada/SPARK->Rust/SPARK migration are
      not broken on rollout; escalates to failure per #135 end-state.

Genuine SPARK repos pass: GNATprove evidence (CI ref / build recipe /
gnatprove output) suppresses both rules. Verified locally:

  * standards self-run            -> PASS
  * ambientops post-demotion      -> PASS (T2 warn only, no T1)
  * ambientops w/ pre-demotion
    safety_boundary banner        -> T1-FAIL (regression caught)

Reusable via workflow_call; also self-runs on push/PR to main.

Refs #124
Refs #135

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
…): ReScript surface -> AffineScript (Refs #229)

Oracle-validated Tier-1 port (affinescript main @ #229 canonical map,
docs/RESCRIPT-ELIMINATION.adoc):
- List(T) -> [T]  (1 occurrence)
- expression-position record literals { ... } -> #{ ... } (the record
  sigil, spec.md:414-421). Match record-PATTERNS and struct/enum/type
  decl bodies correctly left as { } (sigil is expression-literal-only,
  oracle-confirmed).
- ReScript string `+` -> AffineScript `++` where present (concat is
  `++`; `+` is numeric — left a String/Int unify error beneath the
  parse wall; numeric `+`/`-` untouched).

Verified: `affinescript main check session-management-standards/src/ui/tea/system_update_gui.affine` -> Type checking passed
(was: parse error / DRIFT-SYNTAX pre-port). Self-contained file, no
imports. Refs #229 (estate-wide, sequenced, human-gated — not Closes).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown

🔍 Hypatia Security Scan

Findings: 101 issues detected

Severity Count
🔴 Critical 63
🟠 High 28
🟡 Medium 10

⚠️ Action Required: Critical security issues found!

View findings
[
  {
    "reason": "Issue in quality.yml",
    "type": "missing_workflow",
    "file": "quality.yml",
    "action": "create",
    "rule_module": "workflow_audit",
    "severity": "high"
  },
  {
    "reason": "Issue in security-policy.yml",
    "type": "missing_workflow",
    "file": "security-policy.yml",
    "action": "create",
    "rule_module": "workflow_audit",
    "severity": "medium"
  },
  {
    "reason": "Action hyperpolymath/standards/.github/workflows/governance-reusable.yml@main needs attention",
    "type": "unpinned_action",
    "file": "governance-reusable.yml",
    "action": "pin_sha",
    "rule_module": "workflow_audit",
    "severity": "high"
  },
  {
    "reason": "Action hyperpolymath/standards/.github/workflows/governance-reusable.yml@main needs attention",
    "type": "unpinned_action",
    "file": "governance.yml",
    "action": "pin_sha",
    "rule_module": "workflow_audit",
    "severity": "high"
  },
  {
    "reason": "Python file detected -- banned language",
    "type": "banned_language_file",
    "file": "/home/runner/work/standards/standards/a2ml-templates/state-scm-to-v2.py",
    "action": "flag",
    "rule_module": "cicd_rules",
    "severity": "critical"
  },
  {
    "reason": "TypeScript file detected -- banned language",
    "type": "banned_language_file",
    "file": "/home/runner/work/standards/standards/a2ml/bindings/deno/mod.ts",
    "action": "flag",
    "rule_module": "cicd_rules",
    "severity": "critical"
  },
  {
    "reason": "TypeScript file detected -- banned language",
    "type": "banned_language_file",
    "file": "/home/runner/work/standards/standards/lol/test/vitest.config.ts",
    "action": "flag",
    "rule_module": "cicd_rules",
    "severity": "critical"
  },
  {
    "reason": "TypeScript file detected -- banned language",
    "type": "banned_language_file",
    "file": "/home/runner/work/standards/standards/k9-svc/bindings/deno/mod.ts",
    "action": "flag",
    "rule_module": "cicd_rules",
    "severity": "critical"
  },
  {
    "reason": "believe_me undermines formal verification (1 occurrences, CWE-704)",
    "type": "believe_me",
    "file": "/home/runner/work/standards/standards/lol/src/abi/Locale.idr",
    "action": "flag",
    "rule_module": "code_safety",
    "severity": "critical"
  },
  {
    "reason": "Wildcard CORS -- restrict to specific origins or use env var (1 occurrences, CWE-942)",
    "type": "js_wildcard_cors",
    "file": "/home/runner/work/standards/standards/consent-aware-http/examples/reference-implementations/deno/aibdp_middleware.js",
    "action": "flag",
    "rule_module": "code_safety",
    "severity": "high"
  }
]

Powered by Hypatia Neurosymbolic CI/CD Intelligence

@hyperpolymath hyperpolymath merged commit fb7ec65 into main May 19, 2026
16 of 18 checks passed
@hyperpolymath hyperpolymath deleted the rs-elimination-229 branch May 19, 2026 17:49
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