Skip to content

docs(architecture): establish canonical architecture document (#609) - #669

Merged
phertyameen merged 1 commit into
MindBlockLabs:mainfrom
Ummi-001:docs/609-canonical-architecture
Aug 24, 2026
Merged

docs(architecture): establish canonical architecture document (#609)#669
phertyameen merged 1 commit into
MindBlockLabs:mainfrom
Ummi-001:docs/609-canonical-architecture

Conversation

@Ummi-001

Copy link
Copy Markdown
Contributor

Closes #609

Summary

docs/ARCHITECTURE.md already existed but was missing several sections
required by this issue. This PR adds them, verified against the actual
backend code (not guessed):

  • Authentication architecture (password, Google OAuth, Stellar wallet
    signature login, guest sessions)
  • Game-session architecture (real GameSessionStatus lifecycle)
  • Challenge lifecycle (real AttemptStatus lifecycle)
  • Progress tracking
  • Reward architecture (current eligibility-only logic in RewardService;
    no minting/transfer is wired up yet — documented as such)
  • Blockchain integration, split into wallet linking vs. the Soroban
    contract
  • AI integration, documented as planned/not yet implemented — no AI code
    exists in the repo currently
  • External services table
  • Development environments subsection
  • Updated the high-level diagram to match the issue's expected
    architecture (added AI Services and Blockchain module)
  • Added a short guide on where a new feature belongs, per the
    acceptance criteria

@vercel

vercel Bot commented Aug 23, 2026

Copy link
Copy Markdown

@A6dulmalik is attempting to deploy a commit to the aminubabafatima8-gmailcom's projects Team on Vercel.

A member of the Team first needs to authorize it.

@phertyameen

Copy link
Copy Markdown
Member

@Ummi-001 too many conflicts and failed CI
Please fix it before I review

…ockLabs#609)

Expand docs/ARCHITECTURE.md into the canonical architecture reference
required by MindBlockLabs#609, verified against the actual backend code:

- Authentication architecture: password, Google OAuth ID-token
  verification, Stellar wallet nonce/signature login, guest sessions,
  JWT access/refresh rotation with hashed refresh tokens
- Game-session architecture: real GameSessionStatus state machine and
  server-side completion summary
- Challenge lifecycle: real AttemptStatus values, transactional
  idempotent grading, scoring formula
- Progress tracking write/read paths
- Reward architecture documented as eligibility-only today (no minting)
- Blockchain integration split into off-chain wallet linking vs the
  Soroban contract (providers pending)
- AI integration documented as planned/not yet implemented
- External services table, development environments guide,
  communication between services, updated high-level diagram
  (AI Services + Blockchain module per the issue's expected
  architecture), and a where-a-new-feature-belongs guide
@Ummi-001
Ummi-001 force-pushed the docs/609-canonical-architecture branch from c05cadf to 5eb7425 Compare August 24, 2026 11:48
@phertyameen
phertyameen merged commit 4d54ea8 into MindBlockLabs:main Aug 24, 2026
6 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Establish and Document the Canonical Mind Block Architecture

2 participants