This repository has been archived on 2026-07-08. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
can-you-assist/.claude/rules/architecture.md
tegwick f4e965cc04 Add Claude Code support, credential routing polish, and CYA-WP-0006
Mirror sibling-repo Claude setup (CLAUDE.md + .claude/rules/*), align
AGENTS.md with fleet credential-routing template, and close housekeeping
gaps (WP-0002-T05 done, WP-0005 status note). Draft CYA-WP-0006 for
Profile 1 production hardening as the proposed next slice.
2026-06-19 20:33:13 +02:00

1.1 KiB

Architecture

Request pipeline (src/cya/orchestrator.py):

  1. Collect local context (context/collector.py)
  2. Recall memory via phase-memory ports (memory/__init__.py)
  3. Classify risk (safety/risk.py) — rule-based; memory signals add caution only
  4. Call LLM via LLMAdapter Protocol (llm/adapter.py) — FakeLLMAdapter today
  5. Render explainable response (Rich)

Memory (Profile 0 + Profile 1 spike):

  • User-controlled local JSON behind explicit ports (remember, recall, forget, export)
  • Kinds: preference, retrospection, interaction_goal, reflection
  • Directory/project-bound activation via activation_context
  • cya retrospect feeds higher-order memory; optional verbal lesson capture (Profile 1)

Boundaries: See repo-boundary.md. No production path bypasses the adapter or memory ports.

Quick Reference

  • Memory contract: MemoryVision.md
  • Activation/retrospection concept: docs/cya-memory-activation-and-retrospection-concept.md
  • phase-memory feedback: docs/phase-memory-optimization-suggestions.md
  • ~/state-hub/mcp_server/TOOLS.md — MCP tool reference