Group of 6 Use it now Notable
No documentation found
Artifact database writes can now edit a field in place, check document versions, and simulate lower access levels
What
- The artifact database's write tool gained a
str_replaceoperation for editing a string field in place by exact old-text/new-text match, instead of resending the whole document. It supportsreplace_allto replace every match, and reports clear errors when the match can't be made:edit_no_match,edit_ambiguous,edit_field_missing,edit_field_not_string. - Writes can now use optimistic concurrency: passing
if_version(ifVersion) rejects the write with aversion_mismatcherror if the document changed since it was last read, and write results can report the document's new version number. - A new
as_levelparameter onread_db/write_dblets the caller simulate reading or writing as a lower access level (interactoradmin), to check what a less-privileged user would be allowed to do, without actually lowering the caller's own access. str_replaceis threaded through both the single-write and batch (write_db/batch) code paths, and is currently gated off by default behind a feature flag (requiring both the artifact database and a dedicated str-replace flag to be enabled).
Why
These changes let Claude make small, precise edits to artifact database records instead of rewriting entire documents, avoid clobbering concurrent changes via version checks, and preview permission outcomes for other access levels before acting.
Names in the bundleas_level