Skip to content

Document durable admission assessments and risk-aware shadow policy - #185

Merged
ezutfen merged 1 commit into
mainfrom
claude/documentation-update-gxtrn3
Sep 7, 2026
Merged

Document durable admission assessments and risk-aware shadow policy#185
ezutfen merged 1 commit into
mainfrom
claude/documentation-update-gxtrn3

Conversation

@ezutfen

@ezutfen ezutfen commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

This PR adds comprehensive documentation for two major admission-control features and updates deployment/configuration guidance across multiple docs.

Summary

Adds design documentation, deployment configuration, and API reference updates for:

  1. Durable admission assessments (issue ENG-PROMOTION-003D — Persist promotion assessments and expose next-action state #159) — append-only recording of every Path A promotion/admission decision with canonical decision hashing, outcome/next-action vocabularies, and operator-facing APIs for inspection and legacy backfill
  2. Risk-aware shadow admission policy (issue ENG-PROMOTION-003C — Replace the universal 72-hour gate with versioned risk-based admission profiles #158) — declarative, pure-function policy evaluation against three recall surfaces using effective risk/epistemic/retention assessments, shadow-only (no authority over actual promotions)

Key Changes

  • docs/design.md: Added two new sections (§9a and §9b) documenting both features with full contract references, outcome/next-action vocabularies, operator surface (endpoints, CLI commands), and implementation status notes
  • docs/deployment.md:
    • Added §7b "Recall tuning" with comprehensive tables for recall budgets, freshness, anti-feedback-loop penalties, and relationship-aware expansion configuration
    • Clarified ENGRAM_PROVISIONER_DATABASE_ROLE configuration requirement
    • Fixed documentation of ENGRAM_HOST/ENGRAM_PORT (currently dead code, always bind 0.0.0.0:8000)
    • Updated portal enrollment gating documentation
  • .env.example: Added configuration sections for admission assessments capture flag, relationship-aware recall expansion weights/limits, anti-feedback-loop penalty tuning, and clarified dead host/port settings
  • adapters/mcp-server/README.md:
    • Added engram_assessments and engram_reassess tool documentation
    • Updated engram_diary_write to document admin representation via on_behalf_of_principal_id and deprecate legacy principal parameter
    • Clarified visibility parameter now includes public option
  • docs/embeddings.md: Added engram setup-embeddings validation command documentation and clarified activation coverage threshold configuration
  • docs/service-provisioning.md: Clarified delegation.review.issue permission for purpose-bound review brokers
  • adapters/engram-hooks/README.md: Added ENGRAM_HOOKS_REPORT_LIFECYCLE_TELEMETRY configuration option
  • docs/usage-metering.md: Updated provider call event types to include extraction
  • README.md: Added high-level summaries of both admission features with links to full ADR documentation

Implementation Status

Both features are documented as:

All documentation includes explicit notes that these are observability/audit features that do not change promotion thresholds, weights, or lane rules.

https://claude.ai/code/session_01EEb5QpuqsPoTo6ZPjqn6Ah

Documents the previously-undocumented durable admission assessments
(#159) and risk-aware shadow admission policy (#158) subsystems in
docs/design.md and README.md, and fixes drift found across a systematic
audit of every doc against its corresponding implementation:

- .env.example: add 22 settings that existed in engram/config.py but
  were missing from the example file (admission capture, relationship-
  aware recall tuning, anti-feedback penalties, portal enrollment,
  provisioner role); note ENGRAM_HOST/ENGRAM_PORT are currently dead
  config (engram serve and the Docker image hardcode 0.0.0.0:8000).
- docs/deployment.md: add a full "Recall tuning" section, document the
  provisioner role env var and portal enrollment toggle, note the dead
  host/port settings.
- docs/embeddings.md: document `engram setup-embeddings` and two
  undocumented backfill flags.
- docs/usage-metering.md: add two missing event types and a missing
  cost field to the telemetry taxonomy.
- docs/service-provisioning.md: fix an incomplete service-permission
  list (was missing delegation.review.issue).
- adapters/mcp-server/README.md: document engram_assessments and
  engram_reassess tools; fix stale engram_remember/engram_diary_write
  parameter descriptions.
- adapters/engram-hooks/README.md: document a missing env var and
  correct the secret-screening description.
- README.md: fix the "Explicitly deferred" list still claiming the
  CCA/MemPalace production migration (BL-011) was pending when it
  completed 2026-09-01 per the backlog; flip its capability-matrix row
  to dogfood-verified.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EEb5QpuqsPoTo6ZPjqn6Ah
@ezutfen
ezutfen merged commit 10bbd27 into main Sep 7, 2026
8 checks passed
@ezutfen
ezutfen deleted the claude/documentation-update-gxtrn3 branch September 7, 2026 00:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants