ums: branch-scoping push fallback + docx-editing technique - #207
Merged
Conversation
Captured from the ucdavis/bcs #234 -> #237 session: - CLAUDE.md "Use the existing PR branch": add an exception for web/remote sessions where the proxy allows pushing only to the harness-assigned branch (HTTP 403 on any other branch). Fall back to a superseding PR off main rather than retrying the policy denial. - memories/tools.md: add a section on editing committed Office Open XML (.docx/.xlsx) to strip content -- edit document.xml plus the .rels hyperlink targets, then re-zip and verify. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EZu78dP2WgJYDFvGKwMJ5J
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Learnings captured from the ucdavis/bcs #234 → #237 session (fixing a force-committed
To dos on BCS.docx).Changes
CLAUDE.md— "Use the existing PR branch" gets an exception. Some web/remote sessions are scoped so the agent proxy allows pushing only to the harness-assigned branch; a push to the existing PR's branch returnsHTTP 403. In ums: worktree+submodule removal and gh sub-issue linking quirks #234 this blocked updating the PR'sto-dosbranch. New guidance: don't retry the policy denial — push the fix to the assigned branch, open a superseding PR offmain(rebuilt as a single clean commit so no sensitive history leaks), point the original PR at it, and close the original once the new one merges. That's exactly the ums: worktree+submodule removal and gh sub-issue linking quirks #234 → ums: draft-before-posting preference + Quarto manuscript Lua filter notes #237 path.memories/tools.md— new section on editing committed Office Open XML..docx/.xlsxare zip archives; to strip a sensitive link you editword/document.xml(body text) andword/_rels/document.xml.rels(the hyperlink target — the URL's address lives there, not just the visible text), then re-zip and verify. Used in ums: draft-before-posting preference + Quarto manuscript Lua filter notes #237 to remove an internal SharePoint URL and a server reference.I dropped a planned
version-checklabel-bypass note — #206 already corrected that inmain.🤖 Generated with Claude Code
https://claude.ai/code/session_01EZu78dP2WgJYDFvGKwMJ5J
Generated by Claude Code