Files
CASAN/packages/casan-harness
thanhnvandClaude Opus 4.8 4bb184b935 feat(harness): implement Plan-20 transparent agentic client bridge
Wave 0 + Wave 1 core of the transparent agentic-client integration: a
developer types prompts normally in Claude Code / Codex while every
certified turn still carries a full H1->H7 trace and an H6 record.

- agentic_bridge.py: stdlib-only lifecycle state machine (begin/pre-tool/
  post-tool/telemetry/finalize/abort + report/doctor). Single-model
  invariant (never calls a model), fail-closed at the side-effect point,
  admission TTL + canonical-project/session binding, atomic state under
  .specify/state/agentic-sessions/, secret redaction, null-not-zero H6.
- agentic-lifecycle.schema.json: client-agnostic JSON contract.
- adapters/claude-code + adapters/codex: thin hook renderers + config
  templates that call the core bridge.
- phase-agentic-bridge-tests.sh: C1-C12 acceptance + threat suite (30/30).
- devkit templates/{claude,codex} + windows/install-agentic.ps1
  (install/doctor/uninstall with manifest, path-safe).
- docs/casan Windows + security/bypass guides; plan status -> IMPLEMENTED.
- harden generate-agentops-dashboard.py aggregation against null H6 costs.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-23 20:44:07 +07:00
..
2026-07-11 15:56:31 +09:00
2026-07-11 15:56:31 +09:00
2026-07-11 15:56:31 +09:00

casan-harness (package skeleton)

Core CASAN harness (gate H1→H7) as a reusable package, independent of domain data. Populated incrementally by Plan-01 (Phase 0→6). During migration, files move here from .specify/ wave-by-wave; the full harness gate must stay green (PASS=64 FAIL=0) after each phase.

Layout:

  • scripts/ — bash + powershell gate logic (H1→H7), path resolver casan-paths.sh
  • security/ — filter/policy rules (prompt-filter, pii-rules, output-policy, ...)
  • governance/, agentops/ — H5/H6 code
  • level5/ — L5 config (drift/kpi/model-fallback/tool-registry YAMLs)
  • templates/, config/ — spec/plan templates, loop-policy
  • tests/ — reproducible harness test suites + integrity manifest

Runtime state (logs, audit chain, tenant state) is NOT part of this package — it stays with the app under CASAN_STATE_ROOT. Domain data (golden-runs, corpus, input) lives in apps/okr/domain/ under CASAN_DOMAIN_ROOT.