Skip to content

Hosted Review Mode — security & memory hardening track #119

Description

@BunsDev

Hosted Review Mode — security & memory hardening track

Tracking issue for the 16-part design audit filed on 2026-06-20 by @romgenie. The goal of this track is to make Coven Code safe to run as a hosted GitHub App reviewer, where one process reviews many repositories across many tenants. The current memory and session model is correct for a single local user but lacks the tenant/installation/repo/branch isolation, trust classification, provenance, and audit controls required for hosted operation.

The 16 issues form a coherent spec when read in this suggested order. They reference the source files most affected: src-rust/crates/core/src/memdir.rs, claudemd.rs, session_storage.rs, session_memory.rs, team_memory_sync.rs, settings_sync.rs, system_prompt.rs, and query/src/lib.rs.

Suggested order of attack

1. Hosted-mode foundation

The flag/mode everything else conditions on.

2. Identity & scoping (multi-tenant correctness)

Replace path-keyed identity with canonical GitHub identity.

3. Trust & poisoning defense (core security work)

The memory-poisoning defense.

4. Metadata & provenance (audit & inspection)

5. Secrets, sync, retention (operational hygiene)

Notes for whoever picks this up

  • The 16 issue bodies reference local markdown sources at coven-code/issues/NN-*.md that were never committed to the repo — only the GH issues exist. If @romgenie still has the markdown, landing it in coven-code/issues/ would be useful for offline review and version control.
  • Each issue cites concrete source files and acceptance criteria, so individual issues are estimable.
  • Pairing suggestion: the four sub-tracks (foundation / identity / trust / metadata / hygiene) are roughly independent at the API layer, so 2-3 of them could be developed in parallel after the foundation lands.
  • Tests for hosted mode behavior should live next to local mode tests in each affected crate; do not regress local CLI behavior.

Status

  • 2026-06-27: 16 issues labeled security + hosted-mode. No PRs yet.

Metadata

Metadata

Assignees

Labels

hosted-modeHosted review mode (GitHub App reviewer) worksecuritySecurity-sensitive issue or worktrackingMeta-issue tracking a body of related work

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions