core: memory-pressure ROI, word-debt constitution, core-zero gate #5

Merged
PerishFire merged 51 commits from core/memory-pressure-roi into main 2026-07-14 11:06:20 +00:00
Owner

Soul-memory pressure workstream + Liberte four-track word policy + core-zero campaign (strand ss_0d11cd5a): core word debt 300 -> 0, structure fully zero, contract-evidence wire classification, hard core-zero gate with regression tests. All batches Liberte-approved with occurrence-level accounting; wire spellings byte-identical; OpenAPI/CLI digests unchanged.

Soul-memory pressure workstream + Liberte four-track word policy + core-zero campaign (strand ss_0d11cd5a): core word debt 300 -> 0, structure fully zero, contract-evidence wire classification, hard core-zero gate with regression tests. All batches Liberte-approved with occurrence-level accounting; wire spellings byte-identical; OpenAPI/CLI digests unchanged.
Bundle wide operation inputs into single-word values (Reply, Collapse,
Breach, Signal, Drain, Line, Walk) and seat repeated free-function
receivers on owning objects (Database, ArtifactStore, Probe, Http).
Feishu normalize folds onto the adaptor; upgrade finalize drops a
redundant scope pass-through. Behavior and wire contracts are unchanged.

Negentropy structural debt is now param=0 receiver=0 with only word debt
remaining.
Classify Negentropy word findings into wire/test/core/internal tracks,
pin a baseline, and fail guard when total or core debt grows. Wire and
test stay observable only. Adds `runseal :word-debt` for report, hapax
samples, and baseline refresh. No bulk renames or vocabulary registration.
Liberte follow-up: a total hard gate re-blocks wire/test/internal growth.
Keep total movement observed; only core occurrences fail the ratchet.
Operator ruling: wire includes HTTP/serde, provider, CLI/env, and durable
SQLite schema seats. Refresh the word-debt baseline after reclassification.
Core hard-gate unchanged.
Liberte-approved Pareto slice 1:
- ContextAdmission → Admission
- ContextIncidentInput → Pressure
- StrandExecutionBudget → Execution
- StrandExecutionUsage → Usage
- RawProviderProfile → Profile

Classifier: PascalCase types on compatibility-boundary paths seat as
wire (public ToSchema / HTTP / durable seats). OpenAPI/CLI digests
unchanged. Refresh word-debt baseline (core 300 → 122).
Liberte-approved Pareto slice 2 (strand ss_b1842565…):
- failure: Stage, Metadata, Cause, Operation, Failure
- drive::Input (no flat store::Input re-export)
- memory_pressure::Gate, driver::{Output,Driver}
- StreamErrorSink → ErrorSink
- ProviderFault / RuntimeFault (amended; keep provider/runtime distinction)

OpenAPI unchanged. Refresh word-debt baseline.
Liberte-approved Pareto slice 3 (strand ss_cc059eb7…):
- Classify upgrade.rs and upgrade/** as wire (finalize protocol).
- Internal renames: Artifact, Identity, Manifest, Probe, Dpkg, Store,
  Host, Launch (UpgradeLaunchRequest).

Protocol enum/type names and serde wire spellings unchanged.
Refresh word-debt baseline.
Liberte-approved Pareto slice 4 (strand ss_241589d1…):
- Wire classifier: object_store, santi-error, server/error, webhook.rs+/**
- Notice bus: Observation, Observed, Event, Bus, State (module seats kept)
- Assembly/compact: Overlay, Plan, Range, Capsule, Material
- Object store public renames rejected (need object_store:: seat + semver)

Refresh word-debt baseline (core 86 → 43).
Liberte-approved C1 batch (strand ss_0d11cd5a…), pathword precedent:
- store/db/migration/{effect,im,receipt}; service/{bucket,notice}
- service/flow/memory; service/text/delta; assembly/prompt
- context/budget; object/store; workspace; chat/completions (provider)
- text/source (santi); service_prompt folded into service/tools
- tracks.ts: two mechanical WIRE_PATH glob syncs for the approved
  relocations (chat/completions.rs, object/store.rs); same families,
  same classification; not a W1/W3 reclassification.
- santi::text_source module path (unsupported) removed; supported items
  now crate-root exports read_im_reply_text / read_inbox_seed_text.

Zero identifier renames; wire literals byte-identical; contract tests
green. core 43 → 29; internal 859 (14 compound mod decls burned);
wire 712 / test 487 unchanged (occurrence-level verified). Baseline
untouched per ruling; ratchet green.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Liberte-approved C2 batch (strand ss_0d11cd5a…):
- failure::Operation → Assembly, Prompt, Admission(Context|Execution),
  Persistence(Thinking|Text|Assistant|Completion), Tool
- flow::budget::ToolBatchAdmission → budget::Verdict
- text::delta::TextDeltaUpdate → delta::Update

turn.* literals byte-identical (hand-written name() match unchanged).
core 29 → 19; occurrence-diff: exactly the 10 rows burned, zero new,
zero cross-track. Baseline untouched; ratchet green.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Liberte-approved C3a batch (strand ss_0d11cd5a…):
- tools/shell.rs: Args, Prepared, Outcome (NotDispatched → Failed), Pipe
- flow/memory: Policy, Snapshot; store/assembly: Preview
- service/drive.rs: drive::Outcome; service/error.rs: error::Sink
- materials::Key (cache alias); timing::Turn (qualified refs)
- failure: Cause::Budget(Admission, Box<SantiError>) reusing C2 family
- pub mod workspace: Root, Uri; root re-exports of the pair removed
  (reviewed public source-API change); constants/helpers keep root seats

Wire literals and serde field names untouched (shell Args keys command/
cwd unchanged). core 19 → 3; occurrence-diff: exactly the 16 rows
burned, zero new, zero cross-track. Baseline untouched; ratchet green.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Liberte-approved C3b batch (strand ss_0d11cd5a…):
- SantiService → service::Service; SantiServiceConfig → service::Config
- pub mod service; old crate-root exports removed, no aliases
  (reviewed public source-API change; workspace-internal consumers
  in santi-api, santi, and tests migrated to the qualified seat)

No wire representation involved. core 3 → 1; occurrence-diff: exactly
the two rows burned. Remaining core row is StrandMaterial (F-i: held
for the W3 model-family slice). Baseline untouched; ratchet green;
35/35 suites; contract digests unchanged.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Liberte-approved W3 slice 1 (strand ss_0d11cd5a…):
- .runseal/wire-schema.json: sorted OpenAPI components.schemas list +
  SHA-256 of the canonical exported document (matches the contract
  test pin byte-for-byte)
- word-debt/guard verify the evidence against a fresh export every
  run; stale or missing evidence fails closed with a regenerate
  instruction (runseal :word-debt --sync-wire-schema, explicit+atomic)
- exact case-sensitive PascalCase match may lift core -> wire only
  when the workspace declaration is unique; ambiguity declines loudly

No Rust code, wire spellings, WIRE_PATH, or baseline touched.
core 1 -> 0; wire 712 -> 713; occurrence-diff: exactly the
StrandMaterial reference row. Ratchet green.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
guard: enforce the core-zero gate
All checks were successful
guard / guard (pull_request) Successful in 3m41s
e5523db217
Liberte-approved C4 + I1 (strand ss_0d11cd5a…):
- core hard-fails on any occurrence, independent of baseline;
  diagnostics name token+location, bounded list + total + follow-up
  command; wrapper exit code IS the gate verdict
- baseline: core entry removed; retained tracks refreshed to the
  measured post-W3 state (wire 713 / test 487 / internal 859,
  total 2059) per consent
- I1: internal rise above baseline warns loudly (file, counts, +delta)
  and stays non-blocking; falls prompt a same-batch baseline lowering
- gate regression tests on the production parse/evidence/ratchet path:
  synthetic core failure, green path, internal-rise warning,
  stale-evidence fail-closed, ambiguity declines override, unique
  binding lifts; guard gains a deno test step

No classification changes in this commit (occurrence sets identical).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
PerishFire deleted branch core/memory-pressure-roi 2026-07-14 11:06:20 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
PerishFire/santi!5
No description provided.