Personal Telegram developer console for GitHub

docs: add GitHub Advanced read design

davoodmehraban89 committed Oct 3, 2026 at 09:09 UTC fa2e5d059a820c0626daae40e3dac3549ee9b11d
1 file changed +35
docs/superpowers/specs/2026-10-03-github-advanced-read-design.md new
+35
@@ -0,0 +1,35 @@
1 +# GitHub Advanced READ Design
2 +
3 +## Goal
4 +Complete the READ side of the GitHub Advanced roadmap without weakening the existing owner-only policy or Safe Approval boundary.
5 +
6 +## Scope
7 +Owner-only Telegram views for:
8 +- workflow job detail and bounded failed-job logs
9 +- workflow run artifact metadata
10 +- branches and compare-to-default
11 +- pull request detail, changed-file summary, and checks
12 +- issues
13 +- releases
14 +- bounded pagination where list size can grow
15 +
16 +## Non-goals
17 +- No new provider mutation in this slice.
18 +- Workflow dispatch and specific-job rerun remain separate WRITE slices behind Safe Approval.
19 +- No secret, token, binary artifact download, or full unbounded log/diff rendering.
20 +
21 +## Architecture
22 +Extend `GitHubService` with bounded REST readers and a text-response helper for job logs. Extend the GitHub plugin with compact numeric/SHA callbacks and Telegram views. All callbacks resolve to declared `READ` actions before provider calls, preserving `resolve -> policy -> execute`.
23 +
24 +## Bounds and safety
25 +- List pages: 10-20 items, page clamped to 1..100.
26 +- Logs: keep a bounded tail and escape HTML; never emit raw binary.
27 +- PR file patches: summarize/truncate per file; do not dump full diffs.
28 +- Compare callbacks carry a 40-hex commit SHA rather than arbitrary branch text to stay under Telegram callback limits.
29 +- Provider failures remain explicit.
30 +
31 +## Acceptance
32 +- New service/API tests cover endpoint shapes, pagination bounds, text log handling, and invalid identifiers.
33 +- Plugin tests prove side-effect-free route resolution, manifest risk declarations, compact callbacks, bounded rendering, and repository navigation.
34 +- Full CI green, reviewed PR merged, exact main CI/deploy green, production Cloudflare version verified.
35 +- Owner-device smoke for READ navigation is required before calling the slice production-accepted.
\ No newline at end of file