Personal Telegram developer console for GitHub

docs: record production deploy blocker from Telegram smoke

davoodmehraban89 committed Oct 2, 2026 at 23:29 UTC 5a06c0d81a167ca5937b89d312a3d9ee6594acca
1 file changed +31 -13
PROJECT_MEMORY.md
+31 -13
@@ -23,16 +23,21 @@
23 - `src/menu.js` — hierarchical inline menus, one-message editing, repository/file browser.
24 - `src/config.js` — non-secret static config.
25 - `.github/workflows/ci.yml` — Node 22 project test runtime, official GitHub Actions on Node-24-based v7 releases, non-zero test-discovery guard.
26 +- `.github/workflows/deploy.yml` — production Cloudflare Worker deploy after successful CI on `main`; deploys the exact verified commit.
27 - `test/` — security, worker, navigation, menu, GitHub and Telegram regression coverage.
28
29 ## Runtime Configuration
29 -Required names:
30 +Worker runtime names:
31 - `TELEGRAM_BOT_TOKEN`
32 - `TELEGRAM_WEBHOOK_SECRET`
33 - `OWNER_TELEGRAM_ID`
34 - `GITHUB_TOKEN`
35 - optional `GITHUB_OWNER`
36
37 +GitHub Actions deployment secrets:
38 +- `CLOUDFLARE_API_TOKEN`
39 +- `CLOUDFLARE_ACCOUNT_ID`
40 +
41 ## Verified Security / Data Trust
42 - Webhook only at `POST /telegram/webhook`.
43 - Missing webhook secret, owner ID or bot token fails closed.
@@ -73,19 +78,30 @@ Required names:
78 - Post-merge `main` CI run `37056086860` = 29/29 pass.
79 - The prior GitHub Actions Node-20-runtime deprecation warning is absent from the verified PR and post-merge runs.
80
81 +## Production Deploy Automation — Current Release Blocker 2026-10-02
82 +- Real Telegram screenshot showed production is stale/unresponsive relative to current `main`: old repository buttons are visible and repeated `/start` commands received no new response.
83 +- Root cause in repository: CI had no Cloudflare deploy step, so green/merged `main` did not guarantee Worker deployment.
84 +- PR `#10` added `.github/workflows/deploy.yml` and was fast-forwarded to `main` at commit `c86b86ec8f5678b9223b7bcb6a73e0377116e670`.
85 +- PR CI run `37057306685` passed.
86 +- Post-merge `main` CI run `37057386587` passed.
87 +- Deployment workflow run `37057406559` started correctly but failed during credential preflight before any deploy.
88 +- Exact blocker from verified job log: GitHub repository secret `CLOUDFLARE_API_TOKEN` is missing/empty. `CLOUDFLARE_ACCOUNT_ID` also appeared empty in the workflow environment and must be configured before rerun.
89 +- No Cloudflare deploy was attempted after the preflight failure; production therefore remains NOT VERIFIED and should be treated as stale until the deploy run succeeds.
90 +
91 ## Current Work / Last Checkpoint
92 WHERE WE ARE:
78 -- Security, data trust, one-message navigation, deep repository file browsing and CI runtime modernization are implemented and automated-verified on `main`.
79 -- Last verified implementation/docs head before this memory-only commit: `7574fb1a373c3ab7b81f3f6857452059287cd44e`.
80 -- Live Cloudflare verification is still NOT VERIFIED: both the execution environment and the web-access path failed to reach the `workers.dev` hostname, so no runtime claim is made.
81 -- Real Telegram mobile smoke is NOT VERIFIED.
93 +- Source, tests, security gates, one-message navigation, deep file browsing and CI are green on `main`.
94 +- Automated production deployment path now exists on `main`.
95 +- The deployment is blocked only by missing GitHub Actions Cloudflare credentials.
96 +- Real Telegram evidence proves the production bot has not yet reached the current implementation.
97
98 WHAT REMAINS:
84 -1. Verify CI for this memory-only commit on `main`.
85 -2. Verify live Cloudflare root/health/status and confirm `/telegram/setup` is unavailable from an environment that can reach the Worker hostname.
86 -3. Owner-device Telegram smoke: `/start → Repositories → repository → Files → folder → file preview → root → project → Commits/PR/Status → Back → Main`.
87 -4. Confirm callbacks create no extra bot messages in the real Telegram client.
88 -5. Confirm a non-owner Telegram account receives no private bot response.
99 +1. Add GitHub repository secrets `CLOUDFLARE_API_TOKEN` and `CLOUDFLARE_ACCOUNT_ID`.
100 +2. Re-run failed deploy workflow run `37057406559` (or trigger the next successful `main` CI) and require a green deploy.
101 +3. Verify live Worker root/health/status reports current version/source behavior.
102 +4. Repeat owner-device Telegram smoke: `/start → Repositories → repository → Files → folder → file preview → root → project → Commits/PR/Status → Back → Main`.
103 +5. Confirm callbacks create no extra bot messages in the real Telegram client.
104 +6. Confirm a non-owner Telegram account receives no private bot response.
105
106 ## Acceptance Rules
107 A checkpoint is complete only after:
@@ -96,10 +112,11 @@ Minimum automated gates:
112 - Navigation/bot/menu/index tests green.
113 - GitHub fail-closed/data-trust tests green.
114 - Telegram missing-token/API-error tests green.
115 +- Production deploy workflow green before live behavior is called verified.
116
117 ## Known Gaps / Technical Debt
101 -- Live Cloudflare deployment content is not verified from this environment.
102 -- Real mobile Telegram smoke is not verified yet.
118 +- Live Cloudflare deployment is currently blocked by missing GitHub Actions Cloudflare secrets.
119 +- Real mobile Telegram smoke must be repeated after successful production deploy.
120 - Persistent navigation/session storage is not required for the current stateless callback flow.
121
122 ## Project Boundaries
@@ -123,7 +140,8 @@ Minimum automated gates:
140 - `test/github.test.js`
141 - `test/telegram.test.js`
142 - `.github/workflows/ci.yml`
143 +- `.github/workflows/deploy.yml`
144 - `wrangler.jsonc`
145
146 ## Next Executable Action
129 -Verify CI for this memory-only commit. After that, the remaining release gate requires real runtime/mobile evidence rather than further repository assumptions.
\ No newline at end of file
147 +Configure `CLOUDFLARE_API_TOKEN` and `CLOUDFLARE_ACCOUNT_ID` as GitHub repository Actions secrets, then rerun deploy run `37057406559` and verify the live Telegram bot again.
\ No newline at end of file