Skip to content

Commit 766b17d

Browse files
authored
Merge pull request #30 from Sankhya-AI/codex/developer-brain-context-firewall
Add developer brain context firewall
2 parents 12d3a49 + 9fd4ce6 commit 766b17d

43 files changed

Lines changed: 8764 additions & 617 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/test.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,20 @@ jobs:
3131
3232
- name: Run tests
3333
run: pytest tests/ -v
34+
35+
- name: Run router replay gate
36+
env:
37+
DHEE_DATA_DIR: ${{ runner.temp }}/dhee-router-gate
38+
run: |
39+
dhee router gate \
40+
--harness all \
41+
--sessions-dir tests/fixtures/golden_replay/sessions \
42+
--golden tests/fixtures/golden_replay/golden.jsonl \
43+
--allow-insufficient
44+
45+
- name: Inspect redacted real replay corpus
46+
run: |
47+
dhee router corpus \
48+
--harness all \
49+
--sessions-dir tests/fixtures/golden_replay/redacted_real/sessions \
50+
--golden tests/fixtures/golden_replay/redacted_real/golden_needs_review.jsonl

CHANGELOG.md

Lines changed: 57 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,63 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/), and this
88

99
- Public Dhee is now positioned and packaged as **Dhee Developer Brain**:
1010
local memory, handoff, harness setup, and git-backed repo context.
11-
- Removed the public web UI package and `dhee ui` command surface. The
12-
enterprise dashboard and commercial code now live in the private
13-
`dhee-enterprise` repository.
11+
- Rewrote the README as a concise first-read product page focused on why Dhee
12+
matters, the 30-second token-router proof, install, integrations, benchmarks,
13+
and the public-core/paid-team-layer boundary.
14+
- Added `dhee demo token-router`, a deterministic context-firewall demo that
15+
shows raw tool-output tokens, digest tokens, savings, and expansion pointers
16+
without requiring a live agent session.
17+
- Added a public `SECURITY.md` with Dhee's local-first trust boundaries,
18+
threat model, `.dheemem`/repo-context/daemon controls, reporting process, and
19+
public-core vs paid-governance security split.
20+
- Added canonical `dhee://` URI aliases over DheeFS for stable cross-tool
21+
references such as `dhee://state/current` and `dhee://handoff/latest`.
22+
- Added `dhee runtime status|restart|stop|doctor` with a local-only runtime
23+
daemon, managed-venv visibility, and doctor integration.
24+
- `dhee shell`, MCP `dhee_shell`, and compiled context actions now use the
25+
local runtime daemon when it is healthy, with automatic fallback and
26+
`DHEE_RUNTIME_DISABLE=1` escape hatch.
27+
- `dhee uninstall` now performs packaging-grade cleanup: stops the daemon,
28+
disables native harness wiring, removes only installer-owned symlinks, strips
29+
the exact managed `# dhee` shell PATH block, and deletes the managed data/venv
30+
directory.
31+
- MCP `dhee_read` and `dhee_grep` now use the local runtime daemon when
32+
healthy. MCP `dhee_bash` can also use the daemon, but only when the daemon
33+
process is started with `DHEE_RUNTIME_ENABLE_BASH=1`, a cwd allowlist, and a
34+
timeout cap; successful results include runtime audit metadata.
35+
- Source-side read routing now extracts richer language-aware digests for
36+
TS/TSX components and types, Java contracts, shell scripts, SQL objects,
37+
and log severity signals.
38+
- Router quality reports now include explicit release-facing quality gates
39+
for token savings, expansion rate, projected cache-read per turn, and
40+
context-governance incidents.
41+
- Router replay now supports Claude Code and Codex JSONL transcript streams
42+
plus golden annotations for task parity scores and stale-context incidents.
43+
- Added `dhee router gate` for CI/release gating and wired the checked-in
44+
Claude/Codex golden replay corpus into GitHub Actions. It exits non-zero on
45+
failed replay quality gates and supports `--allow-insufficient` for partial
46+
telemetry jobs.
47+
- Added `dhee router harvest` and `dhee router corpus` to grow the golden
48+
replay suite from real Claude Code/Codex sessions without checking in raw
49+
prompts, tool outputs, absolute paths, or secrets. Harvested annotations are
50+
marked `needs_review` until a human validates task parity.
51+
- Golden replay reports now count `pending_review_sessions`, release gates fail
52+
when included annotations are still pending, and `dhee router annotate` can
53+
promote a reviewed session to `pass` or `fail` without hand-editing JSONL.
54+
- Hardened signed `.dheemem` v1 import/inspect validation: manifest signature
55+
failures now report cleanly, required payload files and `handoff.json` are
56+
enforced, and duplicate, unexpected, absolute, or traversal archive members
57+
are rejected before import.
58+
- `.dheemem` import and dry-run results now include a compact
59+
`handoff_bootstrap` summary from the signed `handoff.json`, so a receiving
60+
harness can inspect continuity before or after import.
61+
- `.dheemem` packs now also carry signed repo-shared context payloads
62+
(`repo_context/manifest.json` and `repo_context/entries.jsonl`); import
63+
dry-runs report the repo-context bootstrap and merge/replace can restore
64+
entries into a target repo while rejecting tampered, symlinked, or
65+
likely-secret-bearing context.
66+
- Public Dhee exposes local CLI/MCP/data primitives so dashboard products can
67+
render governance without duplicating core context logic.
1468
- Added repo-shared context commands: `dhee link`, `dhee unlink`,
1569
`dhee links`, `dhee promote`, `dhee demote`, and `dhee context`.
1670
- Repo-shared context uses append-only `.dhee/context/entries.jsonl` with

0 commit comments

Comments
 (0)