Answer prose round 1: 0 🔴, 9 🟡 (0 misread); each 🟡 and 🟢 rewritten as the report asks, items 392 and 393 included, and item 300's quoted places left for its next refresh
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
"""A record kept on one Confluence Cloud page, read and written as markdown over Confluence's REST API version 2, with the credentials of the config's env-file, and converted by the adf-codec shim.
|
||||
|
||||
A write never overwrites a teammate's edit: it sends the version it is handed, the one held() read, and Confluence refuses it where someone saved the page since. The human then decides (lilleman, 2026-11-12). The store keeps no version itself: its caller hands each write the version, as a Held's, and keeps the one the write leaves (lilleman, 2026-11-16)."""
|
||||
A write never overwrites a teammate's edit: it sends the version after the one held() read, and Confluence refuses it where someone saved the page since. The human then decides (lilleman, 2026-11-12)."""
|
||||
import dataclasses
|
||||
import json
|
||||
import pathlib
|
||||
|
||||
@@ -101,7 +101,7 @@ def held_at(revision: str, record: RecordStore, cwd: str, run: Git = git) -> str
|
||||
|
||||
|
||||
def local_file(record: RecordStore, copy: pathlib.Path) -> pathlib.Path | Failure:
|
||||
"""A file holding record's text, for an agent, which reads and edits files: the record's own file where a file is its backend, else copy, written with the text as it stands, and its version beside it, for `stored`, a later process, to write over. Neither exists where the record doesn't yet. `stored` puts an edited copy back."""
|
||||
"""A file holding record's text, for an agent, which reads and edits files: the record's own file where a file is its backend, else copy, written with the text as it stands, and its version beside it, for `stored` to write over in a later process. Neither exists where the record doesn't yet. `stored` puts an edited copy back."""
|
||||
if isinstance(record, FileStore):
|
||||
return record.path
|
||||
held = record.held()
|
||||
@@ -117,7 +117,7 @@ def local_file(record: RecordStore, copy: pathlib.Path) -> pathlib.Path | Failur
|
||||
copy.unlink(missing_ok=True)
|
||||
except OSError as failure:
|
||||
return Failure(f"cannot remove {copy}: {failure.strerror}")
|
||||
# Kept only once the copy holds the text: a version kept for a read that failed would let a later save overwrite the save it saw.
|
||||
# Kept only once the copy holds the text: a newer version beside an older copy would let a later save overwrite the edit that version holds.
|
||||
return kept(copy, held.version) or copy
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user