Day 7 Data Structure Codex AI Architect

Codex Client Workspace Data Design Tasks

A hands-on AI teamwork Task board that uses Codex to automatically analyze and fix the data structure misunderstandings, scattered terms and change ripple problems startups face during MVP development.

Day 7 Startup MVP Tasks

From connecting features to static screens to checking user journeys and catching abnormal input errors — use Codex as a scenario coach and teammate to put together a well-finished service.

TASK 1
Task 1

Task 1. Connect Features Lab

Task 01: Save Sign-Up Data and Switch Screens (Feature Integration)

Control the sign-up form submit, save the input to local storage, then move to the done screen.

TargetSign-up save and screen switch working
Key toolCodex Client Workspace
Lab scopeFeature Integration
Step 1 📂 Check sign-up form events and input data
Step 2 🔍 Build save and screen switch, then check refresh and duplicate submits
Form Submit Local Storage Feature Integration
Expected output signup-integration.js (sign-up feature code)
Enter Task 1 lab
TASK 2
Task 2

Task 2. Check User Scenarios Lab

Task 02: Find Lost Info Across Screens and Add a Keep Guard (User Scenario Review)

Find breaks in the user journey — like search filters resetting when going from list to detail and back — and fix them with sessionStorage caching.

Target100% filter recovery when going back
Key toolCodex Client Workspace
Lab scopeState Hydration & Session Caching
Step 1 📁 Analyze and submit the user scenario spec (day7_user_flow.md)
Step 2 🔍 Ask Codex to write a session helper script that restores info
Scenario flow SessionStorage State Backups
Expected output day7_scenario_solution.js (drop-off guard script)
Enter Task 2 lab
TASK 3
Task 3

Task 3. Find Feature Errors Lab

Task 03: Lock Rapid Repeat Submits and Guard Time Boundaries (Feature Validation)

Find where rapid mouse clicks cause duplicate database inserts and where past-time bookings slip through, and insert guard logic.

TargetRapid repeat and past-date booking prevention working
Key toolCodex Client Workspace
Lab scopeDefensive coding & Logic Boundary
Step 1 📂 Open and upload the weak code (day7_feature_validation.js)
Step 2 🔄 Ask Codex to apply an isSubmitting lock variable and date comparison
Double Submit Lock Disabled State Logic Guard
Expected output day7_robust_validation.js (source with guards)
Enter Task 3 lab
SKILL 1
Skill Task 1

Skill Task 1. Business Rule Spec

ADD-D07-T01: Document 10 Rules like Campaign status, Budget and Target

Document at least 10 Business Rules — Campaign status, Budget, period, Target, Frequency Cap and more — before writing code, and define exceptions.

Target10 Business Rules specified
Key toolCodex Client Workspace
Lab scopeSkill Task (TECH)
Step 1 📁 Prepare the API Contract & ERD Context
Step 2 ⚙️ Review Rule contradictions/gaps/boundaries with AI and specify
Skill Task Business Rule TECH-BIZ
Expected output 09_BUSINESS_RULE.md
Enter lab
SKILL 2
Skill Task 2

Skill Task 2. Domain Service and Repository

ADD-D07-T02: Separate Controller–Service–Repository responsibilities

Cleanly separate Controller–Service–Repository responsibilities and build Business Rules and DB saving in back-end code.

TargetDomain Service & DB integration done
Key toolCodex Client Workspace
Lab scopeSkill Task (HYBRID)
Step 1 📁 Prepare Business Rules and DB table specs
Step 2 ⚙️ Build Service-layer business logic and separate the Repo
Skill Task Domain Service TECH-BE
Expected output OrderDomainService.js
Enter lab
SKILL 3
Skill Task 3

Skill Task 3. Transaction·Validation·Exception Checks

ADD-D07-T03: Concurrent requests, Budget exhaustion & DB failure tests

Run exception and validation tests including concurrent requests, Budget exhaustion, invalid state transitions and DB failures, and pass the exception policies.

TargetException/boundary tests & Validation done
Key toolCodex Client Workspace
Lab scopeSkill Task (AI)
Step 1 📁 Create boundary and failure scenario cases
Step 2 🛡️ Run AI-generated tests and check transaction exception guards
Skill Task Validation Transaction
Expected output fds-validation-report.md
Enter lab
🚀 Advanced Missions — AI-Based Software Feature Completion Course
MISSION 1
Mission 1

Mission 1. Check Service Completeness with AI

Mission 01: Jointly check facts, assumptions and gaps in AI's diagnosis

Planners and developers review AI's quality diagnosis together and agree on the evidence and priority of fixes for loading feedback, save failures and policy breaks.

TargetDesign decision record doc (DDL)
Key toolCodex Client Workspace
Lab scopeDesign Decision Log & Knowledge Mgmt
Step 1 📂 Prepare the technical design meeting transcript (tech-design-meeting.md)
Step 2 🔍 Ask Codex to structure decision items, reasons and alternatives reviewed
Decision Log Architecture Knowledge Mgmt
Expected output design-decision-log.md (decision record doc)
Enter Mission 1 lab
MISSION 2
Mission 2

Mission 2. Use It from Start to Finish

Mission 02: Planner–developer joint check of E2E user flows

Don't accept AI's suggested E2E scenario as-is; check together the path from a beginner's view, failure recovery and whether data is kept.

TargetException scenario report and responses
Key toolCodex Client Workspace
Lab scopeUsability Scoring & Quality Review
Step 1 📂 Prepare the DB physical schema doc (database-schema.md)
Step 2 🛡️ Use Codex to find all concurrency·integrity exception cases and plan responses
Edge Cases Concurrency Soft Delete
Expected output edge-case-analysis.md (quality evaluation report)
Enter Mission 2 lab