8000 fix: master CI red + live e2e run 8 (second intent) gate false positives by adeelahmad · Pull Request #12 · adeelahmad/aloop · GitHub
[go: up one dir, main page]

Skip to content

fix: master CI red + live e2e run 8 (second intent) gate false positives - #12

Merged
adeelahmad merged 4 commits into
masterfrom
claude/project-thread-qerfr9
Oct 17, 2026
Merged

adeelahmad merged 4 commits into
masterfrom
claude/project-thread-qerfr9

Conversation

@adeelahmad
@adeelahmad adeelahmad commented Oct 17, 2026 •
Copy link
Copy Markdown
Owner

Requested by Adeel · project thread

Before:

  • Master CI failed two SCAFFOLD conformance cases that pass locally.
  • Live e2e run 8 used a second intent, wordfreq: two dependent stories, counting and then top-N. It passed 12/12 in 18m05s for $1.53, but workers hit 54 blocks they could not fix.

After: all three causes are fixed, and make e2e-live YES=1 INTENT=wordfreq is now a supported run.

How:

  • Scaffold gate: without ctx-symbols, its grep fallback located a symbol with (fn|…).*sym. That also matched fn sub_works in tests/, and the result depended on directory order. The fallback now uses the same name-anchored match as symbol_count.
  • path_matches_any: it split scope globs with pathname expansion on, so tests/** turned into whatever files existed in the cwd. An in-scope tests/common/mod.rs was then blocked, 29 times in run 8. Globs are now read without expansion.
  • ctx-symbols conflicts: it reported mod common; and local helpers in separate integration-test files as HIGH duplicates, which halted the structural review 57 times. Each tests/*.rs file is its own crate, so a name that appears once per test file is no longer flagged. A test that redefines a src/ symbol is still HIGH. The grep fallback in gate-structural-integrity now skips tests/.

Evidence:

  • New conformance case: GREEN inside a dir/** scope is accepted. It failed first, then passed; the suite is 44/44.
  • Two new ctx-symbols unit tests; the crate's suite is 19/19.
  • On run 8's repo, ctx-symbols conflicts reports 0 HIGH findings, down from 2 names repeated across every review.
  • make ci is green locally.

🤖 Generated with Claude Code

https://claude.ai/code/session_015QxyVf3NgwsgRyYpBgDDTC

Without ctx-symbols, gate-scaffold-verify found a symbol's file with `(fn|...).*sym`,
which also matched `fn sub_works` in tests/. Which file came first depended on
directory order, so master CI failed two conformance cases that pass locally.
It now uses the same name-anchored definition match as symbol_count.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015QxyVf3NgwsgRyYpBgDDTC
make e2e-live YES=1 INTENT=wordfreq. Checks that planning made both stories.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015QxyVf3NgwsgRyYpBgDDTC
…ged as duplicates

Live e2e run 8 (wordfreq, two stories): 12/12 but 54 blocks.
- path_matches_any split globs with pathname expansion on, so `tests/**` became the files
  that existed and an in-scope tests/common/mod.rs was blocked (29 GREEN blocks).
- ctx-symbols conflicts flagged `mod common;` and local helpers in separate integration-test
  crates as HIGH duplicates (57 structural-review halts). The grep fallback skips tests/ too.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015QxyVf3NgwsgRyYpBgDDTC
@adeelahmad adeelahmad changed the title fix: scaffold gate located a test fn instead of the stub (master CI red) fix: master CI red + live e2e run 8 (second intent) gate false positives Oct 17, 2026
Live e2e run 9 (wordfreq): 12/12, 29 blocks.
- ensure-tools stamped its build with the plugin version only, so the ctx-symbols fix
  never reached the run. The stamp now includes a fingerprint of the tools' sources.
  scripts/test/ensure-tools.test.py (fake cargo).
- The planner named story dirs S1-01/ and retried 56 times on a bare 'no story dir'.
  gate-stage2-complete now names the expected sN-NN-<slug>/ and the misnamed dir it found;
  the planner persona states the naming.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015QxyVf3NgwsgRyYpBgDDTC
@adeelahmad
adeelahmad merged commit 2a97f36 into master Oct 17, 2026
4 checks passed
adeelahmad pushed a commit that referenced this pull request Oct 18, 2026
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014j4wLin3oJTtnvjE9Lq2VV
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.

2 participants

0