From bb2eb1c31b5eeddf1efa6a3da45146c70e25f406 Mon Sep 17 00:00:00 2001 From: abrichr Date: Mon, 23 Nov 2026 00:31:29 -0500 Subject: [PATCH] fix(docs): move learn probe row into capabilities/ and refresh stamp --- ...395-learn-per-request-bookkeeping-from-read-only-requests.md | 1 + capabilities/CAPABILITIES.md.sha256 | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 capabilities/04-the-core-a-checked-entry-every-time/0395-learn-per-request-bookkeeping-from-read-only-requests.md diff --git a/capabilities/04-the-core-a-checked-entry-every-time/0395-learn-per-request-bookkeeping-from-read-only-requests.md b/capabilities/04-the-core-a-checked-entry-every-time/0395-learn-per-request-bookkeeping-from-read-only-requests.md new file mode 100644 index 0000000000..623d9f603d --- /dev/null +++ b/capabilities/04-the-core-a-checked-entry-every-time/0395-learn-per-request-bookkeeping-from-read-only-requests.md @@ -0,0 +1 @@ +| Learn per-request bookkeeping from read-only requests, with no approval: `learn probe` reads the whole-database frame of one contract, sends only GET and HEAD requests as the agent, and reads again; a changed row of the acting user that every round (at least two) shows (users table derived from the manifest's actor parameters by foreign key) becomes a `frame.learned` excuse with `source: read_only_probe`, exact columns only, never a column the probe, the parameters or a contract names. Added rows, other users' rows and rows no user owns are not admitted (added rows are listed for `learn approve`), and only contracts whose every effect creates new records, or that read the target's versions on every other effect's surface, get the excuses (an update with no version source can't see a lost update without the bookkeeping move). Not yet: background rows that move with no request, derived rows a write recomputes | (this PR) | Real app replay (first-contact retest, four apps, frozen vs `main` vs this branch on identical writes): correct writes stopped on the app with per-user last-login bookkeeping 77 -> 36 of 77, in-scope harms 26 of 26 stopped before and after; on a second app 46 -> 34 of 46 replayed agent writes, its three lost updates still stopped; no change on two apps without such bookkeeping and on two held-out apps (the probe learned nothing there). One out-of-scope late duplicate that bookkeeping used to mask now passes; adversarial tests on SQLite, MySQL and PostgreSQL | `openadapt-flow learn probe`, [LEARNED_EXCUSES.md](packages/flow/docs/LEARNED_EXCUSES.md) | diff --git a/capabilities/CAPABILITIES.md.sha256 b/capabilities/CAPABILITIES.md.sha256 index a121e3ae63..ce6569dcc8 100644 --- a/capabilities/CAPABILITIES.md.sha256 +++ b/capabilities/CAPABILITIES.md.sha256 @@ -1 +1 @@ -e43b02968b96995aa15093365c5405a2ef95166f04506c3137b21ba63f3a6afb +93e2f3c7e6f63fe1c2bc96a55ee62c99a582690971839a0e84e250ce01d421da