Ghostlight/crates/ghostlight/Cargo.toml

26 lines
618 B
TOML
Raw Normal View History

Give the world library a sealed public boundary Completes the move begun in the previous commit, which does not build on its own. `ghostlight` is now a library crate with an explicit public surface; `ghostlight-dungeon` is a consumer that reaches the kernel through it and cannot reach past it. Deleted first: `mod world;`, the nine unused re-exports, the `#[cfg(test)]` re-export block, `fixture_controller_opportunities`, the five inference `fixture_*` items, Dungeon's own `VerifiedPrincipalEvidence`, and Dungeon's direct `ghostlight-persona-projection` dependency. The seal. `WorldKernel`, `WorldState`, `reduce`, `apply_effect`, `CommandEnvelope`, `AuthenticatedCaller`, the journal writer, every ID `issue()`, and `ScopeDigest::fixture` carry no `pub` of any kind and no feature gate; the crate declares no `[features]`, so no build configuration can lift them. Ten `compile_fail` doc-tests stand outside the crate and pin each one to its error code. The principal seam. The library owns `VerifiedPrincipalEvidence` with a public `new`; `mailbox` still bounds it by `valid_until` at ingress. A Dungeon test counts the minters in production source and fails at anything but one. The port contract (Q1-7). `PreparedInference::prepare` (renamed from the free `prepare_invocation`), `InferenceOutput::new`, and `InferenceFault::{retryable, recovery_required, integrity_violation}` are now the port's public constructors, so a consumer-implemented `InferencePort` can answer without test-only wrappers. `TracingInferencePort` is an ungated decorator. The tick-ordering test (Q1-8) derives its cover from a real active world through `derive_cover` and asserts two cells; its ordering and shared-tick assertions are unchanged. Behaviour is unchanged. The library's 420 unit tests are the base `world::` set with the prefix stripped — the names diff empty. Dungeon keeps all 49 of its names and gains two Soul tests the boundary requires. No schema string, digest preimage, or store layout is touched. Windows verification only; the Linux release is Idunn's build. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-16 02:06:07 +02:00
[package]
name = "ghostlight"
version.workspace = true
edition.workspace = true
license.workspace = true
[dependencies]
async-trait.workspace = true
chrono.workspace = true
codex-connector.workspace = true
cultcache-rs.workspace = true
ghostlight-persona-projection = { path = "../ghostlight-persona-projection" }
reqwest.workspace = true
Give the world library a sealed public boundary Completes the move begun in the previous commit, which does not build on its own. `ghostlight` is now a library crate with an explicit public surface; `ghostlight-dungeon` is a consumer that reaches the kernel through it and cannot reach past it. Deleted first: `mod world;`, the nine unused re-exports, the `#[cfg(test)]` re-export block, `fixture_controller_opportunities`, the five inference `fixture_*` items, Dungeon's own `VerifiedPrincipalEvidence`, and Dungeon's direct `ghostlight-persona-projection` dependency. The seal. `WorldKernel`, `WorldState`, `reduce`, `apply_effect`, `CommandEnvelope`, `AuthenticatedCaller`, the journal writer, every ID `issue()`, and `ScopeDigest::fixture` carry no `pub` of any kind and no feature gate; the crate declares no `[features]`, so no build configuration can lift them. Ten `compile_fail` doc-tests stand outside the crate and pin each one to its error code. The principal seam. The library owns `VerifiedPrincipalEvidence` with a public `new`; `mailbox` still bounds it by `valid_until` at ingress. A Dungeon test counts the minters in production source and fails at anything but one. The port contract (Q1-7). `PreparedInference::prepare` (renamed from the free `prepare_invocation`), `InferenceOutput::new`, and `InferenceFault::{retryable, recovery_required, integrity_violation}` are now the port's public constructors, so a consumer-implemented `InferencePort` can answer without test-only wrappers. `TracingInferencePort` is an ungated decorator. The tick-ordering test (Q1-8) derives its cover from a real active world through `derive_cover` and asserts two cells; its ordering and shared-tick assertions are unchanged. Behaviour is unchanged. The library's 420 unit tests are the base `world::` set with the prefix stripped — the names diff empty. Dungeon keeps all 49 of its names and gains two Soul tests the boundary requires. No schema string, digest preimage, or store layout is touched. Windows verification only; the Linux release is Idunn's build. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-16 02:06:07 +02:00
rmp-serde.workspace = true
serde.workspace = true
serde_bytes = "0.11"
serde_json.workspace = true
sha2.workspace = true
thiserror.workspace = true
tokio.workspace = true
tracing.workspace = true
uuid.workspace = true
zeroize.workspace = true
[dev-dependencies]
tempfile = "3"