Skip to content

fix(affine): migrate record literals to #{ } (affinescript#218)#42

Merged
hyperpolymath merged 1 commit into
mainfrom
fix/rust-record-syntax
May 18, 2026
Merged

fix(affine): migrate record literals to #{ } (affinescript#218)#42
hyperpolymath merged 1 commit into
mainfrom
fix/rust-record-syntax

Conversation

@hyperpolymath
Copy link
Copy Markdown
Owner

AffineScript #218 (merged) made bare { a block; records use #{ }. Migrated the 4 expression-position record literals in src/ui/tea/panll_gui.affine (init return + 3 update match-arm Model values). Patterns/blocks unchanged. Verified parses clean under the new affinescript compiler.

Refs hyperpolymath/affinescript#218

AffineScript moved bare `{` in expression position to mean a block;
record/struct literals now use the `#{ … }` sigil (affinescript#218,
merged). Migrated the 4 expression-position record literals in
panll_gui.affine (panll_init return + 3 panll_update match-arm Model
constructions). Record *patterns* (match `{ current_pane: c, ... } =>`)
and blocks are unchanged. Parses clean under the new compiler.

Refs hyperpolymath/affinescript#218

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

@hyperpolymath hyperpolymath merged commit 3e968df into main May 18, 2026
13 of 21 checks passed
@hyperpolymath hyperpolymath deleted the fix/rust-record-syntax branch May 18, 2026 19:25
@github-actions
Copy link
Copy Markdown

🔍 Hypatia Security Scan

Findings: 64 issues detected

Severity Count
🔴 Critical 30
🟠 High 14
🟡 Medium 20

⚠️ Action Required: Critical security issues found!

View findings
[
  {
    "reason": "npm banned -- use Deno",
    "type": "banned",
    "file": "package-lock.json",
    "action": "delete",
    "rule_module": "root_hygiene",
    "severity": "high"
  },
  {
    "reason": "Stale AI session file -- delete",
    "type": "stale",
    "file": "GEMINI.md",
    "action": "delete",
    "rule_module": "root_hygiene",
    "severity": "medium"
  },
  {
    "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.yml",
    "action": "pin_sha",
    "rule_module": "workflow_audit",
    "severity": "high"
  },
  {
    "reason": "TypeScript file detected -- banned language",
    "type": "banned_language_file",
    "file": "/home/runner/work/panll/panll/scripts/mock-echidna.ts",
    "action": "flag",
    "rule_module": "cicd_rules",
    "severity": "critical"
  },
  {
    "reason": "TypeScript file detected -- banned language",
    "type": "banned_language_file",
    "file": "/home/runner/work/panll/panll/scripts/dev-server.ts",
    "action": "flag",
    "rule_module": "cicd_rules",
    "severity": "critical"
  },
  {
    "reason": "TypeScript file detected -- banned language",
    "type": "banned_language_file",
    "file": "/home/runner/work/panll/panll/scripts/bundle.ts",
    "action": "flag",
    "rule_module": "cicd_rules",
    "severity": "critical"
  },
  {
    "reason": "Nickel file missing SPDX-License-Identifier header (1 occurrences, CWE-1104)",
    "type": "ncl_missing_spdx",
    "file": "/home/runner/work/panll/panll/configs/config.ncl",
    "action": "flag",
    "rule_module": "code_safety",
    "severity": "medium"
  },
  {
    "reason": "JSON decode without validation (1 occurrences, CWE-20)",
    "type": "json_decode_no_validation",
    "file": "/home/runner/work/panll/panll/src/commands/CloudGuardCmd.res",
    "action": "flag",
    "rule_module": "code_safety",
    "severity": "critical"
  }
]

Powered by Hypatia Neurosymbolic CI/CD Intelligence

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