Skip to content

feat(desktop): read a captured application's state - #8875

Closed
earakely-scale wants to merge 39 commits into
morluto:mainfrom
earakely-scale:feat/desktop-application-state
Closed

earakely-scale wants to merge 39 commits into
morluto:mainfrom
earakely-scale:feat/desktop-application-state

Conversation

@earakely-scale

@earakely-scale earakely-scale commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

Stacked on #8874. This branch contains #8874's commits. Review only 7a4fe9d99, e907a64bb, e9287c529, 46c89d60b, fde89f249, 4d206f57b, 634c8231b, 9fa9d1c0b, 9710354a9, 7d2f1692f, 963c8affd, 60b73a1f7 and eeda0952f; the merge commits only bring #8874 and its review fixes in. Once #8874 merges, this diff shrinks to those commits.

Summary

Adds rea inspect-desktop-application-state <capture-folder>, the second step toward turning a captured Linux desktop application into an agent environment. It reads a folder written by capture-desktop-application and describes the application's state:

  • which observed files are the application's;
  • a typed JSON view of every retained version;
  • how each file changed between checkpoints.

The next step (export) uses this to choose the seed and data paths. Task generation will use the kinds of change. The spec, plan and verification are in docs/specs/desktop-app-environments/state-view/.

Problem and expected behavior

A capture records file changes and bytes, but not which files belong to the application, or what changed inside them. After this change, every retained or changed file has:

  • Role and reasons.
    • Roles: application_state, document, shared_desktop, unrelated.
    • Reasons: state directory, held open by the app, named in an app window title, selected by the caller, dconf groups named after the app, shared desktop location.
  • Versions with views.
    • SQLite through REA's SQLite worker, with a retained -wal staged beside the database.
    • dconf through dconf dump / on a private file-db profile, keeping only the application's groups.
    • JSON, XML (shared strict parser, DOCTYPE refused), key files and text.
    • Binary files get no view.
  • Kinds of change: created, deleted, or lines, values (JSON pointers), keys (group/key) or rows (by primary key), each with added, removed and changed lists.

Change and scope

  • CLI only, like the capture. It reads the capture folder only, never re-runs the app, and uses retained bytes only when their SHA-256 matches.
  • Pure modules live in src/domain/desktop/ (stateFormats, stateChanges, stateRoles, desktopState).
  • The dconf reader is in src/desktop/DconfDatabaseReader.ts. The SQLite reader in src/application/desktop/DesktopSqliteState.ts uses SqliteDatabaseService. The CLI composes both, since application code cannot import composition.
  • Not included: export, task generation, other binary formats, redaction.

Contract and boundary impact

  • Semantic owner and earliest changed stage: new producer inspect_desktop_application_state, a consumer of capture_desktop_application Evidence.
  • Contribution scope fit and linked maintainer decision: read-only analysis of a capture folder. It runs dconf dump on a private copy, and the SQLite worker on a private copy. It is part of the same desktop-environments work as feat(desktop): capture a Linux desktop application in use #8874; morluto approved that work with the author, and it is not yet recorded on GitHub.
  • CLI and MCP/tool-catalog contract: one new CLI command; the MCP catalog is unchanged.
  • Provider, bridge, target-format, or platform compatibility: dconf views need dconf-cli (or REA_DCONF_COMMAND); everything else is portable.
  • Evidence, artifact, provenance, or reconstruction contract: new Evidence with predicate rea.desktop-application-state, confidence: inferred, authority: analyst-inference. Its parameters carry the capture's Evidence id. The capture result (feat(desktop): capture a Linux desktop application in use #8874) gains state.state_directories, the state directories as walked. This lets roles recognise a symlinked state directory, whose files are recorded under its physical spelling.
  • Target selection, authority, upstream behavior, and cleanup details: temporary copies for dconf and SQLite go in a private runtime root that is removed after each read. Retained-content handles are closed on every exit. A removal or close that fails is reported with its resource and exact owner. Captures written before state_directories was recorded still open, with a limitation saying so.
  • Generated metadata: the product catalog gains inspect-desktop-application-state.

Expected effects:

  • Read existing files or captured data.
  • Launch or attach to a process.
  • Inject instrumentation or run scripts/code.
  • Change process memory, registers, files, or configuration.
  • Contact network services.
  • Recover protected code or work around protections.
  • Documentation or usability only; no target interaction.
  • Not sure yet; investigation or maintainer guidance needed.

Evidence and regression coverage

  • Tests added:
    • format detection and views;
    • kinds of change for every format, including SQLite with and without a primary key;
    • roles and dconf group matching, including files in a symlinked state directory;
    • a cleanup failure keeping its resource;
    • the service on a synthetic capture folder with fake readers, including refusal of other Evidence.
  • Mousepad end to end:
    • Documents/groceries.txt is a document (named in the window title), with text view ["Groceries: milk, eggs, coffee"].
    • The dconf database is application_state through org/xfce/mousepad/... groups, including the session naming the file.
    • .config/Mousepad/accels.scm is application_state.
    • xfconf and recently-used.xbel are shared_desktop.
  • SQLite end to end:
    • A script edited ~/.local/share/notesapp/notes.db, read through the real worker.
    • First change: rows with notes:[2] added and notes:[1] changed.
    • Next change: notes:[1] removed.
  • Review round (634c8231b): a retained -journal is staged beside its database so the SQLite worker refuses only a hot journal; a -wal or -journal that existed unretained (including one omitted at the baseline) makes the version unreadable; one unreadable table no longer discards the others; a file the app holds open is a document when a window title or the caller names it; titles match on file-name boundaries; JSON and key-file views are bounded (4 MiB, 500 levels, exact numbers); cancellation propagates. Mousepad and SQLite end to end rerun with the same results.
  • Remaining proof gaps: JSON and key-file state only in unit tests; a WAL-mode database with a retained -wal was not exercised end to end.

For evidence-bearing changes:

  • Observed, derived, and inferred claims remain distinguishable.
  • Artifact identity, source provenance, and failed attempts remain preserved.
  • Unsupported, incomplete, unavailable, or uncertain outcomes remain visible.

Validation performed

  • npm run typecheck, lint, lint:typed, format:check, knip, jscpd, docs:check, mcp-catalog:check, verify:test-discovery, verify:architecture-guards, scan:todos: passed.
  • New domain and service tests: passed (123 desktop tests on Linux in the container). CLI boundary (tool coverage, startup imports, input schemas): 30 passed.
  • Mousepad and SQLite end to end in an Ubuntu 24.04 container: as above.

Compatibility, safety, and release

  • Breaking changes or migration steps: none.
  • Real Hopper/Ghidra, browser, or OS coverage: Ubuntu 24.04 with Mousepad 0.6.1, dconf-cli and sqlite3.
  • Package or release metadata impact: one new CLI command in the product catalog.
  • Security, privacy, process, or containment review: views contain the user's real data, as the capture does. XML refuses DOCTYPEs. dconf and SQLite read private copies, never the live database.

Author readiness

Human owner: @earakely-scale

  • I reviewed the final diff and relevant existing code, understand the change and its edge cases, and take responsibility for the complete PR, including AI-assisted work.
  • I checked the evidence above, confirmed it supports the current change, and recorded meaningful validation gaps.
  • I declare this PR ready for initial maintainer review.

Before merge

  • This PR addresses a concrete problem or an agreed enhancement.
  • Material scope and authority questions are resolved, and any required maintainer scope decision covers the final diff.
  • The PR has one focused outcome and the title follows type(scope): outcome.
  • Related issue is linked, or the reason for not linking one is stated above.
  • Tests cover changed observable behavior and meaningful failure paths.
  • Owning docs, contracts, and generated metadata are updated where needed.
  • User-visible CLI/MCP changes include representative output.
  • I checked the final diff for secrets, unrelated cleanup, and unsupported claims.

🤖 Generated with Claude Code

earakely-scale and others added 9 commits November 3, 2026 22:37
Add `capture-desktop-application`, a CLI-only, Linux and X11 capture that
launches an installed desktop application, watches it while it is used and
writes capture Evidence plus SHA-256 addressed content:

- inventory: desktop entry, launch command, executable, package and its
  apt sources (or snap, flatpak, AppImage), Electron markers and candidate
  state directories;
- session: the launched process tree, client windows from xprop with the
  first application window time and a window match, and files held open;
- state: a stat walk of the home directory before launch, at checkpoints
  read from stdin, at stop and after exit, with created, modified, deleted
  and retyped paths and the content of changed files and state directories.

It refuses non-Linux hosts, missing DISPLAY or xprop, a non-empty output
folder and an application whose window is already open, and signals only
processes it started.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…cancelled captures

- Launch through the owned provider path with a run token; release with
  SIGTERM, then the token-verified group cleanup, after every session.
  Processes without the token are never signalled; each records whether it
  carries it, and the session records whether cleanup was verified.
- Report creations and deletions only where a walk listed the nearest
  existing directory; count the rest as unconfirmed.
- Retain a file only when it is still the walked version, through owned
  no-follow reads; charge the budget only for new content; create files
  exclusively in a private output folder owned by the caller.
- Walk content roots outside the home directory, compare paths in their
  physical spelling, and run executables from the caller's directory.
- Refuse when the window list cannot be read, re-evaluate window ownership
  each sample, handle one queued request per sample with a bounded stdin
  queue, and write the capture with end reason `cancelled` on interruption.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
- Allow a capture cancelled before any requested checkpoint to hold only the
  baseline.
- Retry an incomplete stop once; if cleanup is still unverified, write the
  capture and fail with the run token and process group as cleanup
  resources.
- Classify path changes after a walk (ENOTDIR and other selected-file
  errors) as changed_since_walk instead of failing the capture.
- Treat a non-directory ancestor as proof that nothing existed beneath it.
- Report a before digest only for the file version it was read from.
- Derive stderr_truncated from stderr's own byte counts.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Content reads pass retainFailedClose, so a handle whose close fails stays
owned by the content store; the capture retries those closes after it is
written and fails with the output folder as the cleanup resource if one
still cannot be closed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Add inspect-desktop-application-state, a CLI command that reads a capture
folder into the application's state: every retained or changed file with
its role and reasons, a typed JSON view of each version (SQLite through the
shared worker, dconf through a private dconf dump, JSON, XML, key files,
text) and the kinds of change between versions (lines, values, keys, rows).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
When both the launched processes and a retained file's handle remain
unresolved after the capture is written, one cleanup error now lists both
reasons and both resource sets.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@greptile-apps

greptile-apps Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 4/5 Tier: apex

[High impact] The new workflow reaches live Linux desktop apps and captured files in the current user's home directory.

The earlier cleanup finding still blocks merging because failed owners do not survive the return from captureDesktopApplication.

Findings

  1. P1 Failed cleanup loses its owners ▶
Fix with agent prompt
### Issue 1
src/application/desktop/DesktopCaptureFailure.ts:73-76
The new failed-capture cleanup turns failed removals and closes into booleans, then returns only resource names. If `store.close()` fails again, the returned error keeps neither the `DesktopContentStore` nor its exact open-file owners. `DesktopSessionCleanupError` likewise keeps process labels rather than the supervisor that can retry cleanup.

This violates the repository directive to retain ownership when cleanup fails. Keep these resources in an owned cleanup scope through final cleanup and error projection, so failures can still be retried.

---

For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.

Summary

Adds inspect-desktop-application-state to turn captured files into roles, typed checkpoint views, and change lists.

  • Linux desktop sessions can be captured at named checkpoints.
  • Saved captures can be read as app roles, typed file views, and changes.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart LR
  A["capture.json"] --> B["Check Evidence and index checkpoints"]
  B --> C["Build file versions"]
  D["Retained content"] --> E["Reject links and check SHA-256"]
  C --> E
  E --> F{"File format"}
  F -->|"SQLite or dconf"| G["Read a private copy"]
  F -->|"Text, JSON, XML or key file"| H["Build a typed view"]
  G --> I["Infer roles and compare versions"]
  H --> I
  I --> J["State Evidence"]
Loading

Reviews (14) · Last reviewed commit: "Merge remote-tracking branch 'fork/feat/..." · Reviewed by Greptile

Comment thread src/domain/desktop/stateFormats.ts Resolved
Comment thread src/domain/desktop/desktopState.ts Resolved
Comment thread src/domain/desktop/stateRoles.ts Resolved
- Read key files, XML attributes, dconf groups and SQLite tables into
  dictionaries without inherited properties, so captured keys such as
  __proto__ stay data.
- Version databases with their write-ahead log as of each checkpoint, and
  stage only digest-verified bytes for the SQLite and dconf readers.
- Detect the format per version, report format changes, keep JSON null and
  empty containers as values, keep XML text and preserved whitespace, and
  mark truncated views (including XML depth) and comparisons of them.
- Number versions and changes by checkpoint index, decide baseline
  presence from the captured type, and keep tagged SQLite integers, text
  bytes and blobs distinct.
- Carry the capture's limitations and omitted content forward, match state
  directories by their home path, index changes once per capture, keep
  failed handle closes owned, and finish the CLI through the shared owner.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Comment thread src/domain/desktop/stateChanges.ts Resolved
Comment thread src/cli/desktopCaptureCommands.ts Resolved
earakely-scale and others added 2 commits November 4, 2026 00:31
- Read coverage flags only from formats whose readers write them, so JSON
  fields named truncated stay data.
- Fail a SQLite version whose write-ahead log existed but was not retained
  or does not match its digest, instead of reading the database alone.
- Close retained content on every exit, including cancellation, and report
  a close that still fails together with the primary failure.
- Finish the CLI with the canonical operation name.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…L values

- Stage database bytes in a private runtime root released through a
  resource scope, so a failed removal keeps its owner and is reported with
  the read's outcome.
- Report cleanup facts and owners from desktop failures instead of
  wrapping them as a plain adapter error.
- Record the state directories as walked, in their physical spelling, and
  match roles against both spellings, so files in a symlinked state
  directory are not mistaken for selected documents.
- Keep whitespace-only XML leaf values; drop only formatting between
  elements.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@earakely-scale

Copy link
Copy Markdown
Contributor Author

The four findings in the summary, as of fde89f2:

  1. Database history uses future writes: fixed in 46c89d6. Each version reads the WAL as it was at its own checkpoint, a checkpoint where only the WAL changed adds a version, and a log that existed but was not retained is a view_error.
  2. Failed cleanup loses its owners: retained reads close through withRetainedContent (46c89d6). Staged databases now live in a PrivateRuntimeRoot released through ArtifactResourceScope, and desktop failures keep their cleanup facts and owners (fde89f2).
  3. XML whitespace values disappear: text was already kept exactly. Whitespace-only leaf values are now kept too, and only formatting between elements is dropped (fde89f2).
  4. Linked settings become documents: the capture records its state directories as walked, and roles match both spellings (fde89f2, test added).

Comment thread src/domain/desktop/desktopCapture.ts Resolved
Comment thread src/domain/desktop/stateFormats.ts Resolved
…captures

- Release retained-content handles whose close failed through a resource
  scope on every exit; a release that fails again reports the exact handle
  owners. A read that finished keeps its bytes when only its close failed.
- Accept captures written before state directories were recorded, and say
  in the state view's limitations that symlinked state directories may be
  misclassed for them.
- Compute each XML element's whitespace context once instead of scanning
  siblings for every text run.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@earakely-scale

Copy link
Copy Markdown
Contributor Author

Last fix round (4d206f5). The summary still lists three findings that name code removed in e9287c5 (writeAheadLogs, readContent, trimming):

  • WAL: versions read the log as it was at their own checkpoint (46c89d6).
  • XML whitespace: text is kept exactly; only whitespace between child elements is dropped (fde89f2, 4d206f5).
  • Cleanup owners: staged folders (fde89f2) and retained-content handles (4d206f5) are released through ArtifactResourceScope on every exit. A release that fails again keeps its exact owner on the error.

This was the fourth and last Greptile fix round for this PR.

@earakely-scale
earakely-scale marked this pull request as ready for review November 4, 2026 15:52
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ⚠️ Failed 2026-11-04T15:52:56.384333Z
We couldn’t complete this review. Comment @codex review to try again.
4d206f5 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

earakely-scale and others added 5 commits November 4, 2026 08:44
- Stage a retained -journal beside its database so the SQLite worker
  accepts an inactive journal and refuses a hot one; a -wal or -journal
  that existed but was not retained (including one omitted at the
  baseline) makes the version unreadable.
- Keep tables that read when another fails, and let cancellation and
  unfinished cleanup propagate instead of becoming view errors.
- Read text as a key file only when every line parses as one.
- Rank a file named in a window title or selected by the caller as a
  document even when the application holds it open; match titles on
  file-name boundaries; leave the display name out of dconf matching.
- Bound JSON and key file views (4 MiB, 500 levels, exact numbers) and
  report too-large, missing and altered retained content separately.
- Add no version or change while a database stays absent.
- Read staged databases in place instead of copying them again.
- Give Evidence the same limitations as the result.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
- Ask the launch process group and token carriers to exit before
  killing them, on errors too; report incomplete cleanup with its facts.
- Count descendants of the launch as started by the capture even when
  their environment cannot be read; treat a reused pid as a new process.
- Follow symlinked desktop entries; name a flatpak's state after its
  application id; match flatpak windows by name only.
- Stop on end of input; refuse empty, duplicate and reserved checkpoint
  names; require whitespace after the checkpoint keyword.
- Stay on each walk root's device, and never walk or retain `/` or a
  directory containing the home; say so in the limitations.
- Refuse a window manager that does not publish _NET_CLIENT_LIST.
- Remove retained content when a capture fails before it is written.
- Skip reading a file larger than the remaining content budget.
- Record apt's archive origin for each package source.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…lication-state

# Conflicts:
#	docs/desktop-application-capture.md
#	src/cli/desktopCaptureCommands.ts
xfwm4 leaves _NET_CLIENT_LIST unset while it manages no windows, so the
capture refused an ordinary desktop with nothing open. Read
_NET_SUPPORTED with the list: an unset list means no windows when the
window manager supports it, and the capture is refused only when it
does not. `xprop`'s "no such atom" output now reads as unset too.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Comment on lines +73 to +76
const closed = await store.close().then(
() => true,
() => false,
);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Failed cleanup loses its owners

The new failed-capture cleanup turns failed removals and closes into booleans, then returns only resource names. If store.close() fails again, the returned error keeps neither the DesktopContentStore nor its exact open-file owners. DesktopSessionCleanupError likewise keeps process labels rather than the supervisor that can retry cleanup.

This violates the repository directive to retain ownership when cleanup fails. Keep these resources in an owned cleanup scope through final cleanup and error projection, so failures can still be retried.

Context Used: AGENTS.md (source)

Prompt To Fix With AI
This is a comment left during a code review.
Path: src/application/desktop/DesktopCaptureFailure.ts
Line: 73-76

Comment:
**Failed cleanup loses its owners**

The new failed-capture cleanup turns failed removals and closes into booleans, then returns only resource names. If `store.close()` fails again, the returned error keeps neither the `DesktopContentStore` nor its exact open-file owners. `DesktopSessionCleanupError` likewise keeps process labels rather than the supervisor that can retry cleanup.

This violates the repository directive to retain ownership when cleanup fails. Keep these resources in an owned cleanup scope through final cleanup and error projection, so failures can still be retried.

**Context Used:** AGENTS.md ([source](https://github.com/morluto/rea/blob/main/AGENTS.md))

---

For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in #8874 (e087320, merged here): failed handle closes and process cleanup keep their exact owners as cleanup leases on the returned error, and a retry releases them (test added).

Comment thread src/domain/desktop/stateFormats.ts Resolved
earakely-scale and others added 3 commits November 4, 2026 19:09
- A selected path that is not a directory brings its -wal and -journal as
  content roots, so the capture records whether they exist and retains them.
- The state view treats a file as absent only under recorded content roots
  and refuses a database whose log presence is unknown.
- JSON changes list containers too, so an array that becomes an object with
  the same members is a change.
- Key file entries escape the key as a JSON pointer segment, so [a/b] c and
  [a] b/c stay apart.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
- An unreadable window list is unknown, not zero windows, and is named in
  the limitations.
- Before ending the session, live run-token carriers no parent link reached
  are tracked; an unreadable process table leaves the exit unknown.
- An env prefix's assignments find the program and name its XDG folders.
- flatpak run options that take a value are skipped with it, -- is honoured
  and a /arch/branch suffix is dropped from the id.
- State directories include the entry's full id.
- Path options refuse empty values; roots count toward the entry limit.
- A capture file whose close failed stays owned and is retried on discard.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Comment thread src/domain/desktop/stateChanges.ts Resolved
earakely-scale and others added 3 commits November 4, 2026 19:44
A program, or an empty or relative PATH entry, is resolved from the folder the
program starts in, as the launch does, so `env PATH=. app` with the entry's
Path still finds the app.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
JSON and XML changes are found by walking both trees with one shared pointer
path, building a pointer only for a listed value, so memory follows depth
rather than every container's full path. A pointer over 4096 characters is
counted but not listed. A 256-level document with 4000-character keys went
from about 251 MiB of heap to under 1 MiB.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
earakely-scale and others added 6 commits November 4, 2026 20:06
The CLI alias check reads `-wal` and `-journal` in help text as short flags,
so the help names the write-ahead log and rollback journal instead.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Program paths and PATH entries are joined rather than resolved, so `..` after
a symbolic link means what it means to the launch. The lookup moves to its own
module.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…into feat/desktop-application-state

# Conflicts:
#	src/application/desktop/DesktopCaptureRefusals.ts
…or env

Empty and `.` segments are dropped from a looked-up program path, which keeps
`/snap/bin/` entries recognisable as snaps, while `..` is still left for the
kernel. Relative and empty PATH entries are searched only in the PATH an `env`
prefix sets, which travels with the exported launch; the host's own PATH does
not.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The capture records the paths every walk left out, and the state view treats
a log as absent only under content roots the baseline walked completely and
outside those exclusions, so an excluded or unvisited log leaves the database
unread rather than read without it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Comment thread src/desktop/ProgramLookup.ts Resolved
Comment thread src/desktop/ProgramLookup.ts Resolved
earakely-scale and others added 4 commits November 4, 2026 21:20
When the current read cannot observe a carrier's process group, the carrier
is signalled on its own instead of letting an older process-table row grant
a group-wide SIGTERM.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…relative finds

The lookup searches PATH as the launch does, an empty entry meaning the
launch folder, so inspection and launch name the same program. A program found
only through a relative or empty entry of the host's own PATH is refused,
since the exported computer would not have it; an env prefix's PATH travels
with the command.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Each walk counts the paths it could not stat and the directories on another
device it did not enter, and the checkpoint records it as `unchecked_paths`.
The state view treats a log as absent only when the baseline left nothing
unchecked, so a log whose stat failed stays unknown.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@morluto

morluto commented Nov 5, 2026

Copy link
Copy Markdown
Owner

Thanks @earakely-scale! Every commit from this PR landed in main via the stacked #8954 (squash 970969c), so I'm closing this one as merged there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: runtime Process capture and runtime observation enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants