# Authoritative Process Agent Guide — UP-AI v1.5 ## Purpose This directory defines the universal AI-Native Unified Process (**UP-AI v1.5 Generic Framework**). It is designed to be version-controlled independently (via `git subtree` or as a standalone submodule/repo) while governing product development. 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: 1. `tech-profile.yaml` (at project root) for active technology stack and tailoring tier. 2. `process/AI_Native_Unified_Process_v1.md` for authoritative process, stages, gates, and artifact rules. 3. `process/02_Skills_Usage_Guide.md` for stage order and skill invocation. 4. `.agents/skills//SKILL.md` (physically in `process/.agents/skills/`) for the canonical procedure of an applicable skill. 5. `04_generated_documentation/00_process_control/` for current project decisions, assumptions, ambiguities, change requests (`CR-xxx`), traceability, and checkpoints. 6. `process/process_change_register.md` for process framework modifications (`PCR-xxx`). **Single Canonical Skills Location:** All AI agent skills are canonical and located under `.agents/skills//SKILL.md` (symlinked from `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 `04_generated_documentation/` (`00_process_control` through `08_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-change` for changes to this process, its gates, formats, or skills. - Run the applicable `up-traceability-gate` at 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-checkpoint` before 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 `). 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 as `Delivered` or `Gate 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 `Baselined` to `Delivered`. 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-.md` using the session start time in UTC. - Use only lowercase ASCII letters, digits, and hyphens in ``. - 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-checkpoint` or 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: 1. Confirm the requested artifacts or code changes exist and are internally consistent. 2. Run applicable tests, validation, and traceability gates. 3. Update governance records or checkpoints when the process requires them. 4. Update the session transcript without embedding full diffs or sensitive data. 5. Summarize changed files, verification, open risks, and any required user decision.