Change sentinel
What kind of silent change does a decision chain imply?
An engineering lead uses this set to see when a status moved, which kind of move the decision chain implies, who it touches, what a first note would say, and what was decided the last time a similar change appeared. Findings are detected on a graph, blast radius is computed over that graph, follow-ups are drafted for the owners, and an approval or a dismissal is stored as a decision so a later question can find the precedent.
Change kinds, detection, blast radius and precedent lookup are deterministic workflows. Notebook 04 is the one model call: it drafts follow-up text for findings the engine has already classified. The README states that nothing in this set is an agent. Notebook 01 places the lead at the fictional company Harbor and Pine Software.
What question this set answers
A changed status is a signal, not a complete decision. Follow how evidence about the changed record leads to a proposed response and how the eventual decision is recorded.
The README lists the kinds as a new status, a regression, a reopening, a reversal or an unauthorized change. Notebook 01's proof names regression, reopen, reversal, unauthorized change, or plain progress.
Notebook 01 prints each transition with its kind and rule. Notebook 02 looks for a regression, a reopen, a reversal, an unauthorized change, and a clean transition with no finding. Notebook 03 prints hop count and node ids. Notebook 04 drafts one follow-up per person in each open finding's blast radius (30 people, 7 alerts); the recorded template is 7 BUG-14 drafts. Notebook 05 stores an approval as a decision and returns it for a similar change.
A scripted notebook runs with no model and has no browser checkpoint. A local-live notebook runs against a local FalkorDB with no model call and prints a graph read-back. The Codex live notebook runs on the ChatGPT-plan Codex route with no call quota, records usage per call, and is traced into Phoenix.
How to run it
From the kit root recohut-kit. scripts/check_change_sentinel_notebooks.py enforces this order.
uv venv .venv-change-sentinel
uv pip install --python .venv-change-sentinel/bin/python -e '.[codex,ticketing,evals-phoenix,phoenix]' falkordb==1.7.1 pandas nbconvert ipykernel ruff
.venv-change-sentinel/bin/python -m ipykernel install --user --name change-sentinelThe server image is falkordb/falkordb:v4.22.0 (module version 42200). The Python client is falkordb==1.7.1. Version 1.8.0 exists but is new, and this set does not use it. Graphs are kit_change-sentinel_<name> at redis://127.0.0.1:16379 (container kit-falkordb-shared, same image). Phoenix is 20.23.0 at http://127.0.0.1:16006, never the travel instance on port 6006. On 2026-10-20 the owned Phoenix (kit-proof-eval-env-phoenix) was already running. If it is not, start it before notebook 04:
.venv-change-sentinel/bin/python -m recohut_kit.evals.env up --root .runtime/decisions-phoenixExecute each notebook once, in order, with kernel change-sentinel and a 900-second timeout:
.venv-change-sentinel/bin/jupyter nbconvert --to notebook --execute --inplace --allow-errors \
--ExecutePreprocessor.timeout=900 --ExecutePreprocessor.kernel_name=change-sentinel \
examples/change-sentinel/<notebook>.ipynb.venv-change-sentinel/bin/python scripts/check_change_sentinel_notebooks.py
.venv-change-sentinel/bin/python scripts/check_change_sentinel_notebooks.py --executedRuntime files go under examples/change-sentinel/.runtime/<notebook-stem>/, ignored as .runtime/, and notebook 04 also appends receipts to docs/change-sentinel/codex-usage.jsonl. Notebooks 02, 03, and 05 each rebuild their own kit_change-sentinel_* graph, delete only an earlier graph from this set, and leave it in place; notebook 01 uses no database and notebook 04 uses an in-memory graph. A notebook never drops a graph it did not create. No cloud resource is planned, so no ledger cleanup cell applies.
The fixture is synthetic demo_company in examples/company-brain-common: one regression and two refused claims. Notebooks 02 and 05 add claims labelled constructed. Only notebook 02 reads HERB (CC BY-NC 4.0, non-commercial, kept in .runtime/, never committed) through company-brain-common, and prints counts and status labels with no HERB text. Notebook 04 uses recohut_kit.providers.codex over agents/travel-marketplace-agent/data/local/codex-auth, read in place and never copied or printed. The route rejects top_logprobs.
The README's 2026-10-20 re-execution says notebooks 01 to 05 each finished in a fresh kernel with 0 error cells and 0 unexecuted cells, every Proof claim is enforced by an assertion, and the --executed checker passes for all five. Notebook 04 first failed at cell 9 when Phoenix at 127.0.0.1:16006 was unreachable. Attempt 2 finished clean: 30 live Codex calls, 7 findings, 30 drafts in the generated state, and 60 Phoenix spans (30 chain, 30 LLM) whose token counts equal the receipts. The orchestrator's review of each checkpoint is pending.
Notebooks in order
| Notebook | What it does | Recorded output |
|---|---|---|
01-change-kinds-from-decision-chains.ipynb | Scripted, 0 model calls. Folds gold claims and prints each transition with its kind and rule. | yes |
02-regression-reopen-reversal-and-unauthorized.ipynb | Local FalkorDB, 0 model calls. Prints the four finding kinds and reads counts and ids from kit_change-sentinel_findings. | yes |
03-blast-radius-from-the-graph.ipynb | Local FalkorDB, 0 model calls. Prints the BUG-14 radius, hops and node ids on kit_change-sentinel_blast against a hand-written set. | yes |
04-drafted-follow-ups-codex-live.ipynb | Codex live, no call quota. Drafts one follow-up per person and traces calls in Phoenix project kit-change-sentinel. | yes |
05-approval-recorded-as-decision-and-precedents.ipynb | Local FalkorDB, 0 model calls. Records an approval on kit_change-sentinel_precedents and returns it for a similar change. | yes |
What the recorded outputs show
Saved outputs are 15, 17, 17, 15 and 15 cells. The lines below are the ones present.
Notebook 01 prints 13 gold claims over 4 topics and authority is a table in code. Anyone may report or support; issue_status is the assignee or QA (QA Engineer, QA Lead); issue_assign is an Engineering Manager; schedule is the product owner. The fold prints 8 decisions, 13 links, digest 87d1d2bd75b4. Relations print {'opens': 4, 'supersedes': 4, 'supports': 2, 'conflicts': 2, 'pending': 1}.
Notebook 02 prints graph module 42200 on redis 8.10.2 and graph kit_change-sentinel_findings: 30 nodes, 67 edges (PR 6, Person 12, Scope 2, Subject 10). It prints 12 constructed claims on 4 subjects and 7 alerts: {'regression': 3, 'unauthorized_change': 2, 'reversal': 1, 'reopen': 1}. The fixture regression says tideway/BUG-14 was fixed since 2026-03-05 and became reopened on 2026-03-07, under rule: regression:fixed->reopened, quoting "Reproduced on 2.4.1 with 8,000 rows, so I am reopening BUG-14." (demo_m20).
Notebook 03 prints the same module line and graph kit_change-sentinel_blast: 30 nodes, 67 edges, including DEPENDS_ON 3, KNOWS 12 and SUBSCRIBED 12. The change is regression-649c834ac581832e on tideway/BUG-14/status. The radius is 7 people, subjects tideway/BUG-14, tideway/release-2.4.2 and tideway/acme-quarter-close, scopes ['tideway'], hops 2. Expected and computed people are demo_p02, demo_p05, demo_p07, demo_p08, demo_p09, demo_p10 and demo_p12, with people equal: True and subjects equal: True.
Notebook 04 prints 7 open alerts, 30 people to address before the model runs, then template drafts: 7, route recorded:template. The demo_p02 template restates the BUG-14 regression, why that person is included, the demo_m20 quote, and "Please check whether the earlier fix still holds." The connection cell prints Phoenix 20.23.0; Codex access left 41 minutes and model gpt-6-luna; receipts codex-usage.jsonl.
Notebook 05 prints graph kit_change-sentinel_precedents: 30 nodes, 67 edges and open alerts at 2026-03-08T09:00:00Z: unauthorized_change, regression. Request respond:regression-649c834ac581832e is state pending, version 0, preview complete True, recipients the same seven people. The consequence says approving releases the drafts to their own send approvals, and that nothing is sent by this approval. Then demo_p09 refused: Actor is outside this human request's permitted audience and state approved by demo_p01 at version 1.
What is not shown or not run
The README says each notebook finished with 0 unexecuted cells. The output text still ends early, so later proofs have no print here.
Notebook 01 names a comparison with expected.json and one honest mismatch; nothing after the link counts shows it. Notebook 02 names a clean transition with no finding, a read-back of counts and ids, and HERB counts for product VizForce; nothing after the BUG-14 story shows them. Notebook 03 names an in-memory match and a path query; the text stops at that heading. Notebook 04's live-draft cell stops before a print. The failed Phoenix attempt is under docs/change-sentinel/attempts/. Notebook 05's proof says the approval is read back with its decider and evidence, and that read-back is not in the recorded excerpt. The proof also names a precedent score and an alert withdrawn then reopened; the text stops after demo_p01.
No FalkorDB Browser is installed, and orchestrator review of each checkpoint is pending. Notebook 04 requests no send. HERB text is not printed, and no output shows the top_logprobs rejection. The README names the verification ledger, versions.json, notebook-attempts.json, codex-usage.jsonl, and notebook-check-post.txt.
Where it fits in the kit
The README places behaviour in recohut_kit.change_sentinel and recohut_kit.decision_chains. src/recohut_kit/change_sentinel/ is read-only to this set and reads chains from src/recohut_kit/decision_chains/. Glue (company graph, authority table, writer, row builders) is support.py, loaded by every notebook.
| Notebook | Imports in the saved code cells |
|---|---|
| 01, 02 | importlib.util, sys, pathlib, pandas, IPython.display. No recohut_kit import; they load support.py. |
| 03 | Those, plus recohut_kit.change_sentinel.blast_radius.blast_radius. |
| 04 | Those, plus recohut_kit.change_sentinel.drafts.draft_follow_ups. |
| 05 | importlib.util, sys, pathlib, recohut_kit.change_sentinel.approve (alert_request, respond, response_from_request), recohut_kit.change_sentinel.contracts.SentinelError, recohut_kit.change_sentinel.drafts.draft_follow_ups, recohut_kit.change_sentinel.precedents.precedents, recohut_kit.decision_chains.cypher.FalkorChainStore, recohut_kit.decision_chains.store.incremental_write. |
How is this page?
Last updated on