6.7 KiB
Repository Agent Guide — UP-AI v1.5 Project Gateway
Purpose
This repository applies the universal AI-Native Unified Process (UP-AI v1.5 Generic Framework). The core process specification, automation scripts, and skills are maintained under process/ (managed via git subtree). Keep work use-case-driven, architecture-centric, iterative, traceable, and resumable.
Read Efficiently
Read only what the task requires. Use this source-of-truth order:
tech-profile.yamlfor active technology stack and tailoring tier.process/AGENTS.mdfor authoritative process behavior, anti-placeholder rules, and stage gating.process/AI_Native_Unified_Process_v1.mdfor authoritative process, stages, gates, and artifact rules.process/02_Skills_Usage_Guide.mdfor stage order and skill invocation..agents/skills/<skill>/SKILL.md(symlinked fromprocess/.agents/skills/) for canonical skill procedures.project_sdlc/00_process_control/for current project decisions, assumptions, ambiguities, change requests (CR-xxx), traceability, and checkpoints.process/process_change_register.mdfor framework-level meta-process changes (PCR-xxx).
Single Canonical Skills Location: All AI agent skills are canonical and located under .agents/skills/<skill_name>/SKILL.md (symlinked to process/.agents/skills/). All AI agent platforms (Antigravity, Claude Code, Cursor, Codex) read directly from .agents/skills/ without file duplication or synchronization scripts.
Working Rules
- Inspect relevant artifacts and current repository state before editing; do not infer current scope from old prompts or stale plans.
- Preserve established IDs, metadata, document structure, cross-references, and traceability links.
- Follow the strict chronological folder structure under
project_sdlc/(00_process_controlthrough08_review_ready_baselines). - Make the smallest complete change. Do not regenerate unaffected documents or silently expand scope.
- Do not invent missing business behavior. Record unresolved questions in the ambiguity register and request a decision.
- Before changing baselined requirements, architecture, scope, or NFRs, invoke
up-change-request-impact; perform impact analysis and obtain the required disposition before editing affected artifacts. - Use
up-process-changefor changes to this process, its gates, formats, or skills. - Run the applicable
up-traceability-gateat Gate 5.1, Gate 9.1, and each iteration's Gate 14.1. Do not treat scope as delivered while critical gate findings remain. - Use
up-context-checkpointbefore a long pause, handoff, context exhaustion, or unresolved human decision. On continuation, verify the latest relevant checkpoint against repository state before relying on it. - Never overwrite or revert unrelated work. Never commit, push, or alter git history unless explicitly requested.
- Verify changed code with the narrowest relevant tests first, then broader checks when warranted (
scripts/run_tests.sh --scope <scope>). Report commands run and any checks not run. - Strict Anti-Placeholder Rule (No Superficial Completion): Never treat the mere structural existence of a file or template as fulfillment of its contents. Zero-row QA workbooks, empty sheet templates, stub test suites, mock-only implementations where real logic was scoped, and unimplemented UI surfaces must be flagged as
Incomplete / Pending Construction, NEVER asDeliveredorGate Passed. Conflating a shallow pass from a script with genuine engineering completeness is a critical process failure. - Granular Requirements Lifecycle: Requirements MUST NOT jump directly from
BaselinedtoDelivered. Traceability and governance must record intermediate states:Baselined→ Requirements & architecture locked.In Construction→ Iteration planned, test models authored.Implemented (Domain/Schema)→ Backend controllers, DocTypes/schemas, and unit tests passing.Delivered (E2E Verified)→ Migrations executed, Bruno API collections verified, UI/portal screens wired, manual QA workbooks densely populated, and all 4 test dimensions (Happy, Boundary, Negative, FSM Invariant) pass automated & manual checks.
Session Transcript (Required)
Every AI-assisted conversation that performs work in this repository MUST maintain one running transcript in prompts/. The primary agent owns the file for the entire conversation, including activity delegated to subagents.
Start And Naming
- At the first actionable request, create
prompts/YYYYMMDDTHHMMSSZ-session-<short-slug>.mdusing the session start time in UTC. - Use only lowercase ASCII letters, digits, and hyphens in
<short-slug>. - If the name already exists, append
-02,-03, and so on. Never overwrite a prior transcript. - Reuse that same file for all subsequent turns in the conversation. Do not create a file per turn or per subagent.
- Leave existing non-session files in
prompts/unchanged.
Record
Append entries in chronological order with an ISO 8601 UTC timestamp and speaker or agent label. Record:
- Each user prompt, preserving its substance and wording after redaction.
- Each substantive assistant response, or a faithful concise summary when the response mainly contains generated content already saved in the repository.
- Decisions, assumptions, clarifications, blockers, and requested approvals.
- A concise action summary listing files created/changed and verification outcomes.
- For every subagent: its agent label, delegated prompt, and returned response or faithful result summary.
Exclude And Protect
- Do not record hidden reasoning, chain-of-thought, internal scratch work, raw tool protocol, large command output, dependency logs, generated binaries, or full code diffs.
- Prefer a concise summary plus repository path for large generated content. Include small snippets only when needed to understand a decision.
- Redact secrets, credentials, access tokens, private keys, session cookies, personal data, and sensitive customer data as
[REDACTED]. Do not persist a secret merely because it appeared in a prompt or tool result. - Transcript logging complements process checkpoints; it does not replace
up-context-checkpointor governance registers. - Update the transcript during the session and ensure the latest user request, response, actions, and subagent results are present before ending or handing off.
Completion
Before reporting completion:
- Confirm the requested artifacts or code changes exist and are internally consistent.
- Run applicable tests, validation, and traceability gates.
- Update governance records or checkpoints when the process requires them.
- Update the session transcript without embedding full diffs or sensitive data.
- Summarize changed files, verification, open risks, and any required user decision.