Personal Telegram developer console for GitHub

feat/studio-g0-foundation
audit/commit-drilldown audit/finalize-workspace-menu-security audit/ops-actionability audit/pr-menu-consolidation audit/status-menu-consolidation audit/telegram-menu-e2e audit/telegram-menu-e2e-wave2 chore/actions-node24-runtime cleanup/remove-diag design/cloudflare-ops-read docs/control-plane-2-7-design docs/guide-v2-1-sync docs/menu-audit-final-sync docs/phase2-acceptance-closeout docs/phase2-multifile-design feat/bootstrap-worker feat/cloudflare-ops-read feat/cp2-multifile-final feat/cp2-multifile-workspace feat/cp3-github-write-final feat/cp4-cloudflare-ops-final feat/cp5-cicd-control-plane feat/cp6-incident-manager feat/cp7-automation-engine feat/deep-file-browser feat/final-delivery-16-20 feat/github-advanced-read feat/in-app-guide-v2 feat/navigation-recovery-ux-v2 feat/ops-console-v2-1 feat/persistent-menu-code-input feat/phase2-multifile-workspace feat/phase2-multifile-workspace-v2 feat/plugin-foundation-v1 feat/safe-github-ops feat/self-register-webhook feat/studio-g0-foundation feat/telegram-main-inline-menu feat/telegram-pr-merge feat/ux-platform-8-12 feat/v3a-readonly-copilot feat/workspace-file-upload feature/mobile-repo-browser feature/multi-file-change-set fix/approval-expiry-feedback fix/callback-resilience-and-docs fix/ci-actions-pagination fix/cloudflare-fetch-binding fix/editor-request-body-cap fix/editor-safe-file-options fix/issues-permission-release-empty-ux fix/main-menu-callback-fallback fix/phase2-file-editor-selection fix/phase2-final-ux fix/phase2-workspace-ref-persistence fix/production-auto-deploy fix/provider-write-error-feedback fix/repository-id-navigation-fallback fix/repository-pr-navigation fix/telegram-callback-updates fix/telegram-runtime-diagnostics fix/workspace-editor-flow-v2 fix/workspace-recovery-validation hardening/ci-zero-test-telegram-token hardening/pr1-destructive-totp hardening/pr2-kill-switch main multifile-workspace nexa/edit-BwJEIIY3PW nexa/edit-IPHT8irO7b nexa/edit-b4Od3BIMYd p2-multifile phase2-20261005 phase2-20261005-a phase2-20261005-b phase2-20261005-c phase2-20261005-d phase2-20261005-e phase2-20261005-f phase2-20261005-g phase2-20261005-h phase2-20261005-i phase2-20261005-j phase2-20261005-k phase2-20261005-l phase2-20261005-m phase2-20261005-n phase2-20261005-o phase2-20261005-p phase2-20261005-q phase2-20261005-r phase2-20261005-s phase2-20261005-t phase2-20261005-u phase2-20261005-v phase2-20261005-w phase2-20261005-x phase2-20261005-y phase2-20261005-z phase2-acceptance-closeout phase2-add-file-hotfix phase2-change-set phase2-design-20261005 phase2-design-final phase2-implementation phase2-multifile-implementation phase2-multifile-spec phase2-spec-final phase2-workspace phase2/multifile-workspace plan/nexa-studio-v2-reviewed security/remove-telegram-setup spec/repository-workspace-editor v3a/multifile work/multifile
md 119 lines 5.52 KB
Rendered Raw
1 # G0 R-27 read inventory
2
3 Baseline reviewed: main `5d1c083d326db327cc3973a9d3adecc1d8092c91` plus pending PR #63 and PR #64, integrated locally before behavior changes. Three focused audit agents and the coordinator read the required modules and all baseline tests in full. This is an AI-assisted source review, not a human security review, a CI result, or a device smoke.
4
5 The list below covers the required files at formatting commit `40e14f7`; additional core/DO files were also reviewed. New implementation tests were read during implementation and review.
6
7 ```text
8 .github/workflows/ci.yml
9 .github/workflows/deploy.yml
10 src/bot-legacy.js
11 src/bot.js
12 src/cloudflare-menu.js
13 src/core/totp.js
14 src/core/workspace-policy.js
15 src/guide-menu.js
16 src/kill-switch-bot.js
17 src/menu.js
18 src/ops-menu.js
19 src/platform-menu.js
20 src/plugins/cloudflare/manifest.js
21 src/plugins/cloudflare/plugin.js
22 src/plugins/cloudflare/service.js
23 src/plugins/github/manifest.js
24 src/plugins/github/plugin-legacy.js
25 src/plugins/github/plugin.js
26 src/plugins/github/workspace-commit.js
27 src/plugins/github/workspace.js
28 test/action-policy.test.js
29 test/approval-expiry-ui.test.js
30 test/approval-flow.test.js
31 test/approval-provider-error-ui.test.js
32 test/approval.test.js
33 test/audit.test.js
34 test/automation.test.js
35 test/bot.test.js
36 test/bounded-json.test.js
37 test/cicd-control-plane.test.js
38 test/cloudflare-deploy-config.test.js
39 test/cloudflare-menu.test.js
40 test/cloudflare-ops-completion.test.js
41 test/cloudflare-plugin.test.js
42 test/cloudflare-service.test.js
43 test/destructive-second-factor.test.js
44 test/durable-replay.test.js
45 test/final-acceptance-contract.test.js
46 test/final-delivery.test.js
47 test/github-advanced-plugin.test.js
48 test/github-advanced-read-error-ui.test.js
49 test/github-advanced-read.test.js
50 test/github-advanced-write-completion.test.js
51 test/github-issues-pagination.test.js
52 test/github-live-findings.test.js
53 test/github-pagination.test.js
54 test/github-plugin.test.js
55 test/github-pr-merge.test.js
56 test/github-repository-fallback.test.js
57 test/github-workspace-approval.test.js
58 test/github-workspace-bot-approval.test.js
59 test/github-workspace-file-upload.test.js
60 test/github-workspace-integration.test.js
61 test/github-workspace-provider-error-ui.test.js
62 test/github-workspace-provider.test.js
63 test/github-workspace-ui.test.js
64 test/github.test.js
65 test/help-guide.test.js
66 test/incidents.test.js
67 test/index.test.js
68 test/kill-switch.test.js
69 test/menu.test.js
70 test/navigation.test.js
71 test/ops-console.test.js
72 test/phase2-controller.test.js
73 test/phase2-editor-multifile.test.js
74 test/phase2-multifile-acceptance.test.js
75 test/phase2-ready.test.js
76 test/platform-experience.test.js
77 test/plugin-registry.test.js
78 test/plugin-router.test.js
79 test/security.test.js
80 test/telegram-file-upload.test.js
81 test/telegram-menu-e2e.test.js
82 test/telegram-persistent-menu-input.test.js
83 test/telegram.test.js
84 test/workspace-approved-recovery.test.js
85 test/workspace-editor-dom-safety.test.js
86 test/workspace-editor-v2.test.js
87 test/workspace-editor-worker.test.js
88 test/workspace-multifile-commit.test.js
89 test/workspace-multifile.test.js
90 test/workspace-policy.test.js
91 test/workspace-recovery-validation.test.js
92 test/workspace-store-file-input.test.js
93 test/workspace-store.test.js
94 ```
95
96 Total required baseline files read: **86**.
97
98 ## Confirmed findings and disposition
99
100 - Compressed source: formatted in a separate commit; 116 executable JS ASTs and template values compared unchanged; baseline 282 tests passed before and after.
101 - Duplicate limit text/defaults: consolidated against WORKSPACE_EDITOR_LIMITS; old 3,000/12,000 values occur in historical Phase 1 plans rather than current policy.
102 - /health exposed version/runtime metadata and release version was hardcoded: addressed in G0 worker changes.
103 - Webhook had no update deduplication and returned 400 for handled errors: addressed with durable 24h at-most-once claims and metadata-only logs.
104 - Sensitive-path file previews leaked source into Telegram: withheld. Ordinary legacy previews/diffs still conflict with the strict full R-07 target and require the Mini App migration; not declared compliant.
105 - GitHub PR normalization dropped draft state: preserved so existing merge guard applies.
106 - Async status view was not awaited on text commands; Cloudflare delivery text had unmatched HTML: corrected with regressions.
107 - Unlock callbacks matched the lock suffix and had no signed Approval/TOTP: disabled fail-closed pending a complete verified unlock protocol; no insecure shortcut enabled.
108
109 ## Open safety backlog — require focused security review
110
111 1. **R-07:** migrate all source/draft/PR patch display from Telegram to the authenticated Mini App; ordinary source/diff messages still exist.
112 2. **Diff memory:** O(beforeLines × afterLines) allocation can exceed Worker memory for newline-heavy valid drafts. Add bounded diff algorithms/tests before expanding use.
113 3. **Automation:** step effects precede durable completion with no execution claim; concurrent resumes may repeat effects. Do not enable new write recipes.
114 4. **Incidents:** nontransactional read/await/write update may lose concurrent records.
115 5. **Delivery evidence:** current correlation accepts an unrelated runtime version at 100% once CI/deploy SHAs match; require independent version-to-SHA verification.
116 6. **TOTP/unlock:** per-user encryption and last-step replay protection, plus signed/TOTP unlock, remain R-17/R-25 work.
117 7. **G1/G2:** shared token/default owner, 20-repository cap, fixed commit identity, no D1/grants/sessions, no If-Match, 30-minute Workspace TTL and inline CSP are future contract gaps.
118
119 No one should infer that G0 or later gates passed from this inventory.