port: ReScript surface -> AffineScript (session-management-standards/src/ui/tea/system_update_gui.affine) (Refs #229)#142
Merged
Conversation
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>
🔍 Hypatia Security ScanFindings: 101 issues detected
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 |
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.
ReScript-surface elimination —
session-management-standards/src/ui/tea/system_update_gui.affineRefs #229(estate-wide, sequenced, human-gated — notCloses).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{ … }→#{ … }(the recordsigil,
spec.md:414-421). Match record-patterns andstruct/enum/typedecl bodies left as{ }— the sigil isexpression-literal-only (oracle-confirmed:
#{pattern parse-errors).+→ AffineScript++where present (concat is++;+is numeric — was aString/Intunify error beneath theparse wall; numeric
+/-untouched). A layered RS-ism thetext-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.affine→ Type checking passed(pre-port: parse error / DRIFT-SYNTAX). Self-contained, no imports.
🤖 Generated with Claude Code