Commit Graph
98 Commits
Author SHA1 Message Date
Edgar ArakelyanandClaude Opus 5.5 2232a53d94 fix(environment): keep a later create's made object only with clocks its request stamped
followsMadeObjects only checked that a made object's clocks parsed, so a
later create whose object showed an older clock still passed, while serving
stamps the write's clock. Its clocks must now be in the rule's format and
within the stamp window of that create's request.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 11:10:57 -07:00
Edgar Arakelyan 7d01a5d5f3 Merge branch 'feat/environment-later-reads' into feat/environment-call-values 2026-10-27 08:06:04 -07:00
Edgar Arakelyan 0453253cb1 Merge branch 'feat/environment-write-quality' into feat/environment-later-reads
# Conflicts:
#	src/domain/analysisView/environmentStateWriteApply.ts
2026-10-27 08:05:57 -07:00
Edgar ArakelyanandClaude Opus 5.5 2526c65257 fix(environment): keep sorts a list showed in place ruled out, and created answers' nested members as recorded
A whole list in collection order that showed a renamed entity where a
sort by the renamed field would have moved it now rules that sort out, so
a later rename of the same entity cannot teach it. A create's answer
leaves out members its item read added inside an object the answer
showed, as the recorded answer did; the state still stores them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 08:04:56 -07:00
Edgar Arakelyan 938402f8ed Merge branch 'feat/environment-later-reads' into feat/environment-call-values 2026-10-26 22:18:22 -07:00
Edgar Arakelyan 121b7f9ab5 Merge commit 'fa647e890' into feat/environment-call-values 2026-10-26 22:18:17 -07:00
Edgar Arakelyan 2ee34513b3 Merge commit '70c9a7c20' into feat/environment-call-values 2026-10-26 22:14:39 -07:00
Edgar Arakelyan 79c0e5157d Merge branch 'feat/environment-write-quality' into feat/environment-later-reads 2026-10-26 22:13:53 -07:00
Edgar ArakelyanandClaude Opus 5.5 60876546fb chore(environment): restore the set-aside hunks on main and bump the skill to 51
Puts the blank-member docs and the empty-spelling check back beside main's
slug and composed text and heldSlugRule. Main is at skill 50 with
different text, so this branch's skill changes take 51.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 22:13:15 -07:00
Edgar Arakelyan fa647e8903 Merge remote-tracking branch 'origin/main' into feat/environment-write-quality 2026-10-26 22:12:36 -07:00
Edgar ArakelyanandClaude Opus 5.5 70c9a7c204 chore(environment): set aside two hunks next to lines main's saved-values change rewrites
Main's #7267 changes the lines beside the blank-member docs and the
empty-spelling check in explainUpdate. Setting them aside lets that merge
apply cleanly; the commit after it puts them back on top of main's text.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 22:12:28 -07:00
Edgar Arakelyan 26b2e8cc90 Merge commit '60822e070' into feat/environment-write-quality 2026-10-26 22:08:25 -07:00
Edgar Arakelyan 343721056d Merge branch 'feat/environment-later-reads' into feat/environment-call-values 2026-10-26 20:45:30 -07:00
Edgar Arakelyan 67afb9df39 Merge branch 'feat/environment-write-quality' into feat/environment-later-reads 2026-10-26 20:45:25 -07:00
Edgar ArakelyanandClaude Opus 5.5 3bf6ef397f fix(environment): answer a served delete with the deleted flag its recorded answer showed
An application may answer a delete with the record as it was and mark it
deleted only on later reads. Delete answers, single and bulk, now take
the flag's value from the recorded answer; reads of a served-deleted
entity still show it marked deleted.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 20:45:24 -07:00
Edgar ArakelyanandClaude Opus 5.5 6976a156b1 fix(environment): try a learned sort by moving each pending write in turn, as serving does
#retrySort sorted the whole collection, which a list could match while
serving, moving each renamed entity in turn against the others' values
before their own writes, gave another order. The state now records the
values each write replaced, and the retry replays the writes since a
list in collection order last showed their entities.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 20:45:08 -07:00
Edgar Arakelyan 2e39201646 Merge branch 'feat/environment-later-reads' into feat/environment-call-values 2026-10-26 20:30:27 -07:00
Edgar Arakelyan 88e16f1058 Merge remote-tracking branch 'fork/feat/environment-write-quality' into feat/environment-later-reads 2026-10-26 20:29:41 -07:00
Edgar ArakelyanandClaude Opus 5.5 94460e80bf fix(environment): move updated entities only by placed sorts and keep query-sorted reads from confirming order
Replay moved an updated entity by a sort a create only guessed, while the
update plan exported only placed sorts, so a read could confirm an update
by a move serving would not make. Both now use the placed sort. A passing
list read clears its entities from the moved set only when the state
decides the order of every entity it lists, so a read whose query sorts
it no longer hides an earlier move from a later sort check.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 20:29:23 -07:00
Edgar Arakelyan ed83de322c Merge remote-tracking branch 'fork/feat/environment-later-reads' into feat/environment-call-values 2026-10-26 20:18:59 -07:00
Edgar Arakelyan 2887dbf081 Merge remote-tracking branch 'fork/feat/environment-write-quality' into feat/environment-later-reads 2026-10-26 20:16:19 -07:00
Edgar ArakelyanandClaude Opus 5.5 8cf67b0dd1 fix(environment): drop entities read back as deleted and answer soft deletes as deleted
- A held entity a later read shows marked deleted is dropped, not adopted with
  the marked object's fields.
- Bulk-update replay renders answers with the optional and later-only fields
  serving uses, so a bulk update of created and seeded entities replays.
- A served delete of a soft-deleting type answers with the entity marked
  deleted, single and bulk.
- A deleted flag only query reads showed is a field of the item view, so a
  served tombstone keeps it where live records omit it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 20:16:16 -07:00
Edgar ArakelyanandClaude Opus 5.5 1da04f6916 fix(environment): learn sorts only from orders a list read confirmed
- A sort retry after a failed whole-collection read requires the entities no
  write changed since a list last showed them to follow it already, rather than
  excusing every entity the update's tool ever wrote: an earlier rename a list
  confirmed in place stays where it was.
- An update takes its creates' sort only from a create a list read showed
  placed; replay still tries a sort a create guessed from the initial order.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 20:15:15 -07:00
gensokyo-devandEdgar Arakelyan 3fcbabe593 feat(browser): reuse saved response values across scenario steps (#7267)
Save typed response fields and reuse generated IDs or authentication values across browser scenario requests, UI observations and navigation through the shared CLI/MCP workflow.

Preserve exact numbers, retained Evidence, explicit source/coverage limits and prospective page-value semantics. Bound response decoding, retained spellings and request serialization before allocation, and protect marked response values across source records, follow-up text and planned screenshots.

Integrates Edgar Arakelyan's #7162, including follow-ups through 9f5191ab0. Final local validation: 560 feature-branch tests and 561 current-main integration tests, static/build/docs checks and real PocketBase CLI/MCP privacy workflows. Whole-task comparison and verification limits are recorded in docs/verification/browser-saved-values-2026-10-26.md.

Co-authored-by: Edgar Arakelyan <edgar.arakelyan@scale.com>
2026-10-27 08:15:52 +08:00
Edgar Arakelyan a6376b9701 Merge remote-tracking branch 'fork/feat/environment-later-reads' into feat/environment-call-values 2026-10-26 17:11:30 -07:00
Edgar ArakelyanandClaude Opus 5.5 4583240658 fix(environment): learn the soft-delete flag from item reads with a query too
A client may read a deleted record back only with a query, such as a
cache-busting parameter. Every successful read of the item tool now shows the
flag; only plain later reads still add fields.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 17:08:33 -07:00
Edgar Arakelyan 57212a504b Merge remote-tracking branch 'fork/feat/environment-later-reads' into feat/environment-call-values 2026-10-26 16:55:17 -07:00
Edgar ArakelyanandClaude Opus 5.5 9382102443 fix(environment): learn the soft-delete flag in the state view and serve by it
Extraction now records the member later item reads set true on a record the
application soft-deleted, and the item view carries it as `deleted_flag`.
Serving reads that fact instead of scanning recorded bodies itself, so one
owner decides what a soft delete looks like.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 16:51:12 -07:00
Edgar Arakelyan 442ca0f476 Merge remote-tracking branch 'fork/feat/environment-later-reads' into feat/environment-call-values 2026-10-26 16:38:48 -07:00
Edgar ArakelyanandClaude Opus 5.5 e29e9c741e Merge #7260 4b233f76 into feat/environment-later-reads
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 16:32:57 -07:00
Edgar ArakelyanandClaude Opus 5.5 4b233f7670 fix(environment): keep unloaded create answers a sent value did not echo, and learn no sort from query-sorted reads
- A served create keeps a value its recorded answer had not loaded unless the
  call sent that member and the plan stores it as sent, so a create sending
  `active: false` is answered `false` as recorded while the state holds the
  read's `true`.
- A rename no longer teaches a sort from a whole-collection read its query
  sorts, whose ties need not follow the collection's own order.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 16:31:53 -07:00
morluto 87e2cc26d8 fix(environment): align comparison collection identity 2026-10-27 07:28:49 +08:00
Edgar Arakelyan 87a48feac8 Merge remote-tracking branch 'fork/feat/environment-later-reads' into feat/environment-call-values 2026-10-26 16:10:06 -07:00
Edgar ArakelyanandClaude Opus 5.5 a98ae5fdc0 Merge #7260 28cda1f3 into feat/environment-later-reads
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 16:07:10 -07:00
Edgar ArakelyanandClaude Opus 5.5 28cda1f3f6 fix(environment): learn a sort from a rename only when moving its entities reaches it
Serving moves only the entities a write changes in a collection kept sorted,
so replay now tries a sort after a rename only when the entities no write the
read exercised changed already follow it. Seeded folders listed out of title
order no longer teach a title sort that serving would answer with another
order.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 16:06:20 -07:00
Edgar ArakelyanandClaude Opus 5.5 149d9f2db5 feat(environment): let a linked create take path values it stores
A create linked to its type's own collection, whose path has no parameters,
accepts any path values when its plan stores each one in a field, as a Vikunja
task stores its project; replay and serving apply it alike.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 16:02:29 -07:00
Edgar Arakelyan 7b3c8e9734 Merge remote-tracking branch 'fork/feat/environment-later-reads' into feat/environment-call-values 2026-10-26 15:49:07 -07:00
Edgar ArakelyanandClaude Opus 5.5 c0cbf95c9c feat(environment): serve query numbers, counted values and made objects
- A query parameter accepts a number or boolean, which serving sends as its
  JSON text, as agents send page sizes and flags.
- A sequence may start at the value its first create took above every value
  its type held (Vikunja's per-project task index), and a later create's
  composed, template or started-sequence rule is adopted when it also spells
  the first create's value.
- A made-object rule explains an object the application makes with each
  created entity: members the request stamped, members holding the entity's
  own id, and counts one past the held objects' values.
- A create's answer names the id of the one object a one-element array member
  holds, so bulk creates link to their type.
- The skill reads each listed object by id before writing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 15:48:57 -07:00
Edgar ArakelyanandClaude Opus 5.5 f9fc957e5e Merge #7260 3de7d9a7 into feat/environment-later-reads
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 15:43:44 -07:00
Edgar ArakelyanandClaude Opus 5.5 3de7d9a7ae fix(environment): keep unloaded create answers, check bulk answers with sent members, narrow inserts only on collection-order reads
- A create whose item read loaded values its answer had not records them
  (`observation.read.unloaded`), and a served create's answer keeps them as
  the recorded answer showed them, a zero-time owner included, while the state
  holds the read's.
- Replay checks a bulk update's recorded answers with each target's sent
  members, as serving answers them, so echoed `null` and `[]` no longer make
  the plan body-unusable.
- A whole-collection read whose query sorts it shows the query's order, so it
  no longer narrows a create's sorted insert candidates.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 15:41:33 -07:00
Edgar Arakelyan 8432ea6e8a Merge main c6893d1a into feat/environment-write-quality 2026-10-26 15:22:24 -07:00
Edgar Arakelyan 4515a000a6 Merge feat/environment-write-quality b490c8fd into feat/environment-later-reads 2026-10-26 14:41:39 -07:00
Edgar ArakelyanandClaude Opus 5.5 b490c8fd51 fix(environment): answer sent empty members as sent, and keep a placed create's order
- A write answer spells an empty list or map the call did not send as its
  recorded answer did; one the call sent is answered as sent, so a create
  sending `[]` is not answered `null` because the first recorded create was.
- A read listing the whole collection that placed a create leaves the create
  only the sorted inserts whose order that read follows, so a later rename
  cannot teach a sort an earlier read ruled out.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 14:38:55 -07:00
morluto 63220edcc3 fix(environment)!: withhold clock writes without an anchor
Keep missing or ambiguous scenario request durations unknown, retain learned clock rules, and withhold plans that cannot generate an observed clock. Refuse such writes in older imported states before changing state or generators.

BREAKING CHANGE: The write-plan reason can now be unknown-clock; strict clients must accept the new output value.

Validated state, CLI and advertised MCP workflows, documentation, and focused clock and cleanup regressions.
2026-10-27 05:19:35 +08:00
Edgar ArakelyanandClaude Opus 5.5 19f1f8f957 feat(environment): serve the writes that later reads explain
- An item read whose object is marked deleted (deleted, isDeleted or
  is_deleted true) agrees with an absent entity, as EspoCRM answers a
  deleted record; such an object never seeds or adopts an entity.
- maxSize, max_results and maxResults are page sizes, for whole-collection
  list lines and the list query's limit role.
- An item view also shows the fields only reads after its type's first write
  show, when no initial entity holds them (Vikunja's task subscription),
  without requiring them; write answers leave such a field out for entities
  without it, and it no longer withholds the write as incomplete-entities.
- The skill asks updates to change the fields a person would change, and
  expects a deleted object to read back as 404 or marked deleted.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 12:53:18 -07:00
Edgar ArakelyanandClaude Opus 5.5 053264bd77 fix(environment): address review of blank members and sorted writes
- Bulk updates move their entities in turn against the others' earlier
  values and install the final order once, as replay does.
- A member's recorded empty values stay accepted once a later call teaches
  its default; a left-out member with a default keeps the default.
- Write answers spell empty lists and maps as their recorded answers did.
- A rename can teach a sort when the creates chose one by a field the
  update did not write, such as ids that ascend with titles.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 10:56:46 -07:00
Edgar ArakelyanandClaude Opus 5.5 f1675f82a6 fix(environment): accept every empty spelling recorded creates sent
A create that fills only what a person must give sends `null` where the
full create sent a string, and `null` or `false` for the same flag. The
merged plan now accepts each recorded empty value, and a call that leaves
the member out is applied as the earliest call sent it.

Also adds the spec folder for this change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 09:51:27 -07:00
Edgar ArakelyanandClaude Opus 5.5 0381a18df4 feat(environment): serve the writes callers make without recorded form fields
- A create member a recording sent empty ("", null, false, [] or {}) is no
  longer required; a call that leaves it out is applied as sending that value
  (body.blank).
- List views render envelope members that list the listed entities' ids
  (Paperless's `all`), so creates in such collections are confirmed.
- Updates move their entity in collections kept sorted by a field they write,
  and a failed whole-collection read after an update can teach that order.
- A later create that stores an unruled field otherwise is withheld at the
  create, and an item read may fill values a create's answer had not loaded.
- An unsent field respelled between null, [] and {} is unchanged.
- The skill asks for one create with every field and one with only what a
  person must give.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 08:48:23 -07:00
morluto e54bf1006e fix(environment): own JSON fields across capture, state and replay 2026-10-26 18:27:30 +08:00
113679c9a6 feat(environment): serve creates whose answers show less than reads, and whole-object updates (#7080)
* feat(environment): take created entities' read-backs and re-derived update members

- A create's observation takes the fields the first read of its entity
  shows that the answer lacks, and an item read's clock spellings, when the
  read agrees with the answer otherwise. The plan records the read
  (observation.read with its shape); an item read then observes rather than
  checks, a list read only adds fields and still checks. Serving merges the
  same recorded objects.
- An update member sent back as the clock the entity held and stored as a
  fresh clock near the call is a clock rule; one stored as the slug of
  another member stored as sent is a slug rule. Both are accepted with any
  value, as whole-object writes send what they read.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* docs(environment): record the write-views verification

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(environment): reconcile write views without hiding contradictions

* fix(environment): reject incompatible slug-only saves

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: morluto <76467478+morluto@users.noreply.github.com>
2026-10-25 15:06:27 +08:00