Skip to content

fix(main): thread imported type schemes into check_program (#135)#174

Merged
hyperpolymath merged 1 commit into
mainfrom
fix/135-import-type-threading
May 18, 2026
Merged

fix(main): thread imported type schemes into check_program (#135)#174
hyperpolymath merged 1 commit into
mainfrom
fix/135-import-type-threading

Conversation

@hyperpolymath
Copy link
Copy Markdown
Owner

check_file discarded the resolve type_ctx and called check_program without ?import_types → cross-module imported values resolved but were 'Unbound variable' at typecheck. Now passes ~import_types:type_ctx.name_types in both branches.

Completes the ADR-011 cross-module value-import path at typecheck (io + every use prelude::{...} consumer). Suite 233/233, zero regression; stdlib 12/19 (io/collections/result now fail deeper at genuine type level — progress, no green regressed).

Refs #128

check_file discarded the resolve type_ctx and called check_program
without ?import_types, so cross-module imported values (e.g. split
imported by io.affine via ADR-011 `use string::{...}`) resolved but
were 'Unbound variable' at typecheck. Pass
~import_types:type_ctx.name_types in both check_file branches.

Completes the ADR-011 cross-module value-import path at the typecheck
stage (affects io and every `use prelude::{...}` consumer). Full suite
233/233, zero regression; stdlib 12/19 (io/collections/result now fail
deeper at genuine type-level, no green regressed).

Refs #128
@hyperpolymath hyperpolymath merged commit 6e182f9 into main May 18, 2026
11 of 12 checks passed
@hyperpolymath hyperpolymath deleted the fix/135-import-type-threading branch May 18, 2026 00:57
@github-actions
Copy link
Copy Markdown

🔍 Hypatia Security Scan

Findings: 44 issues detected

Severity Count
🔴 Critical 12
🟠 High 21
🟡 Medium 11

⚠️ Action Required: Critical security issues found!

View findings
[
  {
    "reason": "Stray AI.a2ml in root -- use 0-AI-MANIFEST.a2ml only",
    "type": "banned",
    "file": "AI.a2ml",
    "action": "delete",
    "rule_module": "root_hygiene",
    "severity": "high"
  },
  {
    "reason": "Superseded by 0-AI-MANIFEST.a2ml",
    "type": "banned",
    "file": "AI.djot",
    "action": "delete",
    "rule_module": "root_hygiene",
    "severity": "high"
  },
  {
    "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/affinescript/affinescript/affinescript-deno-test/example/smoke_driver.ts",
    "action": "flag",
    "rule_module": "cicd_rules",
    "severity": "critical"
  },
  {
    "reason": "TypeScript file detected -- banned language",
    "type": "banned_language_file",
    "file": "/home/runner/work/affinescript/affinescript/affinescript-deno-test/cli.ts",
    "action": "flag",
    "rule_module": "cicd_rules",
    "severity": "critical"
  },
  {
    "reason": "TypeScript file detected -- banned language",
    "type": "banned_language_file",
    "file": "/home/runner/work/affinescript/affinescript/affinescript-deno-test/mod.ts",
    "action": "flag",
    "rule_module": "cicd_rules",
    "severity": "critical"
  },
  {
    "reason": "TypeScript file detected -- banned language",
    "type": "banned_language_file",
    "file": "/home/runner/work/affinescript/affinescript/affinescript-deno-test/lib/compile.ts",
    "action": "flag",
    "rule_module": "cicd_rules",
    "severity": "critical"
  },
  {
    "reason": "TypeScript file detected -- banned language",
    "type": "banned_language_file",
    "file": "/home/runner/work/affinescript/affinescript/affinescript-deno-test/lib/runner.ts",
    "action": "flag",
    "rule_module": "cicd_rules",
    "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