feat(migration/app/proven): port ProvenError.affine (megaport STEP 8 follow-up to #110)#111
Open
hyperpolymath wants to merge 1 commit into
Open
feat(migration/app/proven): port ProvenError.affine (megaport STEP 8 follow-up to #110)#111hyperpolymath wants to merge 1 commit into
hyperpolymath wants to merge 1 commit into
Conversation
…— single-file follow-up)
Ports src/app/proven/ProvenError.res (32 LoC) to Mode-A
AffineScript. Self-contained error-types module — pure data record
+ 5 constructor helpers + toString. No FFI, no cross-module deps,
no Tea_/Pixi/Gossamer surface.
Type checks against AffineScript stdlib.
Translation choices:
- record-field punning `{operation}` → explicit `#{operation: operation}`
- labelled args `(~name: T)` → positional `(name: T)` (AS has no labels)
- template literal `` `[${a}] ${b}` `` → `"[" ++ a ++ "] " ++ b` (no JS templates)
What this PR is NOT
Does NOT replace src/app/proven/ProvenError.res. Consumers
(SafeFloat, SafeJson, SafeAngle) still reference the .res — those
ports need cross-module `use` resolution (#228 family) before they
can swap to the .affine.
Refs standards#279 (megaport STEP 8). Adjacent to idaptik#110 which
landed the first migration/shared/ Mode-A file.
🔍 Hypatia Security ScanFindings: 94 issues detected
View findings[
{
"reason": "Action perpolymath/standards/.github/workflows/governance-reusable.yml@main\n needs attention",
"type": "unpinned_action",
"file": "governance.yml",
"action": "pin_sha",
"rule_module": "workflow_audit",
"severity": "medium"
},
{
"reason": "Issue in boj-build.yml",
"type": "missing_timeout_minutes",
"file": "boj-build.yml",
"action": "flag",
"rule_module": "workflow_audit",
"severity": "medium"
},
{
"reason": "Issue in cflite-pr.yml",
"type": "missing_timeout_minutes",
"file": "cflite-pr.yml",
"action": "flag",
"rule_module": "workflow_audit",
"severity": "medium"
},
{
"reason": "Issue in codeql.yml",
"type": "missing_timeout_minutes",
"file": "codeql.yml",
"action": "flag",
"rule_module": "workflow_audit",
"severity": "medium"
},
{
"reason": "Issue in containers.yml",
"type": "missing_timeout_minutes",
"file": "containers.yml",
"action": "flag",
"rule_module": "workflow_audit",
"severity": "medium"
},
{
"reason": "Issue in containers.yml",
"type": "missing_timeout_minutes",
"file": "containers.yml",
"action": "flag",
"rule_module": "workflow_audit",
"severity": "medium"
},
{
"reason": "Issue in dco.yml",
"type": "missing_timeout_minutes",
"file": "dco.yml",
"action": "flag",
"rule_module": "workflow_audit",
"severity": "medium"
},
{
"reason": "Issue in dogfood-gate.yml",
"type": "missing_timeout_minutes",
"file": "dogfood-gate.yml",
"action": "flag",
"rule_module": "workflow_audit",
"severity": "medium"
},
{
"reason": "Issue in dogfood-gate.yml",
"type": "missing_timeout_minutes",
"file": "dogfood-gate.yml",
"action": "flag",
"rule_module": "workflow_audit",
"severity": "medium"
},
{
"reason": "Issue in dogfood-gate.yml",
"type": "missing_timeout_minutes",
"file": "dogfood-gate.yml",
"action": "flag",
"rule_module": "workflow_audit",
"severity": "medium"
}
]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.
Summary
src/app/proven/ProvenError.res(32 LoC) to Mode-A AffineScript atmigration/app/proven/ProvenError.affine.toString. No FFI, no cross-module deps, no Tea_/Pixi/Gossamer surface.affinescript checkpasses.Adjacent to #110
This is a small single-file follow-up to PR #110 (migration/shared/PortNames.affine). Same megaport STEP 8 context, different subdirectory (
migration/app/proven/vsmigration/shared/), and self-contained so it can land independently.Translation choices
{operation}→ explicit#{operation: operation}(AS records require it)(~name: T)→ positional(name: T)(AS has no labels)`[${a}] ${b}`→"[" ++ a ++ "] " ++ b(no JS templates)What this PR is NOT
Does not replace
src/app/proven/ProvenError.res. Consumers (SafeFloat, SafeJson, SafeAngle) still reference the .res. Those ports need cross-moduleuseresolution (affinescript#228 family) before they can swap to the .affine.Refs
Test plan
affinescript check migration/app/proven/ProvenError.affine→ "Type checking passed"migration/app/proven/addition