2.8 KiB
2.8 KiB
AGENTS.md — Auth-Yes System Guidelines & Operating Protocol
1. Project Context
Auth-Yes is a standalone, ultra-low-friction, zero-trust Identity and Access Management (IAM) fabric and WebAuthn Passkey authority.
- Runtime: Deno 2.x (TypeScript 5.x)
- Architecture: Modular Deno Workspace (
sdk/,server/,ui/,spire_ffi/,infra/) - Web API & SSR: Hono with pure Hono SSR JSX (Strictly React-free)
- Workload Mesh: ConnectRPC daemon + Rust SPIFFE/mTLS FFI crate
(
spire_ffi/) - Data Layer: Dedicated PostgreSQL 18 + Valkey 8 (L1/L2 RESP3 Client Tracking)
- Cookie Scope: Wildcard
.atyg.orgdomain scoping with host-collision sweep
2. Key Architecture Standards
- Zero-Dependency SDK:
@auth-yes/sdkmust remain 100% free of backend/database imports. ConnectRPC contracts live insdk/gen/. - Security: Session invalidation and revocation MUST always be handled
server-side (
deleteCookieacross host and wildcard domains). - Quality Gates: Every PR must pass
deno fmt,deno task lint,deno task check, anddeno test. - Dual Remote & SDK Distribution: Development is tracked on GitHub
(
origin:git@github.com:mrteye/auth-yes.git). All commits and SDK changes must be mirrored to Gitea (gitea:git@git.atyg.org:tylerg/auth-yes.git) so that external agents (e.g. Jules) and unauthenticated local projects can consume raw SDK modules viahttps://git.atyg.org/tylerg/auth-yes/raw/branch/main/sdk/mod.ts.
3. Strict Operating Protocol: Methodical Deliberation & Approval Gate
- Read-Only First & Deep Context Preservation:
- When asked to investigate, audit, analyze, critique, or report, NEVER make assumptions or jump directly into modifying files or pushing commits.
- Spontaneous changes without team alignment break architecture and lose context. Always deliberate methodically across at least two levels of reasoning before proposing changes.
- Mandatory Reporting & Options Presentation:
- Inspect files and architecture using read-only tools.
- Synthesize and present a structured markdown report detailing:
- Exact state vs. master specification
- Root causes of discrepancies or missing features
- Proposed remediation options with trade-offs
- Strict Gate on Code Modification:
- Offer potential code changes clearly, but NEVER execute edits
(
write_to_file,replace_file_content) or git commits until the user explicitly reviews the proposal and commands execution.
- Offer potential code changes clearly, but NEVER execute edits
(
4. History & Context Link
This repository was cleanly extracted from ed-droid.
- Reference Conversation:
Auth-Yes Genesis Transcript
(
conversation://6a3fa402-ae0a-4231-9991-b0ff79a61e0f)