72 lines
5.2 KiB
Markdown
72 lines
5.2 KiB
Markdown
# Repository Agent Guide — UP-AI v1.0
|
|
|
|
## Purpose
|
|
|
|
This repository defines and applies the universal AI-Native Unified Process (**UP-AI v1.0 Generic Framework**). 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. `README.md` for repository orientation and developer workflow.
|
|
2. `00_prompts/AI_Native_Unified_Process_v1.md` for authoritative process, stages, gates, and artifact rules.
|
|
3. `00_prompts/02_Skills_Usage_Guide.md` for stage order and skill invocation.
|
|
4. `.agents/skills/<skill>/SKILL.md` for the canonical procedure of an applicable skill.
|
|
5. `04_generated_documentation/00_process_control/` for current decisions, assumptions, ambiguities, change requests, traceability, and checkpoints.
|
|
|
|
**Single Canonical Skills Location:** All AI agent skills are canonical and located under `.agents/skills/<skill_name>/SKILL.md`. 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 <scope>`). Report commands run and any checks not run.
|
|
|
|
## 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>.md` using 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-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.
|