Skip to content

[agent] count dynamically imported app code in the coder test-substance gate - #533

Merged
r4yharris-agent-coder[bot] merged 1 commit into
mainfrom
agents/substance-dynamic-import
Oct 11, 2026
Merged

r4yharris-agent-coder[bot] merged 1 commit into
mainfrom
agents/substance-dynamic-import

Conversation

@r4yharris-agent-coder

Copy link
Copy Markdown
Contributor

fix: count dynamically imported app code in the coder test-substance gate

Model

GPT-6.1-Sol

Summary

  • FEATURE_SPEC 5.3: the repeat live medium M3 run burned its 20-minute budget because the excellence gate flagged every parse-csv test as "never calls imported app code". The tests called parseCsv, bound by const { parseCsv } = await import(pathToFileURL(...)), which the gate did not recognise (it read only static imports), so the coder was sent through repeated repair passes for passing, meaningful tests.
  • parseImports now treats const|let|var <binding> = await import(<non-builtin>) as an app import, including expression specifiers and destructured renames. Built-in and harness specifiers are still excluded, and a test that asserts only on values it built is still flagged.

Verification

  • Node 20: test-substance and excellence suites pass (37); the new test fails without the change.

Co-authored-by: Copilot 223556219+Copilot@users.noreply.github.com

AI-Agent: r4yharris-agent-coder
AI-Model: GPT-6.1-Sol

1|github-copilot|GPT-6.1-Sol@-|x|-/1000000|-|ghcp-20261011-76124|substance-dynamic-import

…gate

## Model
GPT-6.1-Sol

## Summary
- FEATURE_SPEC 5.3: the repeat live medium M3 run burned its 20-minute budget because the excellence gate flagged every parse-csv test as "never calls imported app code". The tests called parseCsv, bound by `const { parseCsv } = await import(pathToFileURL(...))`, which the gate did not recognise (it read only static imports), so the coder was sent through repeated repair passes for passing, meaningful tests.
- parseImports now treats `const|let|var <binding> = await import(<non-builtin>)` as an app import, including expression specifiers and destructured renames. Built-in and harness specifiers are still excluded, and a test that asserts only on values it built is still flagged.

## Verification
- Node 20: test-substance and excellence suites pass (37); the new test fails without the change.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

AI-Agent: r4yharris-agent-coder
AI-Model: GPT-6.1-Sol
AI-Run: 1|github-copilot|GPT-6.1-Sol@-|x|-/1000000|-|ghcp-20261011-76124|substance-dynamic-import
@r4yharris-agent-coder
r4yharris-agent-coder Bot marked this pull request as ready for review October 11, 2026 19:38
@r4yharris-agent-coder
r4yharris-agent-coder Bot merged commit c725e56 into main Oct 11, 2026
2 checks passed
@r4yharris-agent-coder
r4yharris-agent-coder Bot deleted the agents/substance-dynamic-import branch October 11, 2026 19:39
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.

0 participants