Half-Life 0.3.6
Freshness labels for covered read-only Hermes tool results. This release fixes
compatibility with stock Hermes 16b1d0a: the transform callback now observes its
own raw result and annotates it in one serialized operation. It registers only
transform_tool_result. The legacy post callback is a no-op. No Hermes patch is needed.
Labels
- FRESH: checked against the configured freshness rule.
- TTL_VALID: within the configured age limit, not independently checked.
- STALE: previously observed resource state changed or its age limit expired.
- UNKNOWN: freshness could not be determined.
A stamp applies only to its tool result. It does not refresh old conversation
context or block execution. Changed returned bytes get a STALE warning about the
prior result plus a FRESH stamp on the new result. A core read_file dedup envelope
is not newly returned file content. It reports the prior observation's status,
or UNKNOWN when that session has no baseline.
Installation and configuration
The plugin manifest declares Hermes >=0.22.7. Compatibility was exercised on
unmodified Hermes commit 16b1d0a639a8f6b939db72e9e9979ceeaf740ebb, Python 3.14.9.
Install this repository using the normal Hermes plugin workflow for your version.
The optional ~/.hermes/half-life.yaml configuration uses PyYAML when present;
a configuration file without PyYAML or invalid settings prevents registration.
This is separate from Hermes plugins.entries. No config_schema is claimed.
Built-in file.read and read_file revalidators identify resolved file paths and
read slices. Snapshots may use filesystem metadata and file hashing. Initial
hashing is skipped for observed files above 16 MiB. That is a size check, not a
hard I/O quota against concurrent growth. Same-size/mtime changes and observation
races are not universally detected. UNKNOWN means the available evidence is insufficient.
State and safety limits
State lives only in process memory: at most 2048 records per session,1024 sessions,
24-hour idle retention and 512 stale events. A PendingStamp is callback-local;
there is no stateful post-to-transform handoff. One engine RLock serializes
observation, comparison, record updates and legend emission, including same-resource
calls. These are entry limits, not a measured RAM or I/O budget. Restart loses state.
Runtime callback exceptions are caught, logged and leave the result unchanged.
This fail-open behavior is not a security gate. Invalid configuration can stop
registration. Gateway startup alone does not prove the plugin loaded or ran.
The plugin itself initiates no provider requests and persists no freshness records.
The private test billing fence is not part of this public plugin.
Read-only declaration: Setting read_only=True is your assertion that this revalidator only observes resource state. Half-Life cannot prove that Python callbacks are read-only or prevent them from causing side effects. Do not use callbacks that write files, modify databases, invoke mutating endpoints, or execute commands with side effects. Revalidators run with the permissions of the Hermes process.
Paths and stamps can enter tool results and logs. Demonstrate using harmless
fixtures, not secrets or personal data.
Verification
Run python -m unittest -v test_transform_compat and python test_dedup.py.
The 15 focused tests cover hook-order independence, late post as no-op, changed
bytes, legend once, expiry, errors/missing IDs, off/unsupported policies, session
and tool-call identity, same-resource races, fail-open behavior and state bounds.
Existing dedup and real-file probe regressions are retained.
A stock-Hermes rehearsal exercised actual inference requests, read_file,
stamped bytes in the next model request, concurrent/same-resource reads and changed
bytes. On November 10, 2026, a separate one-turn owner Telegram test completed
with a real provider: owner prompt, read_file, Half-Life TTL_VALID metadata,
model interpretation and a Telegram reply confirmed by the owner. The model
correctly distinguished TTL_VALID from independently verified FRESH.
This is a bounded one-turn usability check, not an always-on chat service or
proof of every revalidator. The isolated test transport and budget fence are not
included in this plugin. No provider or Telegram credentials are needed by Half-Life.
Catalog acceptance and contest submission are separate from source publication.
Publisher: DSW Enterprises. License: MIT, see LICENSE.
Text budget exception
The agreed one-time legend is 421 UTF-8 bytes against the original 400-byte target,
a 21-byte overrun. It is preserved, not described as passing that budget.
The separate per-result stamp limit is 96 bytes.
README from the reviewed commit 7135e76; it updates when the author re-pins.

DSW Enterprises