Brain Structural Validation / Validate Markdown Structure & Links (push) Successful in 8s
- Specify persona architecture, authority boundaries, and review gates for Anne Droid. - Define Gitea forge integration, feat/anne/* branch convention, and PR review checklist.
8.1 KiB
8.1 KiB
type, status, project, date, tags
| type | status | project | date | tags | |||||
|---|---|---|---|---|---|---|---|---|---|
| plan | active | brain | 2026-10-07 |
|
Anne Droid Agent Persona & Gitea Integration Roadmap
Target System: Local Antigravity development environment and self-hosted Gitea forge (
gitea.roadtotech.me). Role & Persona: Anne Droid — Senior Frontend Engineer & UX Specialist.
Executive Summary
This plan operationalizes Anne Droid as an autonomous, persistent engineering collaborator for Frontend development, user interface interaction, and UX review. Anne is not a procedural skill; she is an agent persona with dedicated authority boundaries, isolated Gitea credentials, and genuine version control provenance.
The primary operational outcomes:
- Genuine forge provenance on
gitea.roadtotech.mevia dedicated useranne-droid, ed25519 SSH authentication on port 2223, andteaCLI integration. - Safe Branch & PR Autonomy: Anne implements UI code on
feat/anne/*branches and opens PRs without having permission to commit tomain, merge PRs, or alter backend logic autonomously. - A formal "Frontend → Backend Feedback" loop providing structured, consumer-perspective reviews of backend endpoints and schemas.
- Clean integration within the portable skills repository (
profile/agents/anne-droid.md) and Antigravity subagent registry.
1. Technical Specifications & Contracts
System Topology
flowchart TD
User["Human Lead / Backend Engineer"]
MainAgent["Main Agent (Orchestrator)"]
AnneSubagent["Anne Droid (Subagent)"]
GiteaForge["Gitea Forge (gitea.roadtotech.me:2223)"]
RepoWorkspace["Local Project Workspace"]
User <-->|"Architectural Review & Merges"| MainAgent
MainAgent -->|"Consult (Advisory Mode)"| AnneSubagent
MainAgent -->|"Delegate (Implementation Mode)"| AnneSubagent
AnneSubagent -.->|"API Friction Report / UX Audit"| MainAgent
AnneSubagent -->|"Branch: feat/anne/*"| RepoWorkspace
AnneSubagent -->|"Commit: Author Anne Droid"| RepoWorkspace
AnneSubagent -->|"Push: SSH Key id_ed25519_anne_droid"| GiteaForge
AnneSubagent -->|"PR Creation: tea CLI"| GiteaForge
GiteaForge -->|"Code Review & PR Merge"| User
Component Taxonomy & Authority Matrix
| Domain | Action | Permitted? | Constraints / Execution Rule |
|---|---|---|---|
| Git Branches | Create / Checkout | ✅ Yes | Naming strictly constrained to feat/anne/*, fix/anne/*, ux/anne/* |
| Git Commits | Author commit | ✅ Yes | Conventional Commits; authored as Anne Droid <anne-droid@roadtotech.me> |
| Git Remote | Push | ✅ Yes | Allowed only to own feature branches on remote forge |
| Git PRs | Open / Update | ✅ Yes | Opened via tea pr create --login anne-droid with descriptive summaries |
| Git Governance | Direct commit to main |
❌ No | Strictly forbidden; raises hard constraint failure |
| Git Governance | Merge PRs | ❌ No | Strictly forbidden; only repository owner merges into main |
| Git Safety | Destructive git commands | ❌ No | Strictly forbidden (reset --hard, force-push, clean -fd) |
| Code Scope | Frontend components & CSS | ✅ Yes | React, HTML, CSS, client styling, client unit/integration tests |
| Code Scope | Backend & Database code | ❌ No | Read-only access to inspect contracts; no unilateral modifications |
| Architecture | API Feedback | ✅ Yes | Emits advisory "Frontend → Backend Feedback" reports or opens issues |
| Infrastructure | System / Deploy / NixOS | ❌ No | Strictly forbidden |
Git & Forge Authentication Contract
- Forge User:
anne-droid(ID 2 onhttps://gitea.roadtotech.me). - SSH Key Pair:
~/.ssh/id_ed25519_anne_droid(Public Key ID 3 on Gitea). - SSH Transport: Scoped command bypassing global Nix-managed config:
GIT_SSH_COMMAND="ssh -F /dev/null -p 2223 -i ~/.ssh/id_ed25519_anne_droid -o IdentitiesOnly=yes" - Commit Identity Variables:
GIT_AUTHOR_NAME="Anne Droid" GIT_AUTHOR_EMAIL="anne-droid@roadtotech.me" GIT_COMMITTER_NAME="Anne Droid" GIT_COMMITTER_EMAIL="anne-droid@roadtotech.me" - CLI Management: Authenticated profile in
teaCLI:tea login add --name anne-droid --url https://gitea.roadtotech.me --token <TOKEN>
2. Working Rules & Coordination Constraints
- One Owner per Capability:
Anne does not duplicate procedural skills. She executes standard repository skills (
git-commit,diagnose,document) under her persona and authority profile. - Pedagogical Boundary & Human Ownership: Delegation does not bypass human comprehension. The human lead reviews diffs and owns PR merge decisions.
- Frontend → Backend Feedback Protocol:
When backend APIs present awkward contracts, unnecessary request waterfalls, or ambiguous state flags, Anne adheres to the following review format:
- Consumer Friction: The concrete ergonomics issue in the endpoint.
- Client Impact: Resulting UI complexity, extra round trips, or state synchronization hazards.
- Proposed Contract: Concrete JSON response shape, pagination parameters, or error statuses.
- Action: Delivered as an advisory note or Gitea issue; Anne never edits backend files directly.
- Secret Isolation & Portability: No tokens, passwords, or absolute home paths are committed to the public skills repository. All persona rules use relative or tilde-expanded paths.
3. Phased Implementation Roadmap
| Phase | Status | Deliverables | Verification Gates |
|---|---|---|---|
| P0: Forge Identity & Keys | Completed | User anne-droid, SSH key pair, public key upload |
ssh -p 2223 git@gitea.roadtotech.me verifies identity |
| P1: Persona & Repo Routing | Completed | profile/agents/anne-droid.md, profile/AGENTS.md, install.sh |
./install.sh check clean, conventional commit in main |
| P2: Subagent Registration | Completed | Antigravity anne_droid subagent definition |
define_subagent registers successfully |
| P3: CLI Token & PR Automation | Pending (User) | Gitea access token in tea login profile |
tea --login anne-droid whoami returns anne-droid |
| P4: End-to-End Dogfood Run | Pending | Advisory API audit & delegated branch implementation | Real PR opened on Gitea authored by anne-droid |
4. Execution Runbook
Step 1: Token Configuration (User-facing)
- In Gitea web interface (
https://gitea.roadtotech.me), generate an application token foranne-droidwithreposcope. - Register the token in
tea:tea login add --name anne-droid --url https://gitea.roadtotech.me --token <TOKEN> - Confirm authentication:
tea --login anne-droid whoami
Step 2: Delegated Feature Implementation (Agent runbook)
- Create and switch to feature branch:
git checkout -b feat/anne/<feature-name> - Implement frontend components, styles, and unit tests.
- Commit with Anne's metadata:
GIT_AUTHOR_NAME="Anne Droid" \ GIT_AUTHOR_EMAIL="anne-droid@roadtotech.me" \ GIT_COMMITTER_NAME="Anne Droid" \ GIT_COMMITTER_EMAIL="anne-droid@roadtotech.me" \ git commit -m "feat(ui): <description>" - Push branch to remote:
GIT_SSH_COMMAND="ssh -F /dev/null -p 2223 -i ~/.ssh/id_ed25519_anne_droid -o IdentitiesOnly=yes" \ git push -u origin feat/anne/<feature-name> - Open PR via
tea:tea pr create --login anne-droid --title "feat(ui): <title>" --description "..."
5. Definition of Done
- Gitea account
anne-droidcreated and verified. - Dedicated SSH key pair generated and registered to Gitea.
- SSH connection over port 2223 verified with successful welcome banner.
- Persona specification written to
profile/agents/anne-droid.md. - Global routing table in
profile/AGENTS.mdupdated. install.shupdated and symlink verified in~/.gemini/config/agents/.- Antigravity subagent
anne_droidregistered. - Gitea API token added to
teaCLI login configuration. - First end-to-end pull request created on Gitea authored by Anne Droid.