Imported from bare git on Zurich
Go to file
James def0c6fb1d test: rewrite agent credential tests for client-side generation
Rewrites 7 skipped integration tests to work with client-side credential generation:

- TestScopedAccess_agent_sees_only_scoped_entries
- TestScopedAccess_agent_forbidden_on_unscoped
- TestScopedAccess_all_access_sees_everything
- TestScopedAccess_agent_cannot_manage_agents
- TestScopedAccess_agent_cannot_create_system_types (renamed from _modify_scopes)
- TestScopedAccess_agent_entries_invisible
- TestKeyLeak_agent_credential_is_opaque

Adds MintCredential/ParseCredential test helpers to lib/cvt.go for creating
type 0x01 client credential tokens in tests. These simulate the client-side
credential generation that normally happens in browser/CLI.

Adds test helper methods to integration_test.go:
- reqAgent(): sends requests with CVT wire token authentication
- mintWireToken(): creates type 0x00 wire tokens for agent auth

Security boundaries tested:
- Agents with limited scope cannot access owner-only entries
- Agents with all_access can see all entries
- Agents cannot manage other agents (create/list)
- Agents cannot create system-type entries (agent, scope)
- Server responses never contain raw L2/L3 key material

Fixes #14
2026-04-09 03:45:42 -04:00
clavis test: rewrite agent credential tests for client-side generation 2026-04-09 03:45:42 -04:00
clavitor.ai web: split language/currency selector into two dropdowns 2026-04-09 03:39:51 -04:00
design-system chore: auto-commit uncommitted changes 2026-03-24 06:02:53 -04:00
docs Capture workflow friction from Hans' first real test session 2026-04-09 01:22:01 -04:00
forge/dispatcher dispatcher: add domain-to-agent mapping and opencode agent spawning 2026-04-09 03:20:27 -04:00
issues telemetry: fix Cardinal Rule violations - add unique error codes 2026-04-08 18:05:00 -04:00
marketing Update all CLAUDE.md files to reference CLAVITOR-AGENT-HANDBOOK.md 2026-04-08 15:24:51 -04:00
operations Update all CLAUDE.md files to reference CLAVITOR-AGENT-HANDBOOK.md 2026-04-08 15:24:51 -04:00
scripts Fix daily-review.sh bugs found by Hans 2026-04-09 01:14:36 -04:00
.DS_Store Update all CLAUDE.md files to reference CLAVITOR-AGENT-HANDBOOK.md 2026-04-08 15:24:51 -04:00
._.DS_Store chore: auto-commit uncommitted changes 2026-03-24 06:02:53 -04:00
._CLAVITOR-PRINCIPLES-REVIEW.md Update all CLAUDE.md files to reference CLAVITOR-AGENT-HANDBOOK.md 2026-04-08 15:24:51 -04:00
._CLAVITOR-PRINCIPLES.md Update all CLAUDE.md files to reference CLAVITOR-AGENT-HANDBOOK.md 2026-04-08 15:24:51 -04:00
CLAUDE.md Update root CLAUDE.md - mention Gitea login in Quickstart 2026-04-09 01:25:23 -04:00
CLAVITOR-AGENT-HANDBOOK.md Add workflow section: where to find tasks and review process 2026-04-09 01:06:20 -04:00
CLAVITOR-PRINCIPLES-REVIEW.md Update CLAVITOR-PRINCIPLES.md with all feedback fixes 2026-04-08 13:48:54 -04:00
CLAVITOR-PRINCIPLES.md Add George (market research) to agent personas 2026-04-08 14:43:52 -04:00
CLAVITOR-PRINCIPLES.md.backup Update all CLAUDE.md files to reference CLAVITOR-AGENT-HANDBOOK.md 2026-04-08 15:24:51 -04:00
HANDBOOK-SECTION-ANALYSIS.md Update all CLAUDE.md files to reference CLAVITOR-AGENT-HANDBOOK.md 2026-04-08 15:24:51 -04:00
HANDBOOK-STRUCTURE-PROPOSAL.md Update all CLAUDE.md files to reference CLAVITOR-AGENT-HANDBOOK.md 2026-04-08 15:24:51 -04:00
PRINCIPLES-META-REVIEW.md Update all CLAUDE.md files to reference CLAVITOR-AGENT-HANDBOOK.md 2026-04-08 15:24:51 -04:00
QUICKSTART.md Fix QUICKSTART.md with foundation approach - tea CLI just works 2026-04-09 01:25:08 -04:00
consolidate-clavitor-db-auto.sh Update all CLAUDE.md files to reference CLAVITOR-AGENT-HANDBOOK.md 2026-04-08 15:24:51 -04:00
consolidate-clavitor-db-production.sh Update all CLAUDE.md files to reference CLAVITOR-AGENT-HANDBOOK.md 2026-04-08 15:24:51 -04:00
consolidate-clavitor-db.sh Update all CLAUDE.md files to reference CLAVITOR-AGENT-HANDBOOK.md 2026-04-08 15:24:51 -04:00
verify-db-consolidation.sh Update all CLAUDE.md files to reference CLAVITOR-AGENT-HANDBOOK.md 2026-04-08 15:24:51 -04:00