Merge main into the engine loop improvements
Keep both intents: check stages, allow_workspace_changes, outcome repair counts and Claude stage re-adoption from main beside the findings gate, resume_session, applyLimitOn and exhaustion decisions. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+5
-2
@@ -194,8 +194,11 @@ Every submission, including agent-issued `submit`/`rpc`, still uses server valid
|
||||
## Drafts in the TUI
|
||||
|
||||
The server runs one active run per resolved workspace, including overlapping
|
||||
parent/descendant directories (and symlink aliases). Separate sibling worktrees
|
||||
remain independent. A new request key in a
|
||||
parent/descendant directories of one repository (and symlink aliases). Separate
|
||||
sibling worktrees, and separate repositories nested in one another, remain
|
||||
independent. Two folders outside any repository overlap only when they are the
|
||||
same folder or one lies within the other run's declared write paths. A new
|
||||
request key in a
|
||||
different workspace is admitted immediately and executes concurrently; a second
|
||||
run in a workspace an active run is already changing is refused, naming the
|
||||
conflicting run and advising you to wait or use a different workspace (for
|
||||
|
||||
+7
-2
@@ -309,8 +309,13 @@ directory that chooses its own account keeps it).
|
||||
- **Failures.** Diagnostics are fixed text. A billing, quota or rate-limit
|
||||
refusal stops the run without retries; a missing sign-in says so. The CLI's
|
||||
redacted stream is kept as the session export and evidence.
|
||||
- **Recovery.** A server restart during a Claude Code stage stops that process
|
||||
and fails the visit; it is not reattached.
|
||||
- **Recovery.** The CLI runs in its own session, writing its stream-json to a
|
||||
file in the stage's evidence directory, so a restart of the installed server
|
||||
does not stop it. The next server re-adopts the visit: it keeps reading the
|
||||
CLI's output, waits for it to finish and continues the run. A CLI that
|
||||
finished while the server was down is read back from that file; one that
|
||||
ended without a result marks the run interrupted, saying so (its prompt is
|
||||
never sent again). An interrupted outcome repair follow-up is asked again.
|
||||
- **Overrides.** `--model` and `--stage-model` must give an
|
||||
`anthropic/<model>` for these stages; the launch is refused otherwise.
|
||||
|
||||
|
||||
@@ -182,6 +182,7 @@ Options: `--server-url ws(s)://host:port/connect`, `--notes TEXT`, `--prefix`.
|
||||
|
||||
```sh
|
||||
./install --linux --output ./dist
|
||||
./install --linux --install # also install it for this user (launcher, icon)
|
||||
./install --macos --flutter /path/to/flutter --output ./dist
|
||||
# Offer this desktop build through an installed server's update feed:
|
||||
./install --linux --publish --notes "Release notes"
|
||||
@@ -195,6 +196,25 @@ from the `pipelines` server CLI. The target Linux desktop needs GTK 3 and its
|
||||
runtime libraries (Debian/Ubuntu: `libgtk-3-0`, `libstdc++6`, `liblzma5`). This is a
|
||||
portable bundle, not a package-manager installation or a server installation.
|
||||
|
||||
`./install --linux --install` also installs it for the current user:
|
||||
the bundle goes to `<prefix>/lib/app-linux` (default
|
||||
`~/.local/share/pipelines/lib/app-linux`; the previous one is kept as
|
||||
`app-linux.previous`), with `~/.local/share/applications/com.pipelines.app.desktop`,
|
||||
its icon in `~/.local/share/icons/hicolor` and a `~/.local/bin/pipelines-app`
|
||||
link. `scripts/install-linux-app.sh <archive>` installs a downloaded archive the
|
||||
same way. The desktop entry is named after the GTK application id, which is
|
||||
also the Wayland app id (Hyprland's window class), so launchers, docks and
|
||||
window rules match the window. The app runs as a native Wayland client (GTK
|
||||
picks Wayland when `WAYLAND_DISPLAY` is set and `GDK_BACKEND` is not forced to
|
||||
`x11`); it draws a GTK header bar only on GNOME.
|
||||
|
||||
Release builds are size-optimised: Dart debug symbols are split out
|
||||
(`--split-debug-info`, kept in the build cache under `.debug-info/` for
|
||||
`flutter symbolize`) and the icon fonts are tree-shaken (the build image fixes
|
||||
Flutter 3.44's Linux backend, which otherwise ships the full MaterialIcons
|
||||
font). The Linux app has no web view or file share sheet, so HTML artifacts
|
||||
show an explanation instead of a preview and Share is not offered (Download is).
|
||||
|
||||
macOS 12 or newer is required. macOS builds run natively with Xcode and the pinned Flutter version from
|
||||
`app/.flutter-version`; they do not require Docker. The build targets the build
|
||||
machine's architecture and records the actual executable architecture in the
|
||||
|
||||
+8
-3
@@ -42,9 +42,14 @@ Edit that schedule explicitly when you want it to use a newer version.
|
||||
never guesses from workflow Markdown or a current pipeline's schedule state.
|
||||
|
||||
Each dispatch is claimed once. Missed occurrences after downtime are skipped,
|
||||
not replayed. Workspace conflicts are refused and journaled, not silently run
|
||||
concurrently or retried as agent work. Use separate workspaces for truly
|
||||
independent concurrent execution. **Refresh** in Schedules reloads its latest
|
||||
not replayed. A scheduled run whose workspace another run holds is delayed,
|
||||
never run concurrently: it is recorded as `delayed` in the schedule's history
|
||||
and tried again every 5 minutes for up to 2 hours (set
|
||||
`PIPELINES_SCHEDULE_BUSY_RETRY_EVERY` / `PIPELINES_SCHEDULE_BUSY_RETRY_FOR` on
|
||||
the server, as Go durations; `0` for FOR skips at once), then recorded as
|
||||
`started` or `skipped` with the reason. The operator gets a low-priority
|
||||
notification when a scheduled run is delayed or skipped. Use separate
|
||||
workspaces for truly independent concurrent execution. **Refresh** in Schedules reloads its latest
|
||||
configuration and next due times.
|
||||
|
||||
## JSON API / CLI automation
|
||||
|
||||
+27
-12
@@ -30,15 +30,26 @@ includes the same evidence under each step's `file_changes` field.
|
||||
conversion, `assume-unchanged`) is listed with `no_patch_reason: "baseline"`.
|
||||
- Added/deleted files and permission changes are recorded. Renames appear as
|
||||
deletion/addition. Binary changes retain metadata, not binary contents.
|
||||
- Symlinks, special files, common credential/environment/key/database paths,
|
||||
`secrets/`, Git internals and `node_modules/` are excluded. This is a path-based
|
||||
- Common credential/environment/key/database paths and `secrets/` are protected:
|
||||
never opened or listed. They are fingerprinted by metadata (size, mtime, mode)
|
||||
only, so an untouched `.env` no longer makes a capture partial; a change to one
|
||||
makes the visit `partial` (counted in `skipped`). This is a path-based
|
||||
precaution, **not secret-content scanning**; ordinary source patches may contain
|
||||
sensitive text and become part of retained history.
|
||||
- Limits: 10,000 inventoried entries, 1 MiB per file and 32 MiB per snapshot of
|
||||
retained text, 256 MiB per hashed file, five seconds per snapshot, 5,000
|
||||
combined lines per textual comparison, 64 KiB per patch and 128 KiB serialized
|
||||
file evidence per visit. Oversized, unreadable, omitted or truncated evidence
|
||||
is explicitly flagged partial.
|
||||
- Tool output is not stage work: untracked files below cache and dependency
|
||||
directories (`node_modules/`, `.git/`, `__pycache__/`, `.venv/`, `.mypy_cache/`,
|
||||
`.pytest_cache/`, `.ruff_cache/`, `.next/`, `.dart_tool/`, `.gradle/`, ...),
|
||||
untracked `*.pyc`, and untracked files below `build/`, `dist/`, `out/`,
|
||||
`target/` or `coverage/` where Git tracks nothing are left out of the
|
||||
inventory entirely. Outside Git the cache directories are not walked.
|
||||
- Symlinks are compared by their target (never followed) and listed with
|
||||
`no_patch_reason: "symlink"`; a path through a symlinked directory is skipped.
|
||||
- Limits: 20,000 inventoried entries, 1 MiB per file and 32 MiB per snapshot of
|
||||
retained text, five seconds per snapshot, 20,000 combined lines per textual
|
||||
comparison, 128 KiB per patch and 512 KiB serialized file evidence per visit.
|
||||
Files over 256 MiB are compared by size, mtime and mode
|
||||
(`no_patch_reason: "large"`). Unreadable, omitted or truncated evidence is
|
||||
explicitly flagged partial.
|
||||
- Over-budget content degrades to a listing, not silence: a text file over 1 MiB,
|
||||
or beyond the 32 MiB snapshot budget, is still compared by SHA-256 and a change
|
||||
is listed with `no_patch: true` (and `truncated`) but no patch. In a Git working
|
||||
@@ -46,12 +57,16 @@ includes the same evidence under each step's `file_changes` field.
|
||||
or past the time/file limit) is listed the same way when its
|
||||
`git status --porcelain` entry changed during the visit; a path dirty with the
|
||||
same status before and after cannot be proven changed and stays in `skipped`.
|
||||
Git is only read (`--no-optional-locks`); protected paths are never listed.
|
||||
Git is only read (`--no-optional-locks`); protected and excluded paths are
|
||||
never listed.
|
||||
- Each content change without a (complete) patch carries `no_patch_reason`:
|
||||
`binary`, `file_size` (text over 1 MiB), `budget` (32 MiB snapshot text
|
||||
budget), `lines` (over 5,000 combined lines), `evidence_size` (per-visit
|
||||
retained evidence limit), `git_status` (seen only in Git status) or `baseline`.
|
||||
Binary changes stay `complete`; the others make the visit `partial`.
|
||||
`binary`, `symlink`, `large`, `generated` (lockfiles such as `go.sum` or
|
||||
`package-lock.json`, `*.min.js`, source maps, files below a cache directory),
|
||||
`file_size` (text over 1 MiB), `budget` (32 MiB snapshot text budget), `lines`
|
||||
(over 20,000 combined lines), `evidence_size` (per-visit retained evidence
|
||||
limit), `git_status` (seen only in Git status) or `baseline`. `binary`,
|
||||
`symlink`, `large` and `generated` changes are listed completely and stay
|
||||
`complete`; the others make the visit `partial`.
|
||||
- `pipelines inspect RUN_ID --json` carries a top-level `warnings` list (also
|
||||
printed to stderr) naming every visit whose capture was partial or unavailable.
|
||||
- Failed/canceled stages still retain changes when execution returns. Unconfirmed
|
||||
|
||||
Reference in New Issue
Block a user