Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions src/aelfrice/hook.py
Original file line number Diff line number Diff line change
Expand Up @@ -958,8 +958,9 @@ def user_prompt_submit(
# #816 hot-path: record belief_touches alongside the ring
# append, sharing the ring's fire_idx so JSON ring + sidecar
# table track the same monotonic counter. v1 is write-only;
# the rerank consumer is gated on R7c (DESIGN.md v1 ship
# list item 7). Fail-soft: never breaks the hook.
# the originally-modelled rerank consumer is
# deferred-with-evidence post-R7c (see #848). Fail-soft:
# never breaks the hook.
if _next_fire >= 1 and injected_ids:
_record_touches(
session_id=session_id,
Expand Down Expand Up @@ -1191,8 +1192,10 @@ def _record_touches(

v1 ships INJECTION-only events (DESIGN.md v1 §"Event kinds — H4
FAIL → INJECTION-only"); only bit 0 of ``event_kinds_bitmask`` is
set. v1 writes but does not read this state — the rerank consumer
is gated on the H3 fidelity test post-R7c.
set. v1 writes but does not read this state — the
originally-modelled posterior-rerank touch-temperature multiplier
consumer is deferred-with-evidence post-R7c and is not scheduled
(see #848).

Fail-soft: path-resolution, store-open, or insert failure prints
one line to stderr and never propagates. Touch state is
Expand Down
7 changes: 5 additions & 2 deletions src/aelfrice/store.py
Original file line number Diff line number Diff line change
Expand Up @@ -488,8 +488,11 @@ def _check_insert_belief_authority() -> None:
# the per-session reset semantic from locked federation decision
# #661 — touch state is local to the owning project DB; foreign
# federated beliefs come in cold every read. Rerank consumer is
# NOT wired in v1 (DESIGN.md v1 ship list item 7); writes
# accumulate against the eventual H3 fidelity test, gated on R7c.
# NOT wired in v1 (DESIGN.md v1 ship list item 7); the
# originally-modelled posterior-rerank touch-temperature multiplier
# is deferred-with-evidence post-R7c and is not scheduled (#848).
# Writes are retained as substrate for any future H3 mechanism
# that pre-registers different falsification criteria.
"""
CREATE TABLE IF NOT EXISTS belief_touches (
belief_id TEXT NOT NULL,
Expand Down
Loading