Skip to content

THROWAWAY evidence probe for #2767 — do not merge - #2775

Closed
itomek wants to merge 1 commit into
evidence/2767-fake-basefrom
evidence/2767-throwaway-head
Closed

itomek wants to merge 1 commit into
evidence/2767-fake-basefrom
evidence/2767-throwaway-head

Conversation

@itomek

@itomek itomek commented Aug 4, 2026

Copy link
Copy Markdown
Collaborator

Throwaway PR used only to capture before/after CI evidence for #2767 (PR base-branch trigger gap + required checks gate). Base is intentionally not main. Will be closed and both branches deleted immediately after capture.

@github-actions github-actions Bot added devops DevOps/infrastructure changes tests Test changes security Security-sensitive changes cpp agents agent::email Email agent changes labels Aug 4, 2026
@itomek itomek added the ready_for_ci Run CI workflows on draft PR without requesting review label Aug 4, 2026
itomek added a commit that referenced this pull request Aug 4, 2026
Live evidence on the throwaway PR (#2775) surfaced a real bug: the bare
'Test' prefix (test_hub_agents.yml's matrix-templated job) was also
matching OTHER prefix-mode jobs' rendered names (Test Apps Build (jira),
Test MCPAgent (ubuntu-latest)) because the reserved-names guard only
covered static names, not other prefixes. The verdict came out right that
run (both were legitimately still skipped), but the failure message
misattributed which job was actually failing.

Replaces the reserved-names dict with a general most-specific-owner rule:
every check-run name belongs to whichever job's matcher matches it most
specifically (exact beats any prefix; among prefixes, the longer one
wins), computed across every job in every workflow file regardless of
exclude or trigger type.
itomek added a commit that referenced this pull request Aug 4, 2026
Live evidence on the throwaway PR (#2775) surfaced a real bug: the bare
'Test' prefix (test_hub_agents.yml's matrix-templated job) was also
matching OTHER prefix-mode jobs' rendered names (Test Apps Build (jira),
Test MCPAgent (ubuntu-latest)) because the reserved-names guard only
covered static names, not other prefixes. The verdict came out right that
run (both were legitimately still skipped), but the failure message
misattributed which job was actually failing.

Replaces the reserved-names dict with a general most-specific-owner rule:
every check-run name belongs to whichever job's matcher matches it most
specifically (exact beats any prefix; among prefixes, the longer one
wins), computed across every job in every workflow file regardless of
exclude or trigger type.
@github-actions

github-actions Bot commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

🟡 Two "throwaway" probe comments are still present in production source files and will merge into main if not removed.

Both comments explicitly say they should be deleted — one says "deleted immediately after capture", the other "deleted with the evidence branch" — but they're still in the diff. This isn't a runtime correctness issue, but merging intentionally-temporary noise into two core files violates the project's inline-comment convention (no issue-number references, no task-context comments) and leaves permanent rot.

🔍 Technical details

hub/agents/email/python/gaia_agent_email/agent.py:2076-2079 — four-line block after __all__ referencing issue #2767, explicitly described as "deleted immediately after capture."

src/gaia/agents/base/agent.py:3 — comment on line 3 of the file header reading "Throwaway evidence probe for #2767 — deleted with the evidence branch."

Both should be removed before merge. Neither has any effect on behavior, but both violate CLAUDE.md's rule against task-reference comments ("Don't reference the current task, fix, or callers … since those belong in the PR description and rot as the codebase evolves").

@itomek
itomek force-pushed the evidence/2767-throwaway-head branch from 2752ab5 to 6640610 Compare August 4, 2026 01:44
@itomek
itomek marked this pull request as ready for review August 4, 2026 02:01
@itomek
itomek requested a review from kovtcharov-amd as a code owner August 4, 2026 02:01
@itomek
itomek marked this pull request as draft August 4, 2026 02:02
@itomek itomek self-assigned this Aug 4, 2026
@github-actions

github-actions Bot commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Verdict: Approve — this is a deliberate throwaway CI-validation probe for #2767, and it does exactly what it says.

The PR adds two self-describing "throwaway evidence probe" comments — one at the end of the email agent, one near the top of the base agent — purely to prove the widened pull_request trigger fires the email suites on a non-main-based PR. No runtime behavior changes; both files are comment-only. The one thing to be sure of: these comments must not land on main — the diff itself says the PR and its branches are deleted right after the CI capture, so this should be closed (not merged) once the trigger is confirmed.

Note: I couldn't run gh pr view 2775 — Bash is failing in this environment with a bwrap: Can't create file at /home/.mcp.json sandbox error on every command. Review is based on the diff, file list, and evidence bundle only.

Real-world evidence

N/A — comment-only change, no CLI/API/MCP/UI surface touched (the evidence-bundle.md in the tree confirms "N/A — no CLI/API/MCP surface changed"). The PR's actual purpose is the CI signal: whether the widened pull_request trigger runs the email + base-agent suites on this branch. That's verified by the workflow run on this PR, not by an artifact I can relay here. Verdict rests on static review of the two comments.

🔍 Technical details

Changed files

  • hub/agents/email/python/gaia_agent_email/agent.py:2075 — 4-line comment appended after __all__.
  • src/gaia/agents/base/agent.py:3 — 1-line comment after the SPDX header.

Issues

🟢 Minor — Throwaway comments must be removed, not merged (agent.py:3, gaia_agent_email/agent.py:2075). Both comments reference an issue number and task inline, which normally violates the CLAUDE.md convention ("Don't reference the current task, fix, or callers inline"). That's moot because they're explicitly ephemeral — but it means this branch should be closed/deleted after the CI trigger is confirmed rather than merged into main. If for any reason the trigger validation needs to persist, do it in a CI/workflow file, not as orphan comments in agent source.

No correctness, security, or breaking-change concerns — the change is inert by construction.

Strengths

  • The probe is honest and self-documenting: each comment states what it's for, that it has no runtime effect, and that it's deleted after capture. That's exactly the right way to make a throwaway CI-validation change auditable.
  • Minimal blast radius — touches two files with pure comments, nothing importable or executable changes.

itomek added a commit that referenced this pull request Aug 4, 2026
Live evidence on the throwaway PR (#2775) showed this: the repo's
auto-labeler added labels shortly after the PR opened, firing a second
labeled event for the same SHA while the gate was still polling. With
cancel-in-progress: true, that killed the in-progress run before it ever
called post_check_run() — benign here only because a further run
happened to supersede it. If a cancelled run is ever the LAST triggering
event for a SHA, the check silently never posts at all: a fourth way to
fail open, inside the fix for the other three. Queuing costs run time on
a burst of events but guarantees every trigger eventually gets a real,
posted verdict.
@itomek

itomek commented Aug 4, 2026

Copy link
Copy Markdown
Collaborator Author

Confirmed — this is a deliberate throwaway CI-validation probe for #2767. Closing without merging now that the trigger is verified, so the two probe comments never reach main.

@itomek

itomek commented Aug 4, 2026

Copy link
Copy Markdown
Collaborator Author

Closing unmerged — throwaway evidence PR only, purpose served.

@itomek itomek closed this Aug 4, 2026
@itomek
itomek deleted the evidence/2767-throwaway-head branch August 4, 2026 02:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent::email Email agent changes agents cpp devops DevOps/infrastructure changes ready_for_ci Run CI workflows on draft PR without requesting review security Security-sensitive changes tests Test changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant