tianheng 0.1.10

天衡 (Tianheng) — reactive architectural governance. The shell that weighs declared intent against observed shape and turns a Rust-declared constitution into a CI reaction; composes all 三儀 — the static 圭表 (guibiao), semantic 渾儀 (hunyi), and runtime 漏刻 (louke, CI face) dimensions. Govern by reaction, not instruction.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! The constitution — the governed shape, declared in Rust (the single source of
//! truth). It lives in its own file so it can be protected as the law:
//! `.github/CODEOWNERS` routes any change here to the steward (an amendment), so an
//! agent cannot silently weaken a boundary to make CI pass. See `AGENTS.md`.
//!
//! This sample drives the in-repo fixtures; a real project declares its own.

use tianheng::prelude::*;

pub fn constitution() -> Constitution {
    Constitution::new("example").boundary(
        CrateBoundary::crate_("example-core")
            .deny_external_dependencies()
            .because("example-core is a domain-free core and must stay dependency-light"),
    )
}