Personal Telegram developer console for GitHub

docs: checkpoint safe GitHub operator before merge

davoodmehraban89 committed Oct 3, 2026 at 07:29 UTC a0d402b448051d481d1d91620ca2e0c72c0999ad
1 file changed +143 -201
PROJECT_MEMORY.md
+143 -201
@@ -14,23 +14,26 @@
14 3. Prefer live evidence over chat memory.
15 4. Keep durable checkpoints documented here.
16 5. Never store secrets, tokens or private keys in the repository.
17 -
18 -## Architecture
19 -- `src/index.js` — Cloudflare Worker HTTP boundary; webhook secret, owner authorization, required Telegram transport checks and redacted runtime diagnostics.
20 -- `src/bot.js` — Telegram update/callback coordinator; constructs the plugin kernel, keeps callback acknowledgement best-effort, routes GitHub operations through policy, and retains compatibility paths for non-GitHub menus.
21 -- `src/core/plugin-registry.js` — validates plugin/action manifests and rejects duplicate IDs or invalid risk values.
22 -- `src/core/action-policy.js` — central `READ` / `WRITE` / `DESTRUCTIVE` policy evaluation.
23 -- `src/core/audit.js` — best-effort structured action audit with recursive secret redaction.
24 -- `src/core/router.js` — policy-enforcing plugin router using the security-critical `resolve -> policy -> execute` flow.
25 -- `src/plugins/github/manifest.js` — GitHub plugin capability/action declarations.
26 -- `src/plugins/github/plugin.js` — GitHub plugin adapter around existing `GitHubService` and `MenuManager` behavior.
27 -- `src/telegram.js` — Telegram Bot API client; explicit error propagation, fail-closed token handling and Cloudflare-safe default `fetch` invocation.
28 -- `src/github.js` — authenticated GitHub REST reader; explicit errors, numeric repository-id resolution, tree/blob access.
29 -- `src/menu.js` — hierarchical stateless inline menus, one-message editing, repository/file browser.
30 -- `src/config.js` — non-secret static config.
31 -- `.github/workflows/ci.yml` — Node 22 tests, official GitHub Actions v7 releases and non-zero test-discovery guard.
32 -- `.github/workflows/deploy.yml` — production Cloudflare Worker deploy after successful CI on `main`; deploys the exact verified commit.
33 -- `wrangler.jsonc` — Worker configuration; `keep_vars: true`, workers.dev enabled and observability enabled.
17 +6. Never call a phase production-accepted from CI alone; deployment and live-runtime evidence are separate gates.
18 +
19 +## Current Architecture
20 +- `src/index.js` — Cloudflare Worker HTTP boundary; webhook-secret/owner checks, health/status, redacted runtime diagnostics, and named export of `ApprovalReplayGuard`.
21 +- `src/bot.js` — Telegram update/callback coordinator and Safe Actions confirmation lifecycle.
22 +- `src/core/plugin-registry.js` — plugin/action manifest validation.
23 +- `src/core/action-policy.js` — central `READ` / `WRITE` / `DESTRUCTIVE` policy.
24 +- `src/core/audit.js` — structured best-effort audit with recursive redaction.
25 +- `src/core/router.js` — security-critical `resolve -> policy -> execute` router; provider work must remain deferred until policy allows it.
26 +- `src/core/approval.js` — compact HMAC approval tokens, owner/action/risk/expiry binding, and fail-closed consume.
27 +- `src/core/durable-replay-store.js` — Worker-side adapter for persistent approval consume semantics.
28 +- `src/durable/approval-replay-guard.js` — Durable Object atomic one-time consume + expiry cleanup.
29 +- `src/plugins/github/manifest.js` — GitHub action/risk declarations.
30 +- `src/plugins/github/plugin.js` — GitHub repository/file/Actions UI and safe workflow controls.
31 +- `src/github.js` — authenticated GitHub REST client; read APIs plus controlled Actions write APIs.
32 +- `src/telegram.js` — Telegram Bot API client with explicit error propagation and Cloudflare-safe fetch invocation.
33 +- `src/menu.js` — bounded stateless inline views and file browser.
34 +- `.github/workflows/ci.yml` — Node 22 test gate with non-zero test-discovery guard.
35 +- `.github/workflows/deploy.yml` — exact-commit Cloudflare deployment after successful `main` CI.
36 +- `wrangler.jsonc` — Worker config plus SQLite Durable Object binding `APPROVAL_REPLAY_GUARD` -> `ApprovalReplayGuard`.
37
38 ## Runtime Configuration
39 Worker runtime names:
@@ -39,201 +42,140 @@ Worker runtime names:
42 - `OWNER_TELEGRAM_ID`
43 - `GITHUB_TOKEN`
44 - optional `GITHUB_OWNER`
45 +- optional `APPROVAL_SIGNING_SECRET`; approval falls back to `TELEGRAM_WEBHOOK_SECRET` when absent
46 +- `APPROVAL_REPLAY_GUARD` Durable Object binding from Wrangler config
47
48 GitHub Actions deployment secrets:
49 - `CLOUDFLARE_API_TOKEN`
50 - `CLOUDFLARE_ACCOUNT_ID`
51
47 -## Verified Security / Data Trust
48 -- Webhook only at `POST /telegram/webhook`.
49 -- Missing webhook secret, owner ID or bot token fails closed.
50 -- Wrong Telegram secret returns 403.
52 +## Security / Data-Trust Invariants
53 +- Telegram webhook is `POST /telegram/webhook`; missing required security/transport configuration fails closed.
54 - Non-owner updates are ignored before private-data access.
52 -- GitHub token absence and GitHub API failures are explicit errors; no fabricated fallback data.
53 -- Telegram network/API failures propagate; fake transport success is prohibited.
54 -- Runtime diagnostic logs redact Telegram, webhook and GitHub secrets.
55 -- Temporary setup/diagnostic exposure is disabled in source/tests.
56 -- Operational UI does not invent SLA, latency or external health claims.
57 -- Plugin manifests must declare action risk as `READ`, `WRITE`, or `DESTRUCTIVE`.
58 -- Undeclared/unknown plugin actions are denied.
59 -- `WRITE` and `DESTRUCTIVE` plugin actions are not executed before an approval flow exists.
60 -- Plugin route resolvers must be side-effect-free; provider/view work is deferred to `execute()` after policy evaluation.
61 -
62 -## Telegram UX / GitHub Reader
63 -- `/start` creates the initial menu message.
64 -- Callback navigation uses `editMessageText` on the same Telegram message.
65 -- Callback acknowledgement failure/staleness no longer blocks in-place navigation.
66 -- Main sections: Repositories, Status, Tools, Settings, Security.
67 -- Repository sections: Files, Pull Requests, Commits, Actions status, Back.
68 -- Back navigation and breadcrumb-style text exist.
69 -- Repository callbacks use numeric GitHub repository IDs.
70 -- Folder navigation uses `tree:<repoId>:<sha>` and file previews use `blob:<repoId>:<sha>`.
71 -- Tree/blob SHA input is validated.
72 -- File previews are HTML-escaped and bounded; oversized/non-base64 blobs are not rendered directly.
73 -- Directory interactive entries are capped at 30 and omitted counts are disclosed.
74 -
75 -## Production Deploy Automation — Verified 2026-10-02
76 -- PR `#10` added `.github/workflows/deploy.yml` and merged to `main` at `c86b86ec8f5678b9223b7bcb6a73e0377116e670`.
77 -- GitHub repository secrets for Cloudflare deployment are configured.
78 -- Re-run of deployment workflow `37057406559` passed credential preflight and deployed successfully.
79 -- Automatic deploy runs after successful `main` CI and uses the exact verified commit.
80 -
81 -## Full Repository Audit + Telegram Runtime Incident — Verified 2026-10-02
82 -Audit scope covered the full recursive repository tree, including workflows, Worker config, all `src/` modules, all tests, README/project memory and package metadata.
83 -
84 -### Root cause
85 -- Telegram requests were reaching the production Worker, so webhook registration, secret header and owner gate were not the blocker.
86 -- Production observability showed `POST /telegram/webhook` returning HTTP 400 with `Telegram API sendMessage network failure: Illegal invocation: function called with incorrect this reference`.
87 -- Root defect was in `src/telegram.js`: the platform-global `fetch` had been stored directly as an instance property and later called with the wrong receiver.
88 -- Node unit tests had previously missed this platform-specific semantic difference.
89 -
90 -### PR #11 — redacted runtime diagnostics
91 -- RED commit `079f9b7977e1120d1bcdbbcd75d91e6a322e5a49`.
92 -- Implementation commit `2851c7045141aaeff501564d4a6bf8f22e333754`.
93 -- PR CI `37064293599` = 30/30 pass.
94 -- Squash merge `cfd7a0b4803b13c76646b71666e7e0c66e023c99`.
95 -- Post-merge CI `37064405261` and deploy `37064436885` succeeded.
96 -
97 -### PR #12 — Cloudflare fetch receiver fix
98 -- RED commit `99cf3468f820eb06390b7001c1d1eb5e5fb4ebbd`.
99 -- Fix commit `c487727c968e4f00aecf0985a38b152f58e3b9b4`.
100 -- Default transport now uses `(...args) => fetch(...args)` instead of storing bare platform `fetch`.
101 -- PR CI `37064953868` = 31/31 pass.
102 -- Squash merge `bd01d8ede44331f50e1115d569095fb12246331d`.
103 -- Post-merge CI `37065054623` and deploy `37065141745` succeeded.
104 -- Cloudflare telemetry showed current-version Telegram webhook requests returning HTTP 200; `Illegal invocation` existed only on the older Worker version.
105 -
106 -### PR #13 — callback resilience + documentation alignment
107 -- RED commit `13daeb442d6a2e1189a5cec2148aab9c2ea7c338`.
108 -- Callback fix commit `28e2e6b619c646796600048a34616138fbbc207c`.
109 -- README alignment commit `67b04e04214e334a88aea0ecdc4598bc5fbd027c`.
110 -- PR CI `37065725004` = 32/32 pass.
111 -- Squash merge `6c90cbb8384c9591ba89367b48e4ce7e785ce72f`.
112 -- Post-merge CI `37065832210` and deploy `37065860268` succeeded.
113 -- Cloudflare deployment `13a5abdc-92a0-415f-b30b-ab422ae8b8ce`, version `812c52f7-f0b3-48bf-917c-151f4618dabd`, served 100% traffic.
114 -- Live Telegram webhook on that Worker version returned HTTP 200 / outcome `ok`.
115 -
116 -## Plugin Foundation v1 — Production Accepted 2026-10-03
117 -
118 -### Approved design and plan
55 +- Missing GitHub token/provider failures are explicit; no fabricated fallback data or fabricated success.
56 +- Runtime diagnostics and audit records must not disclose Telegram/GitHub/webhook/approval signing secrets or signed approval callback tokens.
57 +- Plugin route resolution must be side-effect-free; provider/view work happens only inside deferred `execute()` after policy evaluation.
58 +- `READ` executes for the authorized owner.
59 +- `WRITE` and `DESTRUCTIVE` do not execute on the first request; they require a verified owner-bound approval.
60 +- Approval token is short-lived, HMAC-signed, action-bound, owner-bound and target-bound.
61 +- Approval consume fails closed without persistent replay protection.
62 +- `(ownerId, nonce)` is consumed atomically through the Durable Object, preventing cross-isolate replay.
63 +- GitHub workflow write endpoints never run before approval.
64 +
65 +## Telegram / GitHub Capabilities
66 +Existing READ navigation remains backward compatible:
67 +- `/start`, `/menu`, `/repos`, `/status`
68 +- repository detail, files/tree/blob preview, PRs, commits, status
69 +- same-message callback navigation via `editMessageText`
70 +- stale `answerCallbackQuery` failure does not block navigation
71 +
72 +Safe GitHub Operator additions in PR #15:
73 +- repository -> `🧪 CI / Actions`
74 +- list workflow runs
75 +- inspect workflow run status/branch/SHA/event
76 +- inspect jobs and steps
77 +- request `Re-run failed jobs`
78 +- request `Cancel workflow run`
79 +- both WRITE actions render explicit Confirm/Cancel UI before provider mutation
80 +- malformed/expired/wrong-owner/mismatched/replayed approval fails closed
81 +
82 +## Historical Accepted Milestones
83 +### Runtime incident fixes — 2026-10-02
84 +- PR #11 added redacted diagnostics; squash merge `cfd7a0b4803b13c76646b71666e7e0c66e023c99`.
85 +- PR #12 fixed Cloudflare `fetch` receiver / `Illegal invocation`; squash merge `bd01d8ede44331f50e1115d569095fb12246331d`.
86 +- PR #13 hardened callback resilience and documentation; squash merge `6c90cbb8384c9591ba89367b48e4ce7e785ce72f`.
87 +- Production telemetry after the fix showed current-version Telegram webhook HTTP 200 / outcome `ok`.
88 +
89 +### Plugin Foundation v1 — Production Accepted 2026-10-03
90 - Design: `docs/superpowers/specs/2026-10-03-nexa-plugin-foundation-design.md`.
120 -- Design commit: `adabadefd74de656b20d112c325be4defcbf2103`.
91 - Plan: `docs/superpowers/plans/2026-10-03-nexa-plugin-foundation.md`.
122 -- Initial plan commit: `5f9a1991dbc3a1e79f5c04dfbe591c4d35e74a97`.
123 -- Feature branch: `feat/plugin-foundation-v1`.
124 -- PR: `#14`.
125 -
126 -### Architecture implemented
127 -- Plugin Registry with manifest/action validation.
128 -- Central Action Policy with owner READ allow and WRITE/DESTRUCTIVE approval-required decisions.
129 -- Recursive-redaction Audit Logger.
130 -- Plugin Router enforcing `resolve -> policy -> execute`.
131 -- GitHub manifest and plugin adapter.
132 -- `/repos` and GitHub callbacks migrated through the plugin kernel.
133 -- `/start`, `/status`, tools/settings/security and other non-GitHub menu flows remain compatibility routes in Foundation v1.
134 -
135 -### Security-critical design correction during implementation
136 -The initial plan described a handler returning an already-produced view/result. TDD review identified that this could allow provider/view work before policy. The implemented contract is safer: route resolution returns `{ actionId, execute }`; resolution must be side-effect-free, policy is evaluated next, and only then may `execute()` run. Tests prove denied, undeclared, WRITE and DESTRUCTIVE actions do not call `execute()`.
137 -
138 -### TDD evidence
139 -- Registry RED `2460b0854f6dbd99a80cfb9561850fdd23f1ac0e` / CI `37069219176`; GREEN `3f644caef41a9136cb5f0a78b0c66798238a257d` / CI `37069339637`.
140 -- Policy RED `77efe66f008fcb417b0b66f22b186885d3fecdd3` / CI `37069430240`; GREEN `cbdba6b1b70342d6325d229cec1725c05862a537` / CI `37069629741`.
141 -- Audit RED `a6f9735185f7a0ce45fe744b9a13b1fa3d885681` / CI `37069736330`; GREEN `92dfcba318f5199e6c9e54da5fbba91a15122ca3` / CI `37069824796`.
142 -- Router RED `4e3fca87139310c24c3c83a5181fc638f887882d` / CI `37069955642`; GREEN `00fcd1041e2f8074dc34727635395896eace0cba` / CI `37070015843`.
143 -- GitHub adapter RED `ae6829729779c2f656e99958a379c805eb1bebc4` / CI `37070181121`; GREEN adapter head `c9aed93bc1a3bd8ac047a3639722633bcd9c624e` / CI `37070481981`.
144 -- Bot migration RED `f1ee926320dc918d0d0c8b21d60710077a9d119b` / CI `37070633843`; GREEN integration `d628a4ed0b07dfa4c748b6161515565b1eef3073` / CI `37070778956`.
145 -- Final PR head `c44b557e64d2c3bb9a181f663833385abfb50ad3`; PR CI `37071349162` passed.
146 -
147 -### Merge / main / deploy evidence
148 -- PR #14 squash-merged to `main` at `9d95a18659cead269ffa98af08d6bbf041c6135f`.
149 -- Post-merge `main` CI run `37071695354` succeeded.
150 -- CI logs were inspected in full: **12 test files discovered; 52 tests, 52 pass, 0 fail, 0 skipped/cancelled/todo**.
151 -- Cloudflare deploy workflow `37071717251` succeeded; credential preflight, exact verified commit checkout and deploy steps all succeeded.
152 -- Documentation checkpoint `c35e153179cdab9096b77c07807fb36cad3a247c` also passed `main` CI `37072163496` and deploy workflow `37072185739`.
153 -- The Worker version serving the owner-device smoke was `425d7418-1efa-498e-8615-1718596943d9`.
154 -
155 -### Production runtime acceptance
156 -Owner-device smoke was completed after deployment using `/start` and GitHub-backed navigation.
157 -Cloudflare observability for the smoke window showed:
158 -- **35** `POST /telegram/webhook` events on Worker version `425d7418-1efa-498e-8615-1718596943d9`.
159 -- Webhook series reported **0 errors** and sampled requests returned **HTTP 200 / outcome `ok`**.
160 -- `telegram_webhook_error` search returned **0 events**.
161 -- **22** `nexa_audit` events were emitted during the smoke path.
162 -- Audit evidence included GitHub `READ` actions such as `github.repos.list`, `github.repo.detail`, and `github.status.read`, with `action_attempt` = `allowed` (`owner_read_allowed`) followed by `action_result` = `success`.
163 -- Observed secret-bearing request headers remained redacted in telemetry.
164 -
165 -VERIFIED:
166 -- Plugin registry validation.
167 -- READ/WRITE/DESTRUCTIVE policy semantics.
168 -- Recursive audit redaction and non-breaking sink failure.
169 -- Undeclared and approval-required actions do not execute provider code.
170 -- GitHub callback/command ownership mapping.
171 -- Existing `/start`, same-message navigation, stale callback handling, security gates, GitHub fail-closed behavior and Cloudflare fetch-receiver regression remain green in automated tests.
172 -- PR CI, main CI, deploy workflow and Cloudflare rollout are green.
173 -- Live owner-device Telegram smoke is complete.
174 -- Current-version production webhook traffic is HTTP 200 / outcome `ok` with zero observed webhook errors in the smoke window.
175 -- GitHub plugin READ paths produced expected redacted audit events and completed successfully.
92 +- PR #14 squash merge: `9d95a18659cead269ffa98af08d6bbf041c6135f`.
93 +- Post-merge CI `37071695354` succeeded.
94 +- Verified suite at acceptance: 12 test files, 52/52 pass, 0 fail/skip.
95 +- Deploy `37071717251` succeeded; later documentation checkpoint also passed CI/deploy.
96 +- Owner-device production smoke completed.
97 +- Smoke telemetry on Worker version `425d7418-1efa-498e-8615-1718596943d9`: 35 webhook events, zero observed webhook errors, sampled HTTP 200/outcome `ok`, 22 redacted GitHub READ audit events.
98 +
99 +## Safe Actions + GitHub Advanced — PR #15 Pre-Merge Checkpoint 2026-10-03
100 +### Scope
101 +- Branch: `feat/safe-github-ops`
102 +- PR: `#15` — `feat: add safe GitHub operator foundation`
103 +- Design: `docs/superpowers/specs/2026-10-03-safe-github-ops-design.md`
104 +- Plan: `docs/superpowers/plans/2026-10-03-safe-github-ops.md`
105 +
106 +### Implemented
107 +- HMAC approval service with compact Telegram-safe callback tokens.
108 +- Policy support for verified approved WRITE/DESTRUCTIVE execution.
109 +- Router approved context while preserving `resolve -> policy -> execute`.
110 +- Persistent cross-isolate replay prevention with SQLite Durable Object.
111 +- Fail-closed behavior if `APPROVAL_REPLAY_GUARD` is unavailable.
112 +- Approval lifecycle audit events without signed token leakage.
113 +- GitHub Actions read APIs: runs, run detail, jobs/steps.
114 +- GitHub Actions controlled write APIs: rerun failed jobs, cancel run.
115 +- Telegram Confirm/Cancel workflow and second approved dispatch.
116 +- `npm start` now uses Wrangler local Worker development rather than `node src/index.js`.
117 +- README/spec/plan aligned to durable replay architecture.
118 +
119 +### TDD / verification evidence
120 +- Earlier RED/GREEN cycles covered approval token semantics, policy, router, GitHub service, plugin views and Telegram approval flow.
121 +- Durable replay tests cover missing namespace fail-closed, owner+nonce scoping, duplicate rejection, expiry cleanup, and Wrangler export/binding contract.
122 +- A deliberate config/export RED run `37094233142` had 73 tests with exactly 1 expected failure for missing production binding/export.
123 +- Export and Wrangler SQLite Durable Object config then fixed that failure.
124 +- PR CI `37094394332`: **15 test files; 78 tests; 78 pass; 0 fail; 0 skipped/cancelled**.
125 +- Final documentation-aligned head `53a766ac9a2fab49a2bde29d0c5ae9b586f4c555` passed fresh PR CI `37094713808`.
126 +- Fresh PR patch reviewed after documentation corrections; no out-of-scope provider mutations were added.
127 +- Secret-pattern scan found no `ghp_` or `github_pat_` token material; no production secret values are intentionally stored in the patch.
128 +
129 +### Not yet production-accepted
130 +- PR #15 is not yet merged at this checkpoint.
131 +- Post-merge `main` CI is not yet verified.
132 +- Cloudflare deployment of the Durable Object binding is not yet verified.
133 +- Active-production `APPROVAL_REPLAY_GUARD`/SQLite class is not yet verified through Cloudflare runtime evidence.
134 +- Owner-device production READ path `/start -> Repositories -> project -> CI / Actions` is not yet smoke-tested on the new deployment.
135 +- Live GitHub WRITE provider smoke is **NOT VERIFIED** and must only occur through an actual owner confirmation in Telegram; no secret rotation is performed automatically.
136 +
137 +## Acceptance Rules
138 +A phase is complete only after `IMPLEMENTED -> VERIFIED -> FIXED IF NEEDED -> RE-VERIFIED`.
139 +Minimum gates:
140 +- Non-zero discovered tests and security regressions green.
141 +- Plugin/policy/audit/router tests green.
142 +- Telegram navigation and Cloudflare fetch-receiver regressions green.
143 +- PR review clean and secrets not leaked.
144 +- Merge exact reviewed head.
145 +- Post-merge `main` CI green.
146 +- Exact-commit Cloudflare deploy green.
147 +- Production telemetry confirms successful webhook behavior on current version.
148 +- Any external WRITE smoke requires the Safe Actions confirmation path; anything not actually executed is explicitly `NOT VERIFIED`.
149
150 ## Current Work / Last Checkpoint
151 WHERE WE ARE:
179 -- **Plugin Foundation v1 is production-accepted and complete.**
180 -- Code is merged to `main`, automated suite is fully green at 52/52, deploy automation is healthy, and real Telegram/GitHub navigation was verified against Cloudflare telemetry.
181 -- No Foundation acceptance gate remains open.
182 -
183 -WHAT REMAINS:
184 -1. Begin the next explicitly approved plugin phase when requested.
185 -2. For the first write-capable plugin, implement the Telegram confirmation UX before any `WRITE` or `DESTRUCTIVE` action can execute.
186 -
187 -## Acceptance Rules
188 -A checkpoint is complete only after `IMPLEMENTED -> VERIFIED -> FIXED IF NEEDED -> RE-VERIFIED`.
189 -Minimum automated/runtime gates:
190 -- Non-zero discovered test files.
191 -- Security tests green.
192 -- Navigation/bot/menu/index tests green.
193 -- Plugin registry/policy/audit/router tests green.
194 -- GitHub plugin/fail-closed/data-trust tests green.
195 -- Telegram missing-token/API-error and Cloudflare fetch-receiver regression tests green.
196 -- Production deploy workflow green.
197 -- Cloudflare telemetry must show successful production webhook behavior before runtime is called verified.
198 -
199 -## Known Gaps / Low-Priority Technical Debt
200 -- `package.json` still has `"start": "node src/index.js"`, which is not a useful local Cloudflare Worker development command; it does not affect production deployment.
201 -- Extremely long path-based refresh callback data could theoretically approach Telegram's 64-byte callback-data limit; normal deep navigation uses SHA-based callbacks.
202 -- Persistent navigation/session storage is intentionally not required for the current stateless callback flow.
203 -- Foundation v1 establishes approval-required policy results but intentionally does not implement the Telegram confirmation UX; that belongs to the first write-capable plugin phase.
152 +- Foundation v1 remains production-accepted.
153 +- Safe Actions + GitHub Advanced implementation is complete on PR #15 and final PR CI is green at head `53a766ac9a2fab49a2bde29d0c5ae9b586f4c555` / run `37094713808`.
154 +- Durable replay protection is implemented in code/config and tested, but production deployment verification is still pending.
155 +
156 +NEXT EXECUTABLE ACTIONS:
157 +1. Run CI once more if this memory checkpoint changes PR head.
158 +2. Mark PR #15 ready for review and squash-merge only if the new head is green and mergeable.
159 +3. Verify exact post-merge `main` CI.
160 +4. Verify Cloudflare deploy and active Durable Object binding/version.
161 +5. Inspect current-version Cloudflare telemetry.
162 +6. Request owner-device READ smoke only if live external interaction is still needed for acceptance.
163 +7. Do not perform GitHub workflow WRITE smoke without the owner pressing the Telegram Confirm button.
164 +
165 +## Remaining Roadmap After PR #15 Acceptance
166 +Proceed as separate verified vertical slices, not one mega-PR:
167 +1. Cloudflare Ops plugin: deployments, versions, logs, health and safe rollback controls.
168 +2. Broader CI/CD control and release acceptance orchestration.
169 +3. AI Copilot adapter: code/PR/log/CI analysis, test/fix proposals; no autonomous production mutation.
170 +4. Browser QA: real DOM smoke, screenshots and production-flow checks behind explicit runtime configuration.
171 +5. Monitoring + Incident Manager.
172 +6. Automation Engine with approval-aware durable workflows.
173 +7. Telegram Mini App control center.
174 +8. Plugin ecosystem adapters as useful: Supabase, Sentry, Notion, Linear/Jira, Railway/Render; no cross-project assumptions.
175 +9. Multi-project control plane.
176 +10. Final hardening: permission penetration tests, rate limiting, replay/idempotency drills, rollback/recovery drill, documentation and release/versioning.
177
178 ## Project Boundaries
206 -- Nexa Dev Bot is independent from Finora / Factor-easy and has no Supabase requirement in this project.
207 -- Do not mix state or migrations from other projects.
179 +- Nexa Dev Bot is independent from Finora / Factor-easy unless a future explicit multi-project adapter is added.
180 +- Do not mix Supabase state/migrations from other projects into Nexa by default.
181 - Keep secrets out of code, logs and documentation.
209 -
210 -## Important Paths
211 -- `PROJECT_MEMORY.md`
212 -- `README.md`
213 -- `docs/superpowers/specs/2026-10-03-nexa-plugin-foundation-design.md`
214 -- `docs/superpowers/plans/2026-10-03-nexa-plugin-foundation.md`
215 -- `src/index.js`
216 -- `src/bot.js`
217 -- `src/core/plugin-registry.js`
218 -- `src/core/action-policy.js`
219 -- `src/core/audit.js`
220 -- `src/core/router.js`
221 -- `src/plugins/github/manifest.js`
222 -- `src/plugins/github/plugin.js`
223 -- `src/menu.js`
224 -- `src/telegram.js`
225 -- `src/github.js`
226 -- `test/plugin-registry.test.js`
227 -- `test/action-policy.test.js`
228 -- `test/audit.test.js`
229 -- `test/plugin-router.test.js`
230 -- `test/github-plugin.test.js`
231 -- `test/security.test.js`
232 -- `test/navigation.test.js`
233 -- `test/bot.test.js`
234 -- `.github/workflows/ci.yml`
235 -- `.github/workflows/deploy.yml`
236 -- `wrangler.jsonc`
237 -
238 -## Next Executable Action
239 -Foundation v1 is closed. Start the next plugin phase only from the user's next explicit instruction; preserve `resolve -> policy -> execute`, redacted audit logging, TDD, main-CI and production telemetry gates.