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,4 +1,4 @@
|
||||
"""What the Jira and Confluence backends share: one Atlassian account's credentials, the request they send through, and each service's error messages."""
|
||||
"""What the Jira and Confluence backends share: one Atlassian account's credentials, the request both backends send, and each service's error messages."""
|
||||
import base64
|
||||
import pathlib
|
||||
import typing
|
||||
|
||||
@@ -86,7 +86,7 @@ class Room:
|
||||
|
||||
|
||||
def room_of(windows: list[tmux.Listed], own: str | None, leaving: bool, limit: int) -> Room:
|
||||
"""The room windows leave, where own is the chunk of the loop that asks, None for the human's loop-claude <task>. leaving says own's chunk finished, so its window no longer counts as running, and that no stopped chunk starts again: only the human's loop-claude <task> starts one, which is a loop that isn't leaving."""
|
||||
"""The room windows leave under limit. own is the chunk of the loop that asks, None for the human's loop-claude <task>. leaving is True where own's chunk finished: its window no longer counts as running, and no stopped chunk starts again, since only a loop that isn't leaving, such as the human's loop-claude <task>, restarts one."""
|
||||
running = [window.name for window in windows if not window.dead and not (leaving and window.name == own)]
|
||||
# Below 0 where the config lowered parallel-chunks while more chunks ran.
|
||||
room = max(limit - len(running), 0)
|
||||
|
||||
@@ -76,7 +76,7 @@ def start_window(window: Window, cwd: str, env: typing.Mapping[str, str], comman
|
||||
return Failure(f"tmux could not start the window {window.target}: {done.stderr.strip() or f'it exited {done.returncode}'}")
|
||||
# set-option and show-options read a target as a pane's, so `=session` alone names no session.
|
||||
owned = run(["set-option", "-t", f"={window.session}:", OWNER, cwd]) if first else None
|
||||
# By the ID, since a window of the same name may still be closing. A loop that fails before the option is set closes its window, and its stop is still sent as a DM, so a failure here doesn't matter.
|
||||
# By the ID, since a window of the same name may still be closing. A failed remain-on-exit doesn't matter: a loop that fails before it is set closes its window, and its stop is still sent as a DM.
|
||||
run(["set-option", "-w", "-t", done.stdout.strip(), "remain-on-exit", "failed"])
|
||||
# Without the owner, start_chunks cannot tell this checkout's session from another's, so no further chunk may start in it.
|
||||
if owned is not None and owned.returncode:
|
||||
|
||||
@@ -21,7 +21,7 @@ as a file, there is nothing left to store, and save says so. Run it after every
|
||||
steps work wherever a project keeps the record.
|
||||
|
||||
For a record kept on a Confluence page, save refuses where someone saved the page after open read
|
||||
it, or after the last save, and the human decides what follows. The copy keeps the unsaved edit
|
||||
it or after save last wrote it, and the human decides what follows. The copy keeps the unsaved edit
|
||||
until open runs again and writes the copy afresh.
|
||||
|
||||
Exit 2 on bad arguments, and 1, saying why, on any other failure.
|
||||
@@ -70,7 +70,7 @@ def performed(config: ProjectConfig, command: str, name: str, home: pathlib.Path
|
||||
|
||||
|
||||
def opened(config: ProjectConfig, name: str, home: pathlib.Path) -> tuple[RecordStore, pathlib.Path]:
|
||||
"""The store of the record called name, and the copy it gets where it isn't kept as a file. `local_file` keeps the version beside the copy, for a later save."""
|
||||
"""The store of the record called name, and the copy it gets where it isn't kept as a file."""
|
||||
copy = home / COPIES / config.key / worktree_folder(config.top) / f"{name}.md"
|
||||
return (goals_store(config) if name == GOALS else store(config, name)), copy
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
|
||||
@@ -160,7 +160,7 @@ class Standing:
|
||||
version: Release | None
|
||||
# The releases todo.md has named since the cut, as named_releases reads them.
|
||||
named: set[Release] | Failure
|
||||
# The plan's items, each that the plan files under the last cut's version, or an earlier one, filed under the next release: the earliest after the cut that the plan holds or todo.md has named since it. Someone cut a release while it held those items, and the loop works on: lilleman's call, 2026-11-16. The plan's items as they are where nothing is cut, and where no release after the cut is known, since naming one is the human's.
|
||||
# The plan's items, each one filed under the last cut's version or earlier moved to the next release: the earliest after the cut that the plan holds or todo.md has named since. Someone cut a release while it still held those items, and the loop works on (lilleman, 2026-11-16). Where nothing is cut, or no release after the cut is known, the items stay as the plan files them, since naming a release is the human's.
|
||||
carried: list[Item]
|
||||
# The IDs of the items carried files under another release than the plan does, in the plan's order.
|
||||
moved: tuple[int, ...]
|
||||
|
||||
Reference in New Issue
Block a user