Skip to content

feat(desktop): draft child-text selectors, member counts and attribute text, and fold in a third batch's findings - #9132

Merged
morluto merged 634 commits into
morluto:mainfrom
earakely-scale:feat/desktop-draft-new-checks
Nov 9, 2026
Merged

morluto merged 634 commits into
morluto:mainfrom
earakely-scale:feat/desktop-draft-new-checks

Conversation

@earakely-scale

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

Copy link
Copy Markdown
Contributor

Desktop task drafts now suggest child-text selectors, member counts and attribute-text checks supported by the task evaluator.

The draft pairs records, selects stable names and distinguishes likely layout or bookkeeping noise from candidate checks.

Stacked on #9114.

Maintainer follow-up and validation

Drafting now recognizes Unicode XML roots and multiline attribute ownership, preserves requested UUID-shaped text and relationship IDs such as accountId, and avoids separate fragment-count checks for joined text already covered by a text assertion. Export restores nested aliases parent-first in either input order. Regressions failed on the original implementations and pass after the repairs. The owning task guide now states the ID evidence rule and the remaining manual-review limitation for save-generated IDs. Parent fixes, including selected paths and format ownership, are included. Numeric drafting and evaluation now share whitespace-aware parsing, so a suggested near-value check must require the edit and falls back to exact comparison when necessary. Additional checks passed: npm run docs:check.

At head 9e1119a7fa, the affected tests below completed with 399 passed (399); 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/xmlDocument.test.ts tests/boundary/providers/desktopExportPython.test.ts src/application/desktop/DesktopApplicationExport.test.ts src/application/desktop/DesktopTaskExport.test.ts src/application/desktop/DesktopTaskDraftNotes.test.ts src/domain/desktop/stateRoles.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

Maintainer follow-up

Quoted ID_-shaped requested text remains literal unless supported by actual ID assignments. TypeScript and generated Python share the XML name grammar, including Unicode roots. Oversized nested memo values and selector candidates use the existing bounded-check omission rule while retaining short checks. Truncated member-count reads retain their unknown status and reason in both evaluators. Archive ID discovery walks declared XML roots, preserving type references without treating XML-shaped JSON as XML. Removed duplicate tests while retaining stronger coverage. Negative controls failed before these repairs; corrected path/alias and exact text-check parents are included. Additional checks passed: npm run docs:check.

At head e14095f80b, the affected tests below completed with 497 passed (497); 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/xmlDocument.test.ts tests/boundary/providers/desktopExportPython.test.ts src/application/desktop/DesktopApplicationExport.test.ts src/application/desktop/DesktopTaskExport.test.ts src/domain/desktop/stateFormats.test.ts src/domain/desktop/appTaskChecks.test.ts tests/boundary/providers/desktopTaskPython.test.ts src/application/desktop/DesktopBuildOutputRead.test.ts src/application/desktop/DesktopTaskDraftNotes.test.ts src/domain/desktop/stateRoles.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

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-06T10:08:41.997171Z
We couldn’t complete this review. Comment @codex review to try again.
294619c 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

[Medium impact] No new blocking issue was found in the reviewed changes.

Summary

Adds child-text selectors, member counts, and checks for text stored in attributes.

  • Desktop captures suggest checks that name changed records and their text.
  • Task checks use the same rules in build witnesses and exported verifiers.
  • Build capture can include selected state paths and report what changed.
  • Desktop exports preserve more captured app state and explain what they leave out.

Review used the full PR range because the previous and current heads have different merge bases with the supplied target commit. git diff --check passed. Full tests were not run because dependencies are absent. Supersession could not be checked because GitHub authentication is unavailable.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart LR
  Capture[Captured seed and end] --> Views[Read document views]
  Views --> Draft[Suggest checks, values and guards]
  Draft --> Task[Author selects task checks]
  Capture --> Seed[Map paths and scrub seed]
  Seed --> Export[Write bundle]
  Task --> Export
  Export --> Live[Read saved app files]
  Live --> Wait[Wait for files to settle]
  Wait --> Grade[Evaluate task checks]
Loading

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

Comment thread src/domain/desktop/memberPairing.ts Resolved
Comment thread src/domain/desktop/appTaskDraftNamed.ts Resolved
Comment thread src/domain/desktop/memberPairing.ts Resolved
Comment thread src/domain/desktop/appTaskDraftNoise.ts Resolved
Comment thread src/domain/desktop/appTaskDraft.ts Resolved
Comment thread src/domain/desktop/memberPairing.ts Resolved
Comment thread src/domain/desktop/appTaskDraftNoise.ts Resolved
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
Comment thread src/domain/desktop/appTaskDraftNoise.ts Resolved
Comment thread src/domain/desktop/appTaskDraftNoise.ts Resolved
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
Comment thread src/domain/desktop/appTaskDraftNoise.ts Resolved
Comment thread src/domain/desktop/jsonRecordPairing.ts Resolved
Comment thread src/domain/desktop/appTaskDraftJson.ts Resolved
Comment thread src/domain/desktop/appTaskDraftJson.ts Resolved
Comment thread src/domain/desktop/appTaskDraftText.ts Resolved
Comment thread src/domain/desktop/appTaskDraft.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
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/buildWitness.ts Resolved
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
Comment thread bridge/agentenv/capture.py Resolved
Comment thread src/domain/desktop/jsonRecordPairing.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 is stacked on #9114, so once that merges, its diff shrinks to this PR's own commits.

The description's "Final review round" section lists the main merges and the fixes from an independent review of this PR's diff.

# 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:
#	docs/desktop-application-tasks.md
#	src/domain/desktop/appTaskDraftNamed.ts
#	src/domain/desktop/appTaskDraftNoise.ts
#	src/domain/desktop/appTaskDraftValues.test.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/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.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-build-witness.md
#	docs/specs/desktop-app-environments/build-witness/spec.md
#	src/application/desktop/DesktopTaskDraftNotes.test.ts
#	src/domain/desktop/appTaskChecks.fixture.ts
#	src/domain/desktop/appTaskChecks.test.ts
#	src/domain/desktop/appTaskChecks.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/appTaskDraftText.ts
#	src/domain/desktop/appTaskDraftValues.ts
#	src/domain/desktop/appTaskPython.ts
#	src/domain/desktop/appTaskPythonPointer.ts
#	src/domain/desktop/selectorCandidates.ts
#	src/domain/desktop/viewPointer.test.ts
#	src/domain/desktop/viewPointer.ts
#	src/domain/xmlDocument.ts
@morluto
morluto merged commit 012861c 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