Skip to content

Patch 5 10 2#125

Closed
gmagnu wants to merge 2 commits into
mainfrom
patch-5-10-2
Closed

Patch 5 10 2#125
gmagnu wants to merge 2 commits into
mainfrom
patch-5-10-2

Conversation

@gmagnu

@gmagnu gmagnu commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

No description provided.

gmagnu and others added 2 commits June 18, 2026 18:17
* docs(ENGKNOW-3577): design spec for create write -link cache name fix

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* docs(ENGKNOW-3577): implementation plan for create write -link cache fix

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* fix(ENGKNOW-3577): store actual link data name in create cache

A create ending in `write -link X` derived the data file name twice
(plan time in resolveCache, exec time in ForkWrite); the name is
non-idempotent (random suffix), so the cached name did not match the
written file and referencing the create failed. resolveCache now injects
the resolved name into the executed write so ForkWrite reuses it.

The injection only takes effect because commandToExecute is now read
after getExplicitWrite runs, instead of before, so the executed command
reflects the query mutation.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* docs(ENGKNOW-3577): note LinkFileUtil idempotency-comment follow-up

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* fix(ENGKNOW-3577):  Fix comments.

* test(ENGKNOW-3577): cover create write -link cache name for pgor/partgor/parallel

Adds create-wrapped tests referencing [#test#] for pgor, parallel and
partgor. Confirms getCachePath reuses the resolved cache path (no
re-derivation), so the create-cache-name mismatch does not occur for
these macros. partgor test asserts cache-name correctness only: partgor
does not currently propagate the -link option (no link file written) -
a separate pre-existing defect noted as a follow-up.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* fix(ENGKNOW-3577): propagate -link option in partgor

PartGor built its dictionary command but never appended -link/-linkmeta,
unlike PGor and Parallel, so `partgor ... | write -link X` wrote no link
file. Append the link options (from create.query) to the partgor
dictionary command, mirroring Parallel. The partgor regression test now
asserts the link file is written and resolves, like the pgor/parallel
variants.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* fix(ENGKNOW-3577):  Fix comments.

---------

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
(cherry picked from commit be39e72)
@gmagnu gmagnu closed this Jun 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant