Skip to content

Hosted Review Mode — security & memory hardening track #119

Closed

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.

Activity

  1. self-assigned this
    on Jun 27, 2026
  2. added
    security
    hosted-mode
    tracking
    on Jun 27, 2026
  3. CompleteDotTech commented on Jun 27, 2026

    @CompleteDotTech
    Contributor

    issues.zip @BunsDev Attached includes the .md files and the diagrams for the architecture.

  4. BunsDev commented on Jul 7, 2026

    @BunsDev
    MemberAuthor

    PR #132 merged as 175e65e, closing #97, #100, #101, #102, #105, #108.

    Still open on this track, each with a scoping comment describing the remaining gap: #98, #99, #103, #104, #106, #107, #109, #110, #111, #112. Mostly missing acceptance-criteria tests, scope-field validation, sync lifecycle handling (#109/#111), and wiring citation enforcement into the live review path (#112). This tracker stays open until those land.

  5. BunsDev commented on Jul 7, 2026

    @BunsDev
    MemberAuthor

    PR #134 addresses all ten remaining items on this track, following the foundation from #132. One work unit, branch hosted-119-gaps, with per-gap tests:

    Verification: fmt, cargo check --workspace, clippy --workspace --all-targets -- -D warnings, and full workspace tests all clean; result.example.json validates against the updated schema with ajv.

    Coordination note: review.memory is a new property on the v2 result envelope. The coven-github adapter's schema copy needs the same additive declaration before it strictly validates results from this build.

    The sub-issues and this tracker close automatically when #134 merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

hosted-modesecuritytracking

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions