Empirical resource estimation for ticket-bound URI processes. The package
measures real process trees and learns conservative scheduling envelopes from
append-only history. Runtime ownership remains in semcod; Subactor retains
authority to decide whether a Process URI may execute.
Raw command arguments, environment values, stdout, stderr and secret material are never persisted. URI query strings and fragments are removed before a URI is stored or used as the statistical key. Only the program name and an argv SHA-256 fingerprint are retained.
python -m pip install -e .
estimation run \
--process-uri 'testql://project/suite/query/run' \
--ticket PLF-1234 \
--store ~/.local/state/semcod-estimation/process-samples.jsonl \
--events ~/.local/state/semcod-estimation/process-events.jsonl \
-- python -m pytest -q
The command’s exit code is returned by estimation. Failed runs remain in
history and affect success_rate, but resource percentiles are based on
successful samples so an immediate startup failure does not look artificially
cheap.
estimation observe \
--pid 12345 \
--duration 30 \
--process-uri 'control://automation/watchdog/command/run' \
--ticket PLF-1234
Observation is bounded by duration and does not signal, restart or otherwise control the target process.
estimation validate --store ~/.local/state/semcod-estimation/process-samples.jsonl
estimation report --store ~/.local/state/semcod-estimation/process-samples.jsonl
estimation estimate \
--store ~/.local/state/semcod-estimation/process-samples.jsonl \
--process-uri 'testql://project/suite/query/run' \
--quantity 20 \
--parallelism 4
Reports expose p50, p90, mean, standard deviation, success rate and confidence.
Confidence is none, low, medium or high based on successful sample
count. Workload estimates multiply conservative p90 values by quantity and
parallelism to support queue admission and host-capacity planning.
estimation run, or observes a
service PID with estimation observe.wellmanifest.logs/event/v1 stream records the measurement outcome.estimation://history/query/estimate before admitting
similar work and compares p90 CPU, RSS and duration with host capacity.The package adopts wellmanifest/new-project and wellmanifest/logs.