Skip to content

decisions: RUN-040 post-merge supplement (HARD RULE 16 violation + mitigation)#36

Draft
vdineshk wants to merge 3 commits into
mainfrom
claude/jolly-galileo-ACx3v
Draft

decisions: RUN-040 post-merge supplement (HARD RULE 16 violation + mitigation)#36
vdineshk wants to merge 3 commits into
mainfrom
claude/jolly-galileo-ACx3v

Conversation

@vdineshk
Copy link
Copy Markdown
Owner

@vdineshk vdineshk commented May 13, 2026

Summary

Appends a post-merge supplement to decisions/2026-05-13-builder-run-040.md documenting a HARD RULE 16 (NO-SESSION-URLS-PUBLIC) violation discovered after PR #35 merged.

The violation: the PR-creation MCP tool used in PR #35 auto-appended a "Generated by Claude Code" provenance footer to the PR body containing a live session URL. The agent did not include this string in the body parameter — the harness inserted it after submission. The repo is public.

Mitigation already applied: the agent called update_pull_request on #35 immediately upon detection, replacing the body with a clean version. Verified clean via pull_request_read get.

Residual risk: GitHub's per-event audit history may still retain the original body. The merge commit and spec contents are clean — the violation lived only in the auto-generated PR-body footer.

Items requiring follow-up

  • Configure the agent harness to suppress the auto-generated provenance footer for public-repo PRs. Until configured, every PR re-introduces the same violation and requires post-hoc remediation.

Test plan

claude added 3 commits May 13, 2026 09:16
Documents a HARD RULE 16 (NO-SESSION-URLS-PUBLIC) violation
discovered after PR #35 merged: the PR-creation MCP tool
auto-appended a claude.ai session URL footer to the PR body
that was not in the body parameter the agent supplied. Public
repo. Mitigation applied immediately (update_pull_request to
replace the body with a clean version, verified clean).

Surfaces durable-fix recommendation as P1 item: configure the
agent harness to suppress the auto-generated provenance footer
for public-repo PRs.
The supplement describing the HARD RULE 16 violation itself contained
the literal pattern that triggers the rule. Rewords the description
to convey the same information without including the URL substring.
Sets attribution.pr and attribution.commit to empty strings so the
harness does not append the "Generated by Claude Code" provenance
text to PR bodies or commit-message trailers. Project-level so the
setting persists across all sessions in this repo.

This is the durable fix for the HARD RULE 16 (NO-SESSION-URLS-PUBLIC)
exposure that required reactive remediation on PR #35 and PR #36 —
the footer never gets added in the first place, so there is no
residual GitHub-event-history exposure window.
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