Metadata-Version: 2.4
Name: sancio-harness
Version: 1.2.0
Summary: Sancio Harness (SH) — Sancio runtime substrate adapter for AI King ecosystem (MIT)
Project-URL: Homepage, https://github.com/aiking931931/ai-king
Project-URL: Issues, https://github.com/aiking931931/ai-king/issues
Project-URL: AI King, https://ai-king.dev
Author-email: "AI King (Chen-Xuan Wang)" <me@ai-king.dev>
License-Expression: MIT
Keywords: agent-governance,ai-king,aiking,cbua,guards,harness,hooks,post-tool-deny,runtime,sancio,substrate-adapter,wiredo
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: System Administrators
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: System :: Distributed Computing
Classifier: Typing :: Typed
Requires-Python: >=3.10
Requires-Dist: aiking-core<2.0,>=1.1.1
Requires-Dist: universal-harness<2.0,>=1.1.1
Description-Content-Type: text/markdown

# sancio-harness

> Sancio substrate adapter for AI King — bridges AI King's engine to
> the Sancio runtime that targets breaking past the Claude Code
> L1/L8/L6 platform ceiling.

## Install

```bash
pip install "aiking[sh]"
# or directly:
pip install sancio-harness
```

## What this adapter does

Sancio runs as a long-lived agent gateway (canonical deploy at
`sancio.ai-king.dev`). It implements two enforcement channels Claude
Code's SDK does not expose:

1. **Observation-channel deny** — rewrite `is_error=True` payloads so
   the LLM sees deny verdicts as tool errors rather than silently
   accepted side effects.
2. **Cross-iteration policy mutation** — escalate policy changes
   between turns instead of only within a single PostToolUse window.

`sancio-harness` is the *AI King engine bridge* for that runtime —
wires the engine's guards / hooks / ZIQ / FEATURE_META into Sancio's
two enforcement channels. The Sancio runtime binary itself ships
through the separate `sancio` distribution.

## License

MIT. The Sancio runtime is also MIT; the AI King engine
(`aiking-core`) underneath remains AGPL.

## Phase 2 status (2026-05-12)

Namespace placeholder. Public API stubs land in Wave UH-3b. Track
progress via
`_AI_BRAIN/05_Planning/aiking-master-plan-v1-2026-05-12.md` §2 thread
D4 (R4 Sancio runtime breakthrough).
