Update HLL Vietnam AI Platform integration with ai-platform.json, extended task lifecycle folders, config-aware runner, lightweight validation, report ignore rules, and platform documentation updates.
8.0 KiB
TASK-107 - Update AI Platform Integration
Goal
Update the HLL Vietnam AI Platform infrastructure to align with the newer ai-dev-platform-template conventions while preserving this repository's product context, workflow discipline and HLL Vietnam-specific documentation.
This is platform infrastructure work only. It must not change product behavior, backend logic, frontend behavior, Docker deployment behavior, Elo/MMR logic or RCON server #03 handling.
Context
HLL Vietnam currently has a lightweight AI Platform layer under ai/, root AGENTS.md, task lifecycle folders and local Codex worker support. The next platform update should move the repository toward a controlled development-team workflow where ChatGPT acts as orchestrator between the human client/product owner and the development team, and Codex CLI workers execute only explicit tasks.
Important current direction:
- The Elo/MMR system is paused for now because it is too complex for the current phase.
- Comunidad Hispana / RCON server #03 is obsolete for future planning unless explicitly reintroduced.
- Historical workers and complex ranking/materialization pipelines must not be expanded by this task.
- The priority is to update AI Platform conventions safely and incrementally.
Generic template text must be adapted to HLL Vietnam. Do not overwrite repository-specific context with generic ai-dev-platform-template content.
Steps
- Inspect the current platform files listed in
Files to Read First. - Compare the current repository conventions conceptually with the newer
ai-dev-platform-templateconventions:- root
ai-platform.json - task lifecycle folders:
ai/tasks/pendingai/tasks/in-progressai/tasks/reviewai/tasks/blockedai/tasks/obsoleteai/tasks/done
- metadata-based task template with front matter:
idtitlestatustypeteamsupporting_teamsroadmap_itempriority
- config-aware
scripts/codex-runner.ps1 scripts/run-integration-tests.ps1- optional
.github/workflows/codex-worker.yml ai/reports/.gitkeep- generated report ignore rules
- root
- Add
ai-platform.jsonadapted to HLL Vietnam. Include repository-specific task paths, project identity and workflow configuration needed by local platform scripts. - Add missing task lifecycle directories with
.gitkeepfiles where needed. - Add
ai/reports/.gitkeepif the reports directory is introduced or missing. - Update
ai/task-template.mdto the newer metadata-based format while keeping HLL Vietnam-specific instructions, constraints and validation expectations. - Update
scripts/codex-runner.ps1so it reads platform configuration fromai-platform.jsoninstead of relying only on hard-coded repository assumptions. - Add or update
scripts/run-integration-tests.ps1with repository-appropriate lightweight validation. The script should fail safely when optional checks are not configured. - Add
.github/workflows/codex-worker.ymlonly if it is consistent with the current repository automation policy and does not create unintended deployment or product behavior. - Update
.gitignoreto ignore local runtime and generated platform artifacts, including:backend/runtime/- generated
ai/reports/*.mdfiles - keep
ai/reports/.gitkeeptrackable
- Update
AGENTS.md,ai/README.md,ai/repo-context.mdand/orai/architecture-index.mdonly where necessary to reflect the new platform workflow. - Document any relevant architectural or process decisions in the task outcome.
Files to Read First
AGENTS.mdREADME.md.gitignoreai/README.mdai/repo-context.mdai/architecture-index.mdai/task-template.mdscripts/codex-runner.ps1docker-compose.yml.github/workflows/*if present
Rules:
- Read these files before implementation.
- Keep product behavior unchanged.
- Use the existing HLL Vietnam context as the source of truth.
- Treat template conventions as a reference, not content to copy blindly.
Expected Files to Modify
Likely files:
ai-platform.json.gitignoreAGENTS.mdai/README.mdai/repo-context.mdai/architecture-index.mdai/task-template.mdscripts/codex-runner.ps1scripts/run-integration-tests.ps1ai/tasks/review/.gitkeepai/tasks/blocked/.gitkeepai/tasks/obsolete/.gitkeepai/reports/.gitkeep
Possible file, only if consistent with the repository automation policy:
.github/workflows/codex-worker.yml
Rules:
- Do not modify product files unless there is a platform-only reason and it is documented.
- Do not modify unrelated files.
- If additional files become necessary, explain why in the task outcome.
Expected Files Not To Modify
backend/**product logicfrontend/**docker-compose.yml- Elo/MMR implementation files
- RCON server #03 implementation or configuration
Constraints
- This task is platform infrastructure work, not product work.
- Do not change frontend behavior.
- Do not change backend behavior.
- Do not change Docker deployment behavior.
- Do not change Elo/MMR code or expand Elo/MMR pipelines.
- Do not remove, rename or alter RCON server #03 in this task.
- Do not expand historical workers or complex ranking/materialization pipelines.
- Preserve HLL Vietnam-specific project context, Spanish-speaking community identity and current repository direction.
- Adapt template conventions to this repository instead of blindly copying generic template text.
- Keep the change narrow, reviewable and implementation-ready.
Validation
Before completing the task ensure:
git statushas been reviewed.git diff --name-onlyshows only expected platform files.ai-platform.jsonexists and is valid JSON.- The task lifecycle folders exist:
ai/tasks/pendingai/tasks/in-progressai/tasks/reviewai/tasks/blockedai/tasks/obsoleteai/tasks/done
- Required empty platform directories contain
.gitkeepfiles where needed. - Generated reports such as
ai/reports/*.mdare ignored by Git. ai/reports/.gitkeepremains trackable.backend/runtime/is ignored by Git.- No local runtime data is committed.
- A lightweight repository validation command has been run if available.
- If
scripts/run-integration-tests.ps1exists after the change, run it. - If no integration tests are configured for the affected scope, document that explicitly in the task outcome.
- Frontend, backend and Docker behavior remain unchanged.
Change Budget
- Prefer fewer than 10 modified files for this platform update.
- Prefer small documentation and script changes over broad rewrites.
- Split follow-up work into separate tasks if the scope grows beyond platform integration.
Outcome
- Added repository-specific
ai-platform.jsonfor task paths, worker settings and HLL Vietnam constraints. - Added missing lifecycle folders:
review,blockedandobsolete. - Added
ai/reports/.gitkeepand ignored generatedai/reports/*.mdfiles while keeping.gitkeeptrackable. - Updated the task template to include metadata front matter and HLL Vietnam-specific constraints.
- Updated
scripts/codex-runner.ps1to read local worker paths and prompts fromai-platform.json. - Updated
scripts/run-integration-tests.ps1to perform lightweight platform validation only. - Updated platform documentation in
AGENTS.md,ai/README.md,ai/repo-context.mdandai/architecture-index.md. - No frontend, backend product logic, Docker behavior, Elo/MMR logic or RCON server #03 handling was changed.
Validation performed:
- Parsed
ai-platform.jsonwithConvertFrom-Json. - Ran
powershell -ExecutionPolicy Bypass -File scripts/run-integration-tests.ps1. - Parsed both PowerShell scripts with the PowerShell language parser.
- Confirmed
ai/reports/example.mdis ignored andai/reports/.gitkeepis trackable. - Reviewed
git diff --name-onlyandgit status --short.
No product integration tests are configured for this platform-only scope.