Personal Telegram developer console for GitHub

docs: add project continuity memory system

davoodmehraban89 committed Oct 2, 2026 at 20:58 UTC ba668aca95f973c3cdfe75a46ab4e56efe89e66f
1 file changed +149
PROJECT_MEMORY.md new
+149
@@ -0,0 +1,149 @@
1 +# PROJECT_MEMORY.md
2 +
3 +## Project Identity
4 +- Name: Nexa Dev Bot
5 +- Repository: davoodmehraban89/nexa-dev-bot
6 +- Purpose: Telegram-based development assistant for GitHub repository management.
7 +- Memory status: Created as Single Source of Truth for future AI handoff.
8 +
9 +## AI HANDOFF PROTOCOL
10 +1. Read this file completely before making changes.
11 +2. Verify the real repository state, runtime evidence, integrations and deployments.
12 +3. Prefer repository evidence over stale memory or previous claims.
13 +4. Update this file when memory becomes stale.
14 +5. Continue from Last Checkpoint only after verification.
15 +6. After every checkpoint, update this file with real evidence.
16 +
17 +## Product Vision
18 +Create a professional Telegram interface for secure development operations, GitHub visibility and future automation workflows.
19 +
20 +## Repository / Workspace
21 +- Repository: davoodmehraban89/nexa-dev-bot
22 +- Default branch: main
23 +- Visibility: private
24 +- Current verified access: repository read/write available through GitHub integration.
25 +
26 +## Architecture
27 +Verified current architecture:
28 +- Telegram Bot API webhook
29 +- Cloudflare Worker style runtime (source indicates Worker fetch handler)
30 +- GitHub API integration
31 +- Environment secrets/configuration outside this file
32 +
33 +## Technology Stack
34 +- JavaScript
35 +- Telegram Bot API
36 +- GitHub REST API
37 +- Cloudflare Worker runtime pattern
38 +
39 +## Environments & Integrations
40 +Verified:
41 +- GitHub repository connection: available
42 +- Telegram integration code exists
43 +Not verified in this memory creation:
44 +- Production deployment state
45 +- Cloudflare deployment state
46 +- Runtime monitoring
47 +- External secret values
48 +
49 +## Current Production State
50 +Unknown. Must be verified from deployment/runtime evidence before claiming production readiness.
51 +
52 +## Completed Work (Verified)
53 +- Repository inspection completed.
54 +- Existing Telegram webhook architecture identified.
55 +- Existing GitHub repository browsing, commits and pull request reading flows were previously tested through Telegram according to conversation evidence.
56 +- Continuity memory file created.
57 +
58 +## Unverified / Planned
59 +- New persistent Telegram menu implementation.
60 +- editMessageText navigation architecture.
61 +- PR creation for menu redesign.
62 +- Automated tests.
63 +
64 +## Current Work / Last Checkpoint
65 +Checkpoint: Telegram UX redesign.
66 +
67 +WHERE WE WERE:
68 +Existing implementation uses multiple sendMessage calls for navigation.
69 +
70 +WHAT CHANGED:
71 +Continuity system added.
72 +
73 +WHERE WE ARE NOW:
74 +Memory baseline created. Menu redesign not implemented.
75 +
76 +WHAT REMAINS:
77 +Refactor navigation to one-message inline menu flow.
78 +
79 +## Master Roadmap
80 +Phase 1: Stable Telegram navigation core.
81 +Phase 2: Repository submenu and state management.
82 +Phase 3: Development tools and operations.
83 +Phase 4: Security hardening and auditability.
84 +Phase 5: QA, release validation and documentation.
85 +
86 +## Requirements
87 +- Avoid message spam during navigation.
88 +- Prefer single editable menu messages.
89 +- Maintain secure secret handling.
90 +- Preserve auditability.
91 +
92 +## User Decisions
93 +- Prefer professional multi-level Telegram menus.
94 +- Prefer execution based workflow over conversational explanations.
95 +- Require verification before claiming completion.
96 +
97 +## Architecture Decisions
98 +- PROJECT_MEMORY.md is the primary continuity document.
99 +- Credentials must never be stored here.
100 +
101 +## UX/UI Decisions
102 +Approved direction:
103 +- Hierarchical Telegram navigation.
104 +- Main menu concepts: Repos, Status, Tools, Settings.
105 +- Use editable menu messages where technically appropriate.
106 +
107 +## Data Model
108 +No persistent application database model verified yet.
109 +
110 +## Security Rules
111 +- Never store tokens, passwords or secrets in repository memory files.
112 +- Verify permissions before sensitive operations.
113 +
114 +## Testing & Acceptance Criteria
115 +Completed means:
116 +IMPLEMENTED → VERIFIED → FIXED IF NEEDED → RE-VERIFIED
117 +
118 +Required future verification:
119 +- Telegram user flow test.
120 +- Runtime test.
121 +- Regression test for existing GitHub operations.
122 +
123 +## Known Issues
124 +- Current navigation sends separate messages instead of editing one menu message.
125 +- State management for nested menus is not implemented.
126 +
127 +## Technical Debt
128 +- Add automated tests.
129 +- Add structured state handling.
130 +- Improve deployment documentation.
131 +
132 +## Deployment / Release State
133 +Not verified.
134 +
135 +## Important File Paths
136 +- Source entry: src/index.js
137 +- Main memory: PROJECT_MEMORY.md
138 +- Future documentation: docs/project-memory/
139 +- Future assets: docs/project-memory/assets/
140 +
141 +## Reference Assets
142 +No project design assets were available for repository storage at memory creation time.
143 +Status: Missing Asset.
144 +
145 +## Change Log
146 +- Initial PROJECT_MEMORY.md created.
147 +
148 +## Next Executable Action
149 +Inspect current source files and implement Telegram menu refactor only after confirming full code context.