* fix(#3423): standardize on required_reading, retire files_to_read emit tag * test(#3423): flip tag assertions, extend consistency guard to spawner surfaces * fix(#3423): sweep capabilities fragments, regen registry+skills, anchor executor test * chore(#3423): acknowledge tag-rename emitted ripples and workflow growth * chore(#3423): broaden emitted-ripple acknowledgment to all embedders * chore(#3423): settle emitted-drift acks post-rebase (merge 3004/1689-owned keys) * chore(#3423): drop stale ripple acks, ack execute-phase growth * chore(#3423): restore pristine 3004 fragment, keep only consumed appends * chore(#3423): backfill changeset pr number * chore(#3423): settle emitted-drift acks post-merge (move code-review-fix ripple into 3190, tag-rename ripples into 3191/3297) * chore(#3423): re-arm 3324 ack for execute-phase.md tag-rename ripple * fix(#3423): trim 8 bytes from execute-phase model note to hold ADR-857 margin, re-arm 3370 ack for net +4 growth --------- Co-authored-by: sim <sim@local>
This commit is contained in:
@@ -193,17 +193,21 @@ describe('bug #3099: absolute-path safety guidance in gsd-executor.md', () => {
|
||||
);
|
||||
});
|
||||
|
||||
test('execute-phase prompt anchors subagent file paths to project_root before files_to_read (#280)', () => {
|
||||
const filesIdx = executePhaseSrc.indexOf('<files_to_read>');
|
||||
assert.ok(filesIdx !== -1, 'files_to_read block not found in execute-phase.md');
|
||||
test('execute-phase prompt anchors subagent file paths to project_root before required_reading (#280)', () => {
|
||||
// Anchor on the dispatch's PROJECT_ROOT computation, then require the
|
||||
// nearest <required_reading> block to open just before it — the executor
|
||||
// must be told to compute the root BEFORE reading the listed files
|
||||
// (#3423 note: execute-phase carries several such blocks, so a bare
|
||||
// indexOf on the tag can anchor to the wrong one).
|
||||
const prIdx = executePhaseSrc.indexOf('PROJECT_ROOT=$(git rev-parse --show-toplevel');
|
||||
assert.ok(prIdx !== -1, 'executor dispatch must compute PROJECT_ROOT in the prompt');
|
||||
const filesIdx = executePhaseSrc.lastIndexOf('<required_reading>', prIdx);
|
||||
assert.ok(filesIdx !== -1, 'required_reading block not found before the PROJECT_ROOT computation');
|
||||
assert.ok(prIdx - filesIdx < 1800, 'required_reading block must sit adjacent to the PROJECT_ROOT computation');
|
||||
const dispatchSnippet = executePhaseSrc.slice(filesIdx, filesIdx + 1800);
|
||||
assert.ok(
|
||||
dispatchSnippet.includes('PROJECT_ROOT=$(git rev-parse --show-toplevel'),
|
||||
'executor dispatch must compute PROJECT_ROOT in the prompt before file reads',
|
||||
);
|
||||
assert.ok(
|
||||
dispatchSnippet.includes('${PROJECT_ROOT}/'),
|
||||
'executor files_to_read paths must be anchored to ${PROJECT_ROOT}/',
|
||||
'executor required_reading paths must be anchored to ${PROJECT_ROOT}/',
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user