Skip to content

feat(desktop): name a record by a nested field or a child's attribute - #9185

Merged
morluto merged 669 commits into
morluto:mainfrom
earakely-scale:feat/desktop-nested-selectors
Nov 9, 2026
Merged

morluto merged 669 commits into
morluto:mainfrom
earakely-scale:feat/desktop-nested-selectors

Conversation

@earakely-scale

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

Copy link
Copy Markdown
Contributor

Stacked on #9132, the top of the desktop build stack. Review 04c89d52e, then dac1ec92e, which folds in what the real-app rebuilds found, then 236780bae, the review fixes. Commit eea99c7c72 also fixes root-array count checks and guards by making the shared pointer resolver own the empty-pointer meaning. Once the earlier PRs merge, the diff is those commits: about 675 lines of source, 840 of tests (344 of them parity fixture cases) and 85 of docs and skill.

Summary

A selector's > condition takes a path. A task can now name a record whose id the app generates by a field inside it, in JSON as it already could in XML, and can name an XML element by a child's attribute. The task draft uses both forms.

Problem and expected behavior

Two request-built apps hit the gap:

  • TreeLine (gzip JSON) writes each node as {"uid": "<32 hex, generated>", "format": "BOOK", "data": {"Title": …}}, sorted by uid.
    • A selector condition read only a member's top-level fields, so the new book could be named only by its position, which changes on every run.
    • Its task counted books and couldn't check the title. On a rerun where the uid sorted first, 4 of its 7 drafted checks failed.
  • Glade (GtkBuilder XML) keeps a widget's id on a child <object id="submit_button"> under an attribute-less <child>.
    • No condition could name the <child> by that id, so the draft fell back to [>packing=TrueTrue1], which a moved button fails.

After this change:

Format Selector Matches
JSON [>data/Title=The Silk Roads] ([>data~1Title=…] in a pointer) a member whose string at data.Title is the value
XML [>A/B=VALUE] a member with a grandchild B under child A whose text, whitespace collapsed, is the value
XML [>object@id=submit_button] a member with a child object whose attribute id is the value

A path has at most three steps. Only strings are compared, as in every condition today. A > condition with one step and no @ reads exactly as before.

The draft:

  • names TreeLine's new book [format=BOOK][>data~1Title=The Silk Roads], and checks its other fields through that selector;
  • names Glade's buttons [name=child][>object@id=submit_button] and [>object@id=cancel_button].

Change and scope

  • Grammar:
    • viewSelector.ts: the path, with at most 3 steps and no empty one; a longer or malformed path is refused at parse.
    • viewPointer.ts: matching, for both XML and JSON members.
    • appTaskPythonPointer.ts: the exported verifier's same rules.
  • Draft:
    • jsonRecordPairing.ts names a record that only one end holds, and whose id the app generated, by its kind field plus its first name-like string field. Fields are searched nearest first, up to 3 keys deep, and the field must name the record alone at its end and nothing at the other.
    • selectorCandidates.ts ranks a child's own text first, then a child's id or name attribute, then text joined from a child's elements.
    • appTaskDraft.ts and appTaskDraftJson.ts skip a check of a field the selector already reads, unless no other check reads that record, so a new record holding only its name is still checked.
  • Docs and skill:
    • the > table and the draft rules in desktop-application-tasks.md;
    • the task and document-view specs;
    • the TreeLine and Glade notes.
  • Beyond the design's letter, in both cases to keep the change coherent:
    • A child's id ranks ahead of joined child text. Otherwise Glade keeps the packing selector.
    • A one-step [>KEY=…] reads a JSON member's own field; before, it matched nothing in JSON.

The design and its decisions (1a 2a 3a 4a 5a, decided 2026-11-06) are in the desktop-environments design note "name a record by a nested field or a child's attribute".

Contract and boundary impact

  • Semantic owner and earliest changed stage: the selector grammar both evaluators read, and the task draft.
  • Contribution scope fit and linked maintainer decision: same approved desktop-environments work as feat(desktop): capture a Linux desktop application in use #8874.
  • CLI and MCP/tool-catalog contract: matching accepts and documents [>PATH=VALUE]. No new inputs.
  • Provider, bridge, target-format, or platform compatibility: the exported verifier reads the new paths. Bundles exported before this read as they did.
  • Evidence, artifact, provenance, or reconstruction contract: none.
  • Target selection, authority, upstream behavior, and cleanup details (if applicable): not applicable.
  • Generated metadata (docs/public/product-catalog.json), package, or installation impact: none.

Expected effects (check known effects; use documentation-only on its own).
Unchecked items do not establish absence; leave uncertainties visible.

  • 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 or updated: 10 tests fail on the base sources and pass now:

    • the check-case table, which gains 29 inside-path cases run in both evaluators; 19 give the wrong verdict on the base;
    • three refusals of a malformed matching;
    • the Python verifier parity test;
    • pointer and lookup agreement;
    • the candidate ranking;
    • TreeLine's new book named by title, failing at the seed and passing on a rerun;
    • removal by title, falling back to position when the title is shared;
    • Glade's buttons named by id, which still passes with the buttons moved.
  • Base reproduction or other evidence: a 38-app replay of request-built drafts. Only TreeLine and Glade change:

    • TreeLine: 7 suggestions with 5 discarded becomes 5 with 3 discarded, its rerun goes from 4 of 7 checks passing to 5 of 5, and the by_position note is gone.
    • Glade with its buttons moved goes from 0 of 1 check and 1 of 2 guards passing to 1 of 1 and 2 of 2.
  • User-visible CLI/MCP output (if applicable): draft suggestions only, shown above.

  • Real apps: TreeLine and Glade were rebuilt from their original requests on an arm64 build computer running 04c89d52e. Both witnesses held on the first try.

    • TreeLine: the draft named the new book [format=BOOK][>data~1Title=The Clockwork Ocean] and checked its Author and Copyright through it. Before this PR, every suggestion for that request was positional.
    • Glade: the draft named the buttons [>object@id=submit_button] and [>object@id=cancel_button], with a count guard on the action area, and all three were kept unchanged. Before this PR, it drafted packing-based selectors.
    • Solves: Claude Code with Sonnet 5.5 passed 3 of 3 on each, about $4.13 in all. Each solve runs in a fresh computer, where the new book gets another generated uid.
  • dac1ec92e closes what TreeLine's draft still lacked against the build agent's hand-written checks:

    • guards on like records' same field, named by their titles;
    • no check of children: [], which every book holds;
    • the Science category named by its name instead of its uid.

    A test on the real seed reproduces the old draft at the base and the new one here.

  • 236780bae fixes the review findings, each with a test that fails at dac1ec92e:

    • a new record holding only a generated uid and its name is checked by that name, where the draft suggested nothing before;
    • a record is named by any name-like field that names it alone, not only by one of the first three;
    • a JSON file whose top level is the array gets the guards and default-skipping that a nested array gets.
  • Remaining proof gaps:

    • Only a record's main id field is tested for being generated.
    • The 38-app replay was not rerun after 236780bae, because its harness was lost. The new tests cover the three cases it changes.

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

  • After eea99c7c72: all 555 desktop domain tests and npm run typecheck passed locally. The new root-array test covers draft generation, additions, removals, guards, and check evaluation. No new real-app run was performed; the stacked branch currently conflicts with the base.

  • npx oxfmt --check .: passed. oxlint on the changed files: no diagnostics.

  • npm run typecheck: no errors outside the API-contract files, which fail only on a dependency missing locally.

  • The desktop, build MCP, desktop CLI and provider test selection plus the advertised-pattern test: 1,222 passed. 20 failed, all in two suites that fail on the base locally because a build is missing.

  • npm run verify:module-boundaries: passed. The skill reference check and README consistency (9/9): passed.

  • After 236780bae: src/domain/desktop, src/application/desktop, the build MCP tests and the advertised-pattern test: 801 passed, 12 skipped, none failed. oxlint on the changed files: no diagnostics.

Compatibility, safety, and release

  • Breaking changes or migration steps:
    • A > key with / or @ now reads a path instead of an odd child name. No REA draft has written such a key.
    • A JSON [>KEY=…] now matches the member's own field.
  • Real Hopper/Ghidra, browser, or OS coverage: replayed real-app captures, and TreeLine and Glade rebuilt and solved on an arm64 Ubuntu build computer.
  • Package or release metadata impact: none.
  • Security, privacy, process, or containment review: matching is bounded at three steps per member in both evaluators.

Maintainer follow-up

Selectors now carry the declared document format across every producer and consumer instead of inferring XML semantics from object shape. ZIP traversal selects archive metadata as JSON and switches to the entry format only at its view. Comparisons retain each side's format and use resolvable positional pairing if entry formats differ. Python member-count evaluation resolves format once outside the member loop. Parent ITEXT, relationship-ID, multiline-text, alias and caller-selected-path repairs are retained. The JSON-shaped XML, ZIP metadata traversal and format-change regressions failed before repair; TypeScript and generated Python now agree. Additional checks passed: npm run docs:check.

At head 9072516c2f, the affected tests below completed with 718 passed (718); npm run check:fast, npm run format:check and git diff --check passed. This includes the updated parent stack and main through 25d3c7237f. Checks use source/domain and controlled boundary fixtures; no real desktop provider qualification was performed. Current-head CI and review remain required before auto-merge.

node node_modules/vitest/vitest.mjs run tests/boundary/providers/desktopTaskPython.test.ts tests/boundary/providers/desktopTaskArrayIndex.test.ts src/application/desktop/DesktopTaskExport.test.ts tests/boundary/providers/desktopStateHeap.test.ts src/application/desktop/DesktopTaskDraftNotes.test.ts src/domain/desktop/stateRoles.test.ts src/domain/desktop/appBuild.test.ts src/domain/desktop/appExport.test.ts src/domain/desktop/appExportInstall.test.ts src/domain/desktop/appExportUnowned.test.ts src/domain/desktop/appTaskChecks.test.ts src/domain/desktop/appTaskDraft.test.ts src/domain/desktop/appTaskDraftAdded.test.ts src/domain/desktop/appTaskDraftAttributeText.test.ts src/domain/desktop/appTaskDraftCounts.test.ts src/domain/desktop/appTaskDraftFileNotes.test.ts src/domain/desktop/appTaskDraftGuards.test.ts src/domain/desktop/appTaskDraftItems.test.ts src/domain/desktop/appTaskDraftJson.test.ts src/domain/desktop/appTaskDraftLineGuards.test.ts src/domain/desktop/appTaskDraftModel.test.ts src/domain/desktop/appTaskDraftNoise.test.ts src/domain/desktop/appTaskDraftPositional.test.ts src/domain/desktop/appTaskDraftTextAdded.test.ts src/domain/desktop/appTaskDraftValues.test.ts src/domain/desktop/appTaskPythonDescription.test.ts src/domain/desktop/aptRepositories.test.ts src/domain/desktop/buildWitness.test.ts src/domain/desktop/computerActions.test.ts src/domain/desktop/debianPackageFile.test.ts src/domain/desktop/desktopCapture.test.ts src/domain/desktop/desktopEntry.test.ts src/domain/desktop/desktopStateDiff.test.ts src/domain/desktop/elfDependencies.test.ts src/domain/desktop/gzipDocument.test.ts src/domain/desktop/hostIdentity.test.ts src/domain/desktop/libraryPackages.test.ts src/domain/desktop/linuxPackages.test.ts src/domain/desktop/openPgpKeys.test.ts src/domain/desktop/seedDocument.test.ts src/domain/desktop/seedRecoveryList.test.ts src/domain/desktop/seedScrub.test.ts src/domain/desktop/selectorCandidates.test.ts src/domain/desktop/stateChanges.test.ts src/domain/desktop/stateFormats.test.ts src/domain/desktop/viewPointer.test.ts src/domain/desktop/x11Windows.test.ts

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

@greptile-apps

greptile-apps Bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 3/5 Tier: plus

[High impact] The changes reach shared capture, export, task-drafting, and grading paths for desktop app workflows.

The PR needs fixes for generated-ID filtering and the still-open exported XML reader mismatch before merging.

Findings

  1. P1 ID filters lose field context ▶
  2. P1 Exported XML checks fail ▶
Fix with agent prompt
### Issue 1
src/domain/desktop/appTaskDraft.ts:297-304
The new filter treats every GUID-valued field as a generated record ID. Changing a JSON `selectedAccount` setting-or an INI key holding an existing profile's ID-therefore loses its check. With another edit present, the task can pass without switching accounts.

The reverse mismatch also exists: `pairRecordsById` treats `ID_329023692` as generated, but this narrower filter keeps an exact check for it, so another run's new ID fails.

Carry the chosen ID field and its generated-ID decision into drafting. Do not classify every field by its value alone.

### Issue 2
src/domain/desktop/stateFormats.ts:undefined-253
`map.dat` files starting with names such as `<Ϳ>` or `<𐀀>` now use XML checks in TypeScript, but the exported reader still uses `expat`, which rejects these valid XML names. `_text_view` then falls back to text. A check at `/root/...` can pass during export and fail against the same saved document in the bundle.

Make the two readers support the same names, and add a parity case outside the older Unicode name ranges.

---

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

Summary

The PR adds nested-field and child-attribute selectors and expands desktop task drafting, capture, and export behavior.

  • Selectors can name records through nested JSON fields and XML children.
  • Task drafts can name changed records and show the values worth checking.
  • Captures can retain named app state and report which files changed.
  • Exports carry captured app state and install the requested runtime packages.
  • Task grading waits briefly for app saves to settle before checking results.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart LR
  Capture[Captured files] --> Views[Typed document views]
  Views --> Pair[Pair and name records]
  Pair --> Draft[Checks, values, and guards]
  Draft --> Export[Validate seed and end]
  Export --> Bundle[Exported bundle]
  Bundle --> Saved[Wait for saved files]
  Saved --> Grade[Python verifier]
Loading

Reviews (11) · Last reviewed commit: "Merge remote-tracking branch 'live-5600/..." · Reviewed by Greptile

Comment thread src/domain/desktop/appTaskDraft.ts Resolved
Comment thread src/domain/desktop/jsonRecordPairing.ts Resolved
Comment thread src/domain/desktop/jsonRecordPairing.ts Resolved
@earakely-scale
earakely-scale marked this pull request as ready for review November 6, 2026 21:35
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

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

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-06T21:36:05.997556Z
We couldn’t complete this review. Comment @codex review to try again.
04c89d5 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.

Comment thread src/domain/desktop/appTaskDraftJson.ts Resolved
Comment thread src/domain/desktop/appTaskDraftJson.ts Resolved
@earakely-scale

Copy link
Copy Markdown
Contributor Author

@morluto this one is ready for review. It merges cleanly into main, and all checks pass. It's stacked on #9132.

It lets a selector's > condition take a path, so a task can name a record whose id the app generates by a field inside it (JSON) or by a child's attribute (XML). TreeLine and Glade were rebuilt from their original requests on an arm64 build computer: both drafts used the new selectors, and Sonnet 5.5 passed 3 of 3 solves on each, in fresh computers where the record gets another generated id.

One known edge case is left for a follow-up: a record added to a top-level JSON array that repeats another record's fields gets no suggested check, because a top-level array can't be counted yet.

# Conflicts:
#	docs/desktop-build-computer.md
#	docs/desktop-build-witness.md
#	docs/specs/desktop-app-environments/build-witness/spec.md
#	src/domain/desktop/appTaskChecks.fixture.ts
#	src/domain/desktop/appTaskChecks.test.ts
#	src/domain/desktop/appTaskChecks.ts
#	src/domain/desktop/appTaskPython.ts
# Conflicts:
#	src/domain/desktop/appTaskDraftNoise.test.ts
# Conflicts:
#	src/application/desktop/DesktopApplicationExport.ts
#	src/application/desktop/DesktopBuildComputers.ts
#	src/desktop/AgentEnvComputer.ts
#	src/domain/desktop/stateRoles.ts
# Conflicts:
#	docs/desktop-application-tasks.md
#	docs/desktop-build-witness.md
#	docs/specs/desktop-app-environments/build-witness/spec.md
#	src/domain/desktop/appTaskDraftNamed.ts
#	src/domain/desktop/appTaskDraftNoise.ts
#	src/domain/desktop/appTaskDraftValues.test.ts
# Conflicts:
#	src/domain/desktop/appTaskDraftNamed.ts
#	src/domain/desktop/appTaskDraftNoise.ts
# Conflicts:
#	src/composition/capabilityServices.ts
# Conflicts:
#	.agents/skills/reverse-engineer-anything/references/desktop-build.md
#	docs/desktop-application-capture.md
#	docs/desktop-application-export.md
#	docs/desktop-application-state.md
#	docs/desktop-application-tasks.md
#	docs/desktop-build-computer.md
#	docs/desktop-build-witness.md
#	docs/specs/desktop-app-environments/build-witness/spec.md
#	docs/specs/desktop-app-environments/build-witness/verification.md
#	src/application/desktop/DesktopApplicationCapture.ts
#	src/application/desktop/DesktopApplicationExport.test.ts
#	src/application/desktop/DesktopApplicationExport.ts
#	src/application/desktop/DesktopBuildBundle.ts
#	src/application/desktop/DesktopBuildCapture.ts
#	src/application/desktop/DesktopBuildComputers.ts
#	src/application/desktop/DesktopBuildOutputRead.test.ts
#	src/application/desktop/DesktopBuildSummary.ts
#	src/application/desktop/DesktopBuildWitness.test.ts
#	src/application/desktop/DesktopExportFiles.ts
#	src/application/desktop/DesktopExportLaunch.ts
#	src/application/desktop/DesktopGzipDocument.test.ts
#	src/application/desktop/DesktopTaskDraft.ts
#	src/application/desktop/DesktopTaskDraftNotes.test.ts
#	src/application/desktop/DesktopTaskExport.test.ts
#	src/contracts/desktopBuildToolContracts.ts
#	src/desktop/DesktopApplicationSession.test.ts
#	src/domain/desktop/appExport.test.ts
#	src/domain/desktop/appExport.ts
#	src/domain/desktop/appExportPython.ts
#	src/domain/desktop/appExportUnowned.test.ts
#	src/domain/desktop/appExportUnowned.ts
#	src/domain/desktop/appTaskChecks.fixture.ts
#	src/domain/desktop/appTaskChecks.ts
#	src/domain/desktop/appTaskDraft.fixture.ts
#	src/domain/desktop/appTaskDraft.ts
#	src/domain/desktop/appTaskDraftAdded.test.ts
#	src/domain/desktop/appTaskDraftAdded.ts
#	src/domain/desktop/appTaskDraftFileNotes.test.ts
#	src/domain/desktop/appTaskDraftFileNotes.ts
#	src/domain/desktop/appTaskDraftGuards.test.ts
#	src/domain/desktop/appTaskDraftGuards.ts
#	src/domain/desktop/appTaskDraftLineGuards.ts
#	src/domain/desktop/appTaskDraftNamed.ts
#	src/domain/desktop/appTaskDraftNoise.test.ts
#	src/domain/desktop/appTaskDraftNoise.ts
#	src/domain/desktop/appTaskDraftNotes.ts
#	src/domain/desktop/appTaskDraftPositional.test.ts
#	src/domain/desktop/appTaskDraftScalars.ts
#	src/domain/desktop/appTaskDraftText.ts
#	src/domain/desktop/appTaskDraftTextAdded.test.ts
#	src/domain/desktop/appTaskDraftValues.test.ts
#	src/domain/desktop/appTaskDraftValues.ts
#	src/domain/desktop/appTaskPython.ts
#	src/domain/desktop/attributeRank.ts
#	src/domain/desktop/desktopCapture.test.ts
#	src/domain/desktop/desktopCapture.ts
#	src/domain/desktop/positionalKeys.ts
#	src/domain/desktop/runtimeFiles.ts
#	src/domain/desktop/seedDocument.test.ts
#	src/domain/desktop/seedScrub.ts
#	src/domain/desktop/selectorCandidates.ts
#	src/domain/desktop/stateChanges.ts
#	src/domain/desktop/stateFormats.ts
#	src/domain/desktop/stateRoles.test.ts
#	src/domain/desktop/stateRoles.ts
#	src/domain/desktop/viewPointer.test.ts
#	src/domain/desktop/viewPointer.ts
#	tests/boundary/mcp/buildCaptureDraftMcp.test.ts
#	tests/boundary/mcp/buildCaptureRetryMcp.test.ts
#	tests/boundary/mcp/buildComputerMcp.test.ts
#	tests/boundary/providers/desktopExportPython.test.ts
#	tests/fixtures/buildCaptureFakes.ts
# Conflicts:
#	.agents/skills/reverse-engineer-anything/references/desktop-build.md
#	docs/desktop-application-tasks.md
#	docs/desktop-build-witness.md
#	docs/specs/desktop-app-environments/tasks/spec.md
#	src/domain/desktop/appTask.ts
#	src/domain/desktop/appTaskChecks.fixture.ts
#	src/domain/desktop/appTaskChecks.test.ts
#	src/domain/desktop/appTaskChecks.ts
#	src/domain/desktop/appTaskDraft.ts
#	src/domain/desktop/appTaskDraftAdded.ts
#	src/domain/desktop/appTaskDraftAlternatives.ts
#	src/domain/desktop/appTaskDraftAttributeText.ts
#	src/domain/desktop/appTaskDraftCounts.ts
#	src/domain/desktop/appTaskDraftFileNotes.ts
#	src/domain/desktop/appTaskDraftGuards.test.ts
#	src/domain/desktop/appTaskDraftGuards.ts
#	src/domain/desktop/appTaskDraftItems.ts
#	src/domain/desktop/appTaskDraftJson.test.ts
#	src/domain/desktop/appTaskDraftJson.ts
#	src/domain/desktop/appTaskDraftLineGuards.test.ts
#	src/domain/desktop/appTaskDraftMemberCount.ts
#	src/domain/desktop/appTaskDraftMirrors.ts
#	src/domain/desktop/appTaskDraftNamed.ts
#	src/domain/desktop/appTaskDraftNested.ts
#	src/domain/desktop/appTaskDraftNoise.ts
#	src/domain/desktop/appTaskDraftPositional.test.ts
#	src/domain/desktop/appTaskDraftSteps.ts
#	src/domain/desktop/appTaskDraftText.ts
#	src/domain/desktop/appTaskDraftTree.ts
#	src/domain/desktop/appTaskDraftValues.test.ts
#	src/domain/desktop/appTaskDraftValues.ts
#	src/domain/desktop/appTaskPython.ts
#	src/domain/desktop/appTaskPythonPointer.ts
#	src/domain/desktop/jsonRecordPairing.ts
#	src/domain/desktop/memberPairing.ts
#	src/domain/desktop/selectorCandidates.test.ts
#	src/domain/desktop/selectorCandidates.ts
#	src/domain/desktop/stateChanges.ts
#	src/domain/desktop/viewPointer.ts
#	src/domain/desktop/viewSelector.ts
@morluto
morluto merged commit 61ab3f0 into morluto:main Nov 9, 2026
4 checks passed
N0zoM1z0 pushed a commit that referenced this pull request Nov 10, 2026
* fix(cli): record the caller HAR path in environment-build evidence

environment-build inspected a HAR without the caller path that
inspect-web-network-capture records, so the published evidence.json
omitted caller_input_path and failed the byte-for-byte portable check.

Also update three stale portable expectations that already fail on main:
the no-reader verifier digest matches the #9185 selector parent, uncapped
IDA callee pages report complete discovery, and a CLI refusal of a
malformed artifact inspection includes the undelivered source closure.

* fix: restore portable docs, alias, offset, and Windows cleanup checks

The witness page linked task anchors that were never written, so any
docs-touching PR failed the route check. A selected state directory was
restored as a dangling symlink by a duplicated helper. An empty
safetensors file reports the extent as outside the file before offset
conversion. Windows cleanup refusal uses the runtime's in-progress message.

* fix(cli): keep the caller's HAR spelling in environment-build evidence

inspect-web-network-capture records the path the caller typed. The
one-shot build had already absolutized that path, so a relative capture
disagreed with the three-step bundle. The byte-for-byte check now runs
from the capture directory and requires caller_input_path grafana.har.

* fix(desktop): create alias targets only for directory selections

A missing settings file was created as a directory because the helper
treated any absent path as a directory. The capture's selected path kind
now travels with the alias, and only a directory alias creates its target.
An absent file alias stays a file the app can create.

* fix(desktop): keep legacy alias kind unknown

Captures written before selected_paths.kind leave the alias unknown.
Defaulting those to a directory makes an omitted settings file a
directory, so a later write through the alias fails with EISDIR.

* fix(desktop): keep alias kind a file, directory, or unknown

The export plan was widening a missing selected path kind to string.
Record file or directory only when the capture says so, and unknown otherwise.

* fix(desktop): narrow a missing alias kind to unknown

The selected path kind was widened to string, so the export plan could
not keep the file, directory, or unknown distinction.

* test(desktop): expect alias kind in the rendered app module

The export now records whether a selected alias is a directory. The
rendered STATE_ALIASES tuples include that kind.

* fix(ghidra): reject an oversized Windows TCP endpoint as invalid

The POSIX read maps a record past the compact endpoint bound to
"Ghidra TCP endpoint is invalid". The Windows lease reported that same
bound as a generic observation failure, so an expanded endpoint failed
the Windows lane with a different message.

* fix(desktop): create a legacy alias when a child proves it is a directory

A capture written before selected path kind can still nest one alias
inside another. That parent is a directory. A legacy leaf stays unknown
so a missing settings file is not created as a directory.

* fix(desktop): restore selected aliases when the app owns no files

An empty state directory does not become an owned path, so the class
was ownless and never called _ensure_state_aliases. The ownless class
now restores aliases whenever the export recorded some.

* fix(desktop): create the parent of a missing file alias

A file alias must stay a file. When its parent directory was not seeded,
the symlink was dangling and a write through it failed with ENOENT.

* ci: retrigger checks after an unrelated Windows timeout

The Windows lane timed out in webModuleCli, which this diff does not touch,
and the rerun API is unavailable.

* test(evidence): preserve complete CLI refusal diagnostics

---------

Co-authored-by: Cursor Agent <[email protected]>
Co-authored-by: gensokyo-dev <[email protected]>
@morluto morluto mentioned this pull request Nov 11, 2026
3 tasks done
@morluto morluto added enhancement New feature or request area: runtime Process capture and runtime observation labels Nov 22, 2026
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.

3 participants