Current Task

INIT-008 — HTTP Request Lifecycle

Mandatory References (read before writing any code):

- AI.md (Sections 21–27 — operational rules)
- PROJECT.md
- WORKFLOW.md
- IMPLEMENTATION_ROADMAP.md
- Sprint 0 Execution Plan
- DBP
- ADR
- MIB — locate INIT-008 and read "Files Expected"
- TCS

Review the implementation of:

- INIT-001
- INIT-002
- INIT-005
- INIT-003
- INIT-004
- INIT-006
- INIT-007

before making any changes.

Review the project memory:

.ai/memory/

to understand previous implementation decisions and architectural reasoning.

Requirements

Implement ONLY Task INIT-008.

Do NOT implement any part of INIT-012 or later tasks.

The Request lifecycle implementation must follow the approved architecture exactly.

Implement only the capabilities defined in the MIB and Sprint 0 Execution Plan.

Do NOT introduce additional HTTP features beyond the documented scope.

Expected responsibilities include only those documented for INIT-008.

Rules

- Native PHP 7.4 only.
- Framework-agnostic implementation.
- PSR-4 compatible.
- Keep Request independent from Router.
- Keep Request independent from Middleware.
- Keep Request independent from Session.
- Keep Request independent from Database.
- No Dependency Injection container.
- No Reflection.
- No business logic.
- No authentication.
- No authorization.
- No CSRF implementation (INIT-010).
- No file upload implementation unless explicitly documented.
- No response object implementation.

Create ONLY the files listed under INIT-008 "Files Expected".

If implementation requires files not listed in the documentation:

STOP.

Explain why.

Wait for approval.

If documentation conflicts are found:

STOP.

Explain the conflict.

Reference the conflicting documents.

Wait for approval.

Do NOT execute:

- git add
- git commit
- git push
- git tag
- git merge
- git checkout

Do NOT modify documentation.

Do NOT continue to INIT-012.

After implementation provide:

1. Implementation Summary
2. Files Created (verify against MIB)
3. Files Modified
4. Acceptance Criteria Verification
5. Definition of Done Checklist
6. Proposed Git Commit Message (do NOT execute)
7. Documentation Deviations (if any)

Implementation ends after INIT-008.

Wait for approval.