Repository navigation
Add atomic wiki page patching - #57
Merged
Changyong Gong (chagong) merged 1 commit intoOct 19, 2026
Merged
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
🟢 Approval recommended
No blocking issues remain; bounded patch validation reuses existing authorization and atomic publication safeguards.
No open issues 🎉
What changed in this PR
Adds exact-match wiki page patching so IssueLens can update existing team memory without regenerating whole pages.
Changes:
- Validates pinned page SHAs and unique, non-overlapping replacements before atomic publication.
- Exposes patching only to the team-memory writer, retaining existing authorization and publication safeguards.
- Updates telemetry, tests, prompts, policy, and documentation.
| File | Description |
|---|---|
| tests/test_telemetry.py | Tests patch destination attribution. |
| tests/test_team_memory_instructions.py | Verifies writer access and reader restrictions. |
| tests/test_mcp_tool_documentation.py | Includes patching among documented writes. |
| telemetry.py | Tracks patch operations as wiki writes. |
| skills/team-memory/SKILL.md | Explicitly prohibits reader patching. |
| skills/issuelens-config/SKILL.md | Restricts patching to authorized maintenance. |
| main.py | Enables patching for the team-memory writer. |
| github_app_mcp/tests/test_wiki.py | Tests patch preservation, conflicts, and limits. |
| github_app_mcp/tests/test_wiki_transport.py | Adds a patch test helper. |
| github_app_mcp/tests/test_wiki_client.py | Tests patch authentication and policy enforcement. |
| github_app_mcp/tests/test_stdio.py | Updates writer discovery expectations. |
| github_app_mcp/tests/test_server.py | Tests patch schema, routing, and access gates. |
| github_app_mcp/src/issuelens_github_mcp/wiki.py | Implements bounded exact replacements and atomic publication. |
| github_app_mcp/src/issuelens_github_mcp/server.py | Exposes the writer-only patch tool. |
| github_app_mcp/src/issuelens_github_mcp/outcomes.py | Classifies patching as a write operation. |
| github_app_mcp/src/issuelens_github_mcp/github.py | Shares authorization between patch and full-page writes. |
| github_app_mcp/README.md | Documents patch usage and limits. |
| examples/team-memory.md | Demonstrates patch-first maintenance. |
| docs/guide.md | Explains exact-patch workflows. |
| agents/team-memory.md | Prefers patches for suitable existing pages. |
| agents/issuelens.md | Recognizes authorized patch maintenance. |
| .github/issuelens/team-memory.md | Updates repository maintenance policy. |
| .github/copilot-instructions.md | Documents the additional writer capability. |
Review effort: Balanced
Changyong Gong (chagong)
deleted the
chagong-issuelens-telemetry-errors
branch
October 19, 2026 05:56
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.
Summary
patch_wiki_pagesfor bounded exact-match updates to existing wiki pages without model-generated whole-page replacementsneeds-reviewsolely because an existing page is largeValidation
git diff --checkpassedThe unfiltered Windows application suite remains locally blocked only by missing
jqin the executable workflow tests and an unrelated Windows packaging-test harness limitation.