Skip to content

feat(desktop): check text kept in attributes, name a record by a child's text, and count members - #9114

Merged
morluto merged 513 commits into
morluto:mainfrom
earakely-scale:feat/desktop-richer-checks
Nov 9, 2026
Merged

morluto merged 513 commits into
morluto:mainfrom
earakely-scale:feat/desktop-richer-checks

Conversation

@earakely-scale

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

Copy link
Copy Markdown
Contributor

Desktop tasks can check text held in XML attributes, select records by child text and count matching members.

The task schema, TypeScript evaluator and exported Python verifier share these checks, including incomplete-view handling.

Stacked on #9112.

Maintainer follow-up and validation

The XML range owner carries selected-ancestor state instead of rescanning open ancestors. The parser dependency retains separate depth-related namespace cost; this does not establish end-to-end linear XML parsing.

Propagated the owning #9089 file-URL seed-path repair and #9058 scratch-export guidance correction. Previously validated format, selection and cleanup fixes remain included. Local file URLs now reopen the selected exported seed path while preserving their URL suffix and unchanged encoded segments.

At head f7d4f68118, the affected tests below completed with 114 passed (114); npm run check:fast 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 src/domain/desktop/seedDocument.test.ts src/application/desktop/DesktopExportLaunch.test.ts src/domain/desktop/appTaskDraft.test.ts src/domain/desktop/appTaskDraftValues.test.ts src/application/desktop/DesktopTaskDraftNotes.test.ts src/domain/desktop/stateRoles.test.ts

Maintainer follow-up

Integrated repairs at the owning parent boundaries: selected aliases map physical paths outside home, repeated separators in file URLs preserve the filename, redundant nested aliases no longer block startup, and free-text drafts use exact whole-element checks instead of accepting wrong-item substrings. Distinct aliases, collision checks, requested path spelling and numeric checks remain covered. Prior branch-specific fixes remain included.

At head c8e11ce21a, the affected tests below completed with 118 passed (118); 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 src/domain/desktop/seedDocument.test.ts src/application/desktop/DesktopExportLaunch.test.ts src/domain/desktop/appTaskDraft.test.ts src/domain/desktop/appTaskDraftValues.test.ts src/application/desktop/DesktopTaskDraftNotes.test.ts src/domain/desktop/stateRoles.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.

@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-06T08:31:25.149449Z
We couldn’t complete this review. Comment @codex review to try again.
6a552bf PR opened
ℹ️ 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.

@greptile-apps

greptile-apps Bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5 Tier: plus

[High impact] The reviewed changes appear safe to merge; all four numbered findings are addressed.

Summary

Adds XML text checks over attributes, selectors using child text, and array-member counts in both TypeScript and the exported Python verifier.

  • Desktop tasks can check attribute text and count matching records.
  • Task drafts explain document changes with named values and checks.
  • Desktop captures include selected app state and show what changed.
  • Exported bundles keep the app data needed to open and grade a task.
  • Task grading waits for app files to settle before scoring.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart LR
  A[Task schema] --> B[TypeScript checks]
  A --> C[Exported Python checks]
  D[Captured end view] --> B
  E[Shipped seed bytes] --> F[Read rewritten seed view]
  F --> B
  B --> G[Accept task only when unfinished]
  C --> H[Grade saved app files]
Loading

Reviews (43) · Last reviewed commit: "Merge branch 'codex/desktop-ready-9112' ..." · Reviewed by Greptile

earakely-scale added a commit to earakely-scale/rea that referenced this pull request Nov 6, 2026
Comment thread src/domain/desktop/appTaskDraftText.ts Resolved
earakely-scale added a commit to earakely-scale/rea that referenced this pull request Nov 6, 2026
earakely-scale added a commit to earakely-scale/rea that referenced this pull request Nov 6, 2026
earakely-scale added a commit to earakely-scale/rea that referenced this pull request Nov 6, 2026
earakely-scale added a commit to earakely-scale/rea that referenced this pull request Nov 6, 2026
earakely-scale added a commit to earakely-scale/rea that referenced this pull request Nov 6, 2026
earakely-scale added a commit to earakely-scale/rea that referenced this pull request Nov 6, 2026
earakely-scale added a commit to earakely-scale/rea that referenced this pull request Nov 6, 2026
Comment thread src/domain/desktop/appExportUnowned.ts Resolved
Comment thread src/domain/desktop/seedRecoveryList.ts Resolved
earakely-scale added a commit to earakely-scale/rea that referenced this pull request Nov 6, 2026
earakely-scale added a commit to earakely-scale/rea that referenced this pull request Nov 6, 2026
earakely-scale added a commit to earakely-scale/rea that referenced this pull request Nov 6, 2026
main's morluto#9139 bounds the exported verifier's array-index conversion in the
pointer code this branch moved into appTaskPythonPointer.ts. The bound is
applied there, and appTaskPython.ts keeps this branch's shared pointer.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
earakely-scale added a commit to earakely-scale/rea that referenced this pull request Nov 6, 2026
earakely-scale added a commit to earakely-scale/rea that referenced this pull request Nov 6, 2026
earakely-scale added a commit to earakely-scale/rea that referenced this pull request Nov 6, 2026
earakely-scale added a commit to earakely-scale/rea that referenced this pull request Nov 6, 2026
morluto#9091's review fixes meet this branch's guard rules. One sibling cap of 16
remains, with variesAmong computed once per step. draftGuards stops once
four guards that aren't coordinates are in hand. Two incoming changes
needed adapting here: leftOutFiles now takes an array, and AbiWord's
lone section is named by its xid.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
earakely-scale added a commit to earakely-scale/rea that referenced this pull request Nov 6, 2026
Comment thread src/domain/desktop/stateRoles.ts Resolved
# Conflicts:
#	src/application/desktop/DesktopExportFiles.ts
# Conflicts:
#	.agents/skills/reverse-engineer-anything/references/desktop-build.md
#	docs/desktop-build-witness.md
#	docs/specs/desktop-app-environments/build-witness/verification.md
#	src/application/desktop/DesktopApplicationExport.test.ts
#	src/application/desktop/DesktopApplicationExport.ts
#	src/application/desktop/DesktopBuildCapture.ts
#	src/application/desktop/DesktopExportLaunch.ts
#	src/domain/desktop/appExport.test.ts
#	src/domain/desktop/appExport.ts
#	src/domain/desktop/seedDocument.test.ts
#	src/domain/desktop/seedDocument.ts
#	tests/boundary/mcp/buildCaptureMcp.test.ts
#	tests/fixtures/fakeBuildComputerRea.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-build-witness.md
#	docs/specs/desktop-app-environments/build-witness/spec.md
# 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-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/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/appTaskDraft.fixture.ts
#	src/domain/desktop/appTaskDraft.ts
#	src/domain/desktop/appTaskDraftAdded.test.ts
#	src/domain/desktop/appTaskDraftAdded.ts
#	src/domain/desktop/appTaskDraftGuards.ts
#	src/domain/desktop/appTaskDraftNamed.ts
#	src/domain/desktop/appTaskDraftNoise.test.ts
#	src/domain/desktop/appTaskDraftNoise.ts
#	src/domain/desktop/appTaskDraftText.ts
#	src/domain/desktop/appTaskDraftValues.ts
#	src/domain/desktop/desktopCapture.test.ts
#	src/domain/desktop/desktopCapture.ts
#	src/domain/desktop/runtimeFiles.ts
#	src/domain/desktop/seedScrub.ts
#	src/domain/desktop/selectorCandidates.ts
#	src/domain/desktop/stateRoles.test.ts
#	src/domain/desktop/stateRoles.ts
#	src/domain/desktop/viewPointer.ts
#	tests/boundary/mcp/buildCaptureRetryMcp.test.ts
#	tests/boundary/mcp/buildComputerMcp.test.ts
#	tests/boundary/providers/desktopExportPython.test.ts
#	tests/fixtures/buildCaptureFakes.ts
# Conflicts:
#	docs/desktop-build-witness.md
#	docs/specs/desktop-app-environments/build-witness/spec.md
#	src/domain/xmlDocument.test.ts
#	src/domain/xmlDocument.ts
@morluto
morluto merged commit 0dcd0df into morluto:main Nov 9, 2026
4 checks passed
@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