wtf-p 0.8.2 → 0.8.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -9
- package/bin/lib/adapter-compiler.js +7 -3
- package/package.json +1 -1
- package/protocol/workflows/review-section.md +2 -2
- package/vendors/antigravity/.wtfp-generated.json +4 -4
- package/vendors/antigravity/plugin.json +2 -2
- package/vendors/antigravity/skills/wtfp-review-section/SKILL.md +2 -2
- package/vendors/antigravity/workflows/review-section.md +2 -2
- package/vendors/claude/.claude-plugin/marketplace.json +2 -2
- package/vendors/claude/.claude-plugin/plugin.json +1 -1
- package/vendors/claude/.wtfp-generated.json +12 -12
- package/vendors/claude/ai.iowarp.clio/agents/wtfp-section-writer.md +2 -0
- package/vendors/claude/ai.iowarp.clio/prompts/wtfp/execute-outline.md +1 -1
- package/vendors/claude/ai.iowarp.clio/prompts/wtfp/help.md +1 -1
- package/vendors/claude/ai.iowarp.clio/prompts/wtfp/plan-section.md +1 -1
- package/vendors/claude/ai.iowarp.clio/prompts/wtfp/review-section.md +3 -3
- package/vendors/claude/ai.iowarp.clio/prompts/wtfp/write-section.md +1 -1
- package/vendors/claude/commands/review-section.md +2 -2
- package/vendors/claude/plugin.json +1 -1
- package/vendors/claude/workflows/review-section.md +2 -2
- package/vendors/clio-extension/.wtfp-generated.json +4 -4
- package/vendors/clio-extension/clio-coder-extension.yaml +1 -1
- package/vendors/clio-extension/runtime/extension.test.ts +75 -7
- package/vendors/clio-extension/runtime/extension.ts +174 -32
- package/vendors/codex/plugins/wtfp/.codex-plugin/plugin.json +1 -1
- package/vendors/codex/plugins/wtfp/.wtfp-generated.json +4 -4
- package/vendors/codex/plugins/wtfp/plugin.json +1 -1
- package/vendors/codex/plugins/wtfp/workflows/review-section.md +2 -2
- package/vendors/copilot/.wtfp-generated.json +3 -3
- package/vendors/copilot/marketplace.json +2 -2
- package/vendors/copilot/plugins/wtfp/.claude-plugin/plugin.json +1 -1
- package/vendors/copilot/plugins/wtfp/.wtfp-generated.json +4 -4
- package/vendors/copilot/plugins/wtfp/commands/wtfp-review-section.md +2 -2
- package/vendors/copilot/plugins/wtfp/workflows/review-section.md +2 -2
- package/vendors/copilot/project/.github/wtfp/workflows/review-section.md +2 -2
- package/vendors/gemini/.wtfp-generated.json +4 -4
- package/vendors/gemini/commands/wtfp/review-section.toml +2 -2
- package/vendors/gemini/gemini-extension.json +1 -1
- package/vendors/gemini/workflows/review-section.md +2 -2
- package/vendors/opencode/.wtfp-generated.json +3 -3
- package/vendors/opencode/commands/wtfp/review-section.md +2 -2
- package/vendors/opencode/workflows/review-section.md +2 -2
- package/vendors/plugin/.wtfp-generated.json +15 -15
- package/vendors/plugin/ai.iowarp.clio/agents/wtfp-section-writer.md +2 -0
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/advance.md +2 -2
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/checkpoint.md +1 -1
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/discuss-section.md +1 -1
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/execute-outline.md +2 -2
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/help.md +1 -1
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/plan-milestone-gaps.md +1 -1
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/plan-revision.md +1 -1
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/plan-section.md +2 -2
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/review-section.md +3 -3
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/verify-work.md +1 -1
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/write-section.md +3 -3
- package/vendors/plugin/plugin.json +1 -1
- package/vendors/plugin/workflows/review-section.md +2 -2
|
@@ -199,6 +199,8 @@ interface SectionRow {
|
|
|
199
199
|
acceptance: Acceptance;
|
|
200
200
|
/** When the manuscript file was last written, in epoch milliseconds, or null when it does not exist. */
|
|
201
201
|
writtenAt: number | null;
|
|
202
|
+
/** When write-section last validated a draft of this section, in epoch milliseconds, or null. */
|
|
203
|
+
writeValidatedAt: number | null;
|
|
202
204
|
}
|
|
203
205
|
|
|
204
206
|
interface Acceptance {
|
|
@@ -531,7 +533,27 @@ function writtenAt(workspace: string, manuscript: string | null): number | null
|
|
|
531
533
|
function unappliedPlan(section: SectionRow): boolean {
|
|
532
534
|
if (section.plan.state !== "approved" || !section.plan.approvedAt) return false;
|
|
533
535
|
const approved = Date.parse(section.plan.approvedAt);
|
|
534
|
-
|
|
536
|
+
if (!Number.isFinite(approved)) return false;
|
|
537
|
+
if (section.writtenAt === null || section.writtenAt < approved) return true;
|
|
538
|
+
// Saving the manuscript is not drafting it: write-section ends on its validation, after the measured
|
|
539
|
+
// count and summary. Live, a writer saved the revision, could not count it, and the section went to review.
|
|
540
|
+
return section.writeValidatedAt === null || section.writeValidatedAt < Math.floor(approved / 1000) * 1000;
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
/** Why write-section is next for a section whose approved plan is not applied: no draft yet, or a saved draft write-section has not finished. */
|
|
544
|
+
function unappliedReason(section: SectionRow): string {
|
|
545
|
+
const approved = Date.parse(section.plan.approvedAt ?? "");
|
|
546
|
+
if (section.writtenAt === null || !(section.writtenAt >= approved)) return `${section.title} has an approved revision plan that no draft has applied yet.`;
|
|
547
|
+
return `${section.title}'s draft for its approved plan is saved, but write-section has not finished it: measure it, write the summary with that count, record its validation and set the section status, without redrafting it.`;
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
/** When write-section last recorded a validation for this section, from its executed_at, or null. */
|
|
551
|
+
function writeValidatedAt(validations: Json[], id: string, manuscriptUri: string): number | null {
|
|
552
|
+
const times = validations
|
|
553
|
+
.filter((record) => record.action_id === "write-section" && validates(record, id, manuscriptUri))
|
|
554
|
+
.map((record) => Date.parse(text(record.executed_at)))
|
|
555
|
+
.filter(Number.isFinite);
|
|
556
|
+
return times.length > 0 ? Math.max(...times) : null;
|
|
535
557
|
}
|
|
536
558
|
|
|
537
559
|
const ACCEPT = "accept";
|
|
@@ -807,6 +829,7 @@ function loadDesk(workspace: string, key: Buffer | null = null): Desk {
|
|
|
807
829
|
record,
|
|
808
830
|
acceptance: acceptanceOf(validations, checkpoints, id, text(artifacts.manuscript, `project://paper/${id}`), reviews.length > 0, writtenAt(workspace, manuscript)),
|
|
809
831
|
writtenAt: writtenAt(workspace, manuscript),
|
|
832
|
+
writeValidatedAt: writeValidatedAt(validations, id, text(artifacts.manuscript, `project://paper/${id}`)),
|
|
810
833
|
};
|
|
811
834
|
});
|
|
812
835
|
const issues = { blocker: 0, error: 0, warning: 0, info: 0 };
|
|
@@ -1545,7 +1568,7 @@ function deliveredOf(validations: Json[], sections: SectionRow[]): boolean {
|
|
|
1545
1568
|
function reviewNext(served: ServedPlugin, section: SectionRow): Next {
|
|
1546
1569
|
const id = section.id;
|
|
1547
1570
|
const acceptance = section.acceptance;
|
|
1548
|
-
if (unappliedPlan(section)) return step(served, "write-section", id,
|
|
1571
|
+
if (unappliedPlan(section)) return step(served, "write-section", id, unappliedReason(section));
|
|
1549
1572
|
if (!acceptance.reviewed) return step(served, "review-section", id, `${section.title} is drafted and waits for review.`);
|
|
1550
1573
|
if (!acceptance.verified)
|
|
1551
1574
|
return step(served, "verify-work", id, `${section.title} is reviewed; the author checks it against its plan and accepts it or sends it back.`);
|
|
@@ -1576,10 +1599,9 @@ function sectionNext(served: ServedPlugin, section: SectionRow): Next {
|
|
|
1576
1599
|
return step(served, "research-gap", id, `${section.title}: ${evidenceGap(section)}.`);
|
|
1577
1600
|
if (!planReady(section.plan))
|
|
1578
1601
|
return step(served, "plan-section", id, `${section.title} cannot be drafted: ${section.plan.reason}.`);
|
|
1579
|
-
// A draft written after its plan's approval is past drafting even when the record still says writing.
|
|
1580
|
-
if (section.plan.state === "approved" && section.plan.approvedAt && section
|
|
1581
|
-
|
|
1582
|
-
return step(served, "write-section", id, `${section.title} has an approved plan.`);
|
|
1602
|
+
// A draft written and validated after its plan's approval is past drafting even when the record still says writing.
|
|
1603
|
+
if (section.plan.state === "approved" && section.plan.approvedAt && !unappliedPlan(section)) return reviewNext(served, section);
|
|
1604
|
+
return step(served, "write-section", id, section.plan.state === "approved" && section.writtenAt !== null && section.plan.approvedAt && section.writtenAt >= Date.parse(section.plan.approvedAt) ? unappliedReason(section) : `${section.title} has an approved plan.`);
|
|
1583
1605
|
default:
|
|
1584
1606
|
if (!section.stages.discuss) return step(served, "discuss-section", id, `Settle what ${section.title} must argue.`);
|
|
1585
1607
|
if (section.research.required && !section.research.present)
|
|
@@ -1676,6 +1698,15 @@ function driveStep(desk: Desk, drive: Drive): DriveDecision {
|
|
|
1676
1698
|
};
|
|
1677
1699
|
return { kind: "stop", reason: `${next.command} ran and changed nothing the next step depends on, so the desk stops instead of repeating it. ${next.reason}` };
|
|
1678
1700
|
}
|
|
1701
|
+
// Live, write-section measured its draft and the desk armed it again with the same words, which the model took for a loop.
|
|
1702
|
+
if (last && last.action === next.action && last.section === section)
|
|
1703
|
+
return {
|
|
1704
|
+
kind: "step",
|
|
1705
|
+
action: next.action,
|
|
1706
|
+
section,
|
|
1707
|
+
prompt: `ai.iowarp.clio/prompts/wtfp/${next.action}.md`,
|
|
1708
|
+
reason: `Continue ${next.command}: it made progress but has not finished, so the desk arms it again on purpose; this is not a loop. ${next.reason}`,
|
|
1709
|
+
};
|
|
1679
1710
|
return { kind: "step", action: next.action, section, prompt: `ai.iowarp.clio/prompts/wtfp/${next.action}.md`, reason: next.reason };
|
|
1680
1711
|
}
|
|
1681
1712
|
|
|
@@ -1686,6 +1717,13 @@ function driveStep(desk: Desk, drive: Drive): DriveDecision {
|
|
|
1686
1717
|
const DRIVER_RULE =
|
|
1687
1718
|
"Driver rule for this /wtfp:advance run: the desk, not you, picks every step, so finish the step it armed and call extension_wtfp__next_step with after naming that step (\"start\" for the first call), call extension_wtfp__gate with the checkpoint it names and then extension_wtfp__next_step, and on a stop, a failed step or a refused call report the steps taken and end the turn without choosing another action.";
|
|
1688
1719
|
|
|
1720
|
+
/**
|
|
1721
|
+
* Live on Clio 0.8.3, the model looked for a capability named after the step's action, found none in the
|
|
1722
|
+
* turn's list, and stopped the drive as if the step were forbidden.
|
|
1723
|
+
*/
|
|
1724
|
+
const STEP_IS_A_PROCEDURE =
|
|
1725
|
+
"A step is a procedure, not a capability: there is no tool named after its action, so do it with this turn's tools as its prompt says.";
|
|
1726
|
+
|
|
1689
1727
|
/** Where a step's prompt lives, stated so it survives the loss of the advance prompt's resolved plugin root. */
|
|
1690
1728
|
function stepPrompt(prompt: string): string {
|
|
1691
1729
|
return `<plugin root>/${prompt}, where <plugin root> is the WTF-P plugin root (two directories above the base_dir of the loaded wtfp-manage-project skill; the prompt's \${pluginRoot} paths mean that root)`;
|
|
@@ -2502,13 +2540,83 @@ function notARecord(uri: string): string {
|
|
|
2502
2540
|
const FAMILY_LIMIT = 48 * 1024;
|
|
2503
2541
|
|
|
2504
2542
|
/**
|
|
2505
|
-
*
|
|
2506
|
-
*
|
|
2507
|
-
*
|
|
2543
|
+
* How much record JSON a family read returns in full. Live, audit-milestone
|
|
2544
|
+
* and submit-milestone read every validation of a delivered paper in full,
|
|
2545
|
+
* over 100 KB, which every later call of the turn resent; past this budget a
|
|
2546
|
+
* family read lists one digest row per record instead.
|
|
2547
|
+
*/
|
|
2548
|
+
const FAMILY_FULL_LIMIT = 16 * 1024;
|
|
2549
|
+
|
|
2550
|
+
const FAMILIES = ["sections", "sources", "evidence", "checkpoints", "validations", "interactions"] as const;
|
|
2551
|
+
const FAMILY_URI = new RegExp(`^project://(${FAMILIES.join("|")})/?\\*?(?:\\?(.*))?$`, "u");
|
|
2552
|
+
|
|
2553
|
+
/** A family read's query: `section` narrows it to one section's records, `after` pages past a record id. */
|
|
2554
|
+
function familyQuery(uri: string, query: string | undefined): { section: string | null; after: string | null } {
|
|
2555
|
+
const parsed: { section: string | null; after: string | null } = { section: null, after: null };
|
|
2556
|
+
for (const pair of (query ?? "").split("&").filter(Boolean)) {
|
|
2557
|
+
const [key, value = ""] = pair.split("=");
|
|
2558
|
+
if ((key !== "section" && key !== "after") || !new RegExp(`^${IDENTIFIER}$`, "u").test(value))
|
|
2559
|
+
throw new Error(`${uri} has an unknown query; a family read takes section=<section id> and after=<record id>, such as project://validations?section=introduction`);
|
|
2560
|
+
parsed[key] = value;
|
|
2561
|
+
}
|
|
2562
|
+
return parsed;
|
|
2563
|
+
}
|
|
2564
|
+
|
|
2565
|
+
/** The URIs a section owns, and its claims, so a family read can keep only the records about it. */
|
|
2566
|
+
function sectionReach(workspace: string, desk: Desk, section: string): { prefix: string; owned: string[]; claims: Set<string>; evidence: Set<string> } {
|
|
2567
|
+
const row = desk.sections.find((entry) => entry.id === section);
|
|
2568
|
+
if (!row && readBytes(workspace, `.planning/sections/${section}/section.json`) === null)
|
|
2569
|
+
throw new Error(`there is no section ${section}; read project://sections for the section ids`);
|
|
2570
|
+
const record = readRecord(workspace, `.planning/sections/${section}/section.json`);
|
|
2571
|
+
const claims = Array.isArray(record?.claims) ? (record.claims as Json[]) : [];
|
|
2572
|
+
return {
|
|
2573
|
+
prefix: `project://sections/${section}`,
|
|
2574
|
+
owned: scopes(section, row?.manuscript ?? null),
|
|
2575
|
+
claims: new Set(claims.map((claim) => text(claim.id)).filter(Boolean)),
|
|
2576
|
+
evidence: new Set(claims.flatMap((claim) => (Array.isArray(claim.evidence_uris) ? claim.evidence_uris.map(String) : []))),
|
|
2577
|
+
};
|
|
2578
|
+
}
|
|
2579
|
+
|
|
2580
|
+
function within(uri: unknown, reach: { prefix: string; owned: string[] }): boolean {
|
|
2581
|
+
const value = text(uri);
|
|
2582
|
+
return value === reach.prefix || value.startsWith(`${reach.prefix}/`) || reach.owned.includes(value);
|
|
2583
|
+
}
|
|
2584
|
+
|
|
2585
|
+
/** One line of a family listed by digest: what the record is and its outcome, with the version to write it back. */
|
|
2586
|
+
function digestRow(collection: string, read: Json): Json {
|
|
2587
|
+
const record = (read.record ?? {}) as Json;
|
|
2588
|
+
const row: Json = { uri: read.uri, ...(read.revision === null ? {} : { revision: read.revision }), sha256: read.sha256 };
|
|
2589
|
+
const pick = (...keys: string[]) => {
|
|
2590
|
+
for (const key of keys) {
|
|
2591
|
+
const value = record[key];
|
|
2592
|
+
if (value !== undefined && value !== null) row[key] = typeof value === "string" && value.length > 160 ? `${value.slice(0, 159)}…` : value;
|
|
2593
|
+
}
|
|
2594
|
+
};
|
|
2595
|
+
if (collection === "validations") {
|
|
2596
|
+
pick("action_id", "validator_role", "subject_uri", "status", "executed_at");
|
|
2597
|
+
const checks = Array.isArray(record.checks) ? (record.checks as Json[]) : [];
|
|
2598
|
+
row.failed_checks = checks.filter((check) => check.status !== "passed").map((check) => check.id);
|
|
2599
|
+
row.issues = Array.isArray(record.issues) ? record.issues.length : 0;
|
|
2600
|
+
} else if (collection === "checkpoints") {
|
|
2601
|
+
pick("kind", "scope_uri", "status", "blocking", "created_at");
|
|
2602
|
+
if (read.trust !== undefined) row.trust = read.trust;
|
|
2603
|
+
} else if (collection === "sections") pick("title", "status", "word_count", "word_target", "wave");
|
|
2604
|
+
else if (collection === "sources") pick("citation_key", "title", "year", "kind", "status");
|
|
2605
|
+
else if (collection === "evidence") pick("claim_id", "source_uri", "relation", "confidence", "verified_at");
|
|
2606
|
+
else pick("kind", "subject_uri", "outcome", "selected_option", "answered_at");
|
|
2607
|
+
return row;
|
|
2608
|
+
}
|
|
2609
|
+
|
|
2610
|
+
/**
|
|
2611
|
+
* The records of one family, such as `project://sources`, in one call: in
|
|
2612
|
+
* full while they fit FAMILY_FULL_LIMIT, otherwise one digest row each, so a
|
|
2613
|
+
* grown family never floods the turn. `?section=` keeps only one section's
|
|
2614
|
+
* records; `?after=` pages past FAMILY_LIMIT.
|
|
2508
2615
|
*/
|
|
2509
|
-
function readFamily(ctx: ExtensionContextV2, desk: Desk, collection: string,
|
|
2616
|
+
function readFamily(ctx: ExtensionContextV2, desk: Desk, collection: string, query: { section: string | null; after: string | null }): { text: string; data: unknown } {
|
|
2510
2617
|
const workspace = ctx.snapshot.workspace;
|
|
2511
2618
|
const identifier = new RegExp(`^${IDENTIFIER}$`, "u");
|
|
2619
|
+
const reach = query.section === null ? null : sectionReach(workspace, desk, query.section);
|
|
2512
2620
|
let ids: string[];
|
|
2513
2621
|
if (collection === "sections") {
|
|
2514
2622
|
const directory = contained(workspace, ".planning/sections");
|
|
@@ -2520,49 +2628,83 @@ function readFamily(ctx: ExtensionContextV2, desk: Desk, collection: string, aft
|
|
|
2520
2628
|
.map((entry) => entry.name)
|
|
2521
2629
|
.sort();
|
|
2522
2630
|
} else ids = listJson(workspace, `.planning/${collection}`).map((file) => path.posix.basename(file, ".json")).filter((id) => identifier.test(id));
|
|
2523
|
-
const
|
|
2524
|
-
const omitted: string[] = [];
|
|
2631
|
+
const reads: Json[] = [];
|
|
2525
2632
|
const failed: string[] = [];
|
|
2526
|
-
let size = 0;
|
|
2527
|
-
const total = ids.length;
|
|
2528
|
-
if (after !== null) ids = ids.filter((id) => id > after);
|
|
2529
2633
|
for (const id of ids) {
|
|
2530
|
-
if (omitted.length > 0) {
|
|
2531
|
-
omitted.push(id);
|
|
2532
|
-
continue;
|
|
2533
|
-
}
|
|
2534
|
-
let one: { data: unknown };
|
|
2535
2634
|
try {
|
|
2536
|
-
|
|
2635
|
+
reads.push(readTool(ctx, desk, `project://${collection}/${id}`).data as Json);
|
|
2537
2636
|
} catch (error) {
|
|
2538
2637
|
failed.push(`${id} (${error instanceof Error ? error.message : String(error)})`);
|
|
2539
|
-
continue;
|
|
2540
2638
|
}
|
|
2541
|
-
|
|
2542
|
-
|
|
2543
|
-
|
|
2639
|
+
}
|
|
2640
|
+
// Interactions answer checkpoints, so a section's interactions are those about its checkpoints.
|
|
2641
|
+
const sectionCheckpoints =
|
|
2642
|
+
reach && collection === "interactions"
|
|
2643
|
+
? new Set(listJson(workspace, ".planning/checkpoints").flatMap((file) => {
|
|
2644
|
+
const checkpoint = readRecord(workspace, file);
|
|
2645
|
+
return checkpoint && within(checkpoint.scope_uri, reach) ? [`project://checkpoints/${path.posix.basename(file, ".json")}`] : [];
|
|
2646
|
+
}))
|
|
2647
|
+
: null;
|
|
2648
|
+
const sectionSources =
|
|
2649
|
+
reach && collection === "sources"
|
|
2650
|
+
? new Set(listJson(workspace, ".planning/evidence").flatMap((file) => {
|
|
2651
|
+
const evidence = readRecord(workspace, file);
|
|
2652
|
+
const uri = `project://evidence/${path.posix.basename(file, ".json")}`;
|
|
2653
|
+
return evidence && (reach.claims.has(text(evidence.claim_id)) || reach.evidence.has(uri)) ? [text(evidence.source_uri)] : [];
|
|
2654
|
+
}))
|
|
2655
|
+
: null;
|
|
2656
|
+
const about = (read: Json): boolean => {
|
|
2657
|
+
if (!reach) return true;
|
|
2658
|
+
const record = (read.record ?? {}) as Json;
|
|
2659
|
+
if (collection === "sections") return read.uri === reach.prefix;
|
|
2660
|
+
if (collection === "validations") return within(record.subject_uri, reach);
|
|
2661
|
+
if (collection === "checkpoints") return within(record.scope_uri, reach);
|
|
2662
|
+
if (collection === "evidence") return reach.claims.has(text(record.claim_id)) || reach.evidence.has(text(read.uri));
|
|
2663
|
+
if (collection === "sources") return sectionSources?.has(text(read.uri)) ?? false;
|
|
2664
|
+
return within(record.subject_uri, reach) || (sectionCheckpoints?.has(text(record.subject_uri)) ?? false);
|
|
2665
|
+
};
|
|
2666
|
+
const selected = reads.filter(about);
|
|
2667
|
+
const total = selected.length;
|
|
2668
|
+
const fullSize = selected.reduce((sum, read) => sum + JSON.stringify(read).length, 0);
|
|
2669
|
+
const digest = fullSize > FAMILY_FULL_LIMIT;
|
|
2670
|
+
const pending = query.after === null ? selected : selected.filter((read) => String(read.uri).split("/").pop()! > (query.after as string));
|
|
2671
|
+
const records: Json[] = [];
|
|
2672
|
+
const omitted: string[] = [];
|
|
2673
|
+
let size = 0;
|
|
2674
|
+
for (const read of pending) {
|
|
2675
|
+
const entry = digest ? digestRow(collection, read) : read;
|
|
2676
|
+
const length = JSON.stringify(entry).length;
|
|
2677
|
+
if (omitted.length > 0 || (records.length > 0 && size + length > FAMILY_LIMIT)) {
|
|
2678
|
+
omitted.push(String(read.uri).split("/").pop() ?? "");
|
|
2544
2679
|
continue;
|
|
2545
2680
|
}
|
|
2546
|
-
records.push(
|
|
2681
|
+
records.push(entry);
|
|
2547
2682
|
size += length;
|
|
2548
2683
|
}
|
|
2549
2684
|
const uri = `project://${collection}`;
|
|
2685
|
+
const scope = query.section === null ? uri : `${uri}?section=${query.section}`;
|
|
2686
|
+
const next = [query.section === null ? "" : `section=${query.section}`, `after=${String(records[records.length - 1]?.uri ?? "").split("/").pop()}`].filter(Boolean).join("&");
|
|
2687
|
+
const held = query.section === null ? "" : ` about section ${query.section}`;
|
|
2550
2688
|
return {
|
|
2551
2689
|
text: [
|
|
2552
|
-
total === 0
|
|
2553
|
-
|
|
2690
|
+
total === 0
|
|
2691
|
+
? `${uri} holds no records${held} yet.`
|
|
2692
|
+
: digest
|
|
2693
|
+
? `${uri} holds ${total} ${total === 1 ? "record" : "records"}${held}, ${Math.round(fullSize / 1024)} KB in full, so this read lists ${records.length}${query.after !== null ? ` after ${query.after}` : ""} as one digest row each: what it is, its outcome, and the version to pass back to record. Read a record at its uri for every field${query.section === null ? ", or keep one section's records with ?section=<section id>" : ""}.`
|
|
2694
|
+
: `${uri} holds ${total} ${total === 1 ? "record" : "records"}${held}; ${records.length}${query.after !== null ? ` after ${query.after}` : ""} returned in full, each with the revision and sha256 to pass back to record.`,
|
|
2695
|
+
omitted.length > 0 ? `${omitted.length} more not returned, to keep this read small; read the next page with ${uri}?${next}.` : "",
|
|
2554
2696
|
failed.length > 0 ? `Not readable: ${failed.join("; ")}.` : "",
|
|
2555
2697
|
]
|
|
2556
2698
|
.filter(Boolean)
|
|
2557
2699
|
.join(" "),
|
|
2558
|
-
data: { uri, records, omitted, ...(failed.length > 0 ? { failed } : {}) },
|
|
2700
|
+
data: { uri: scope, form: digest ? "digest" : "full", records, omitted, ...(failed.length > 0 ? { failed } : {}) },
|
|
2559
2701
|
};
|
|
2560
2702
|
}
|
|
2561
2703
|
|
|
2562
2704
|
function readTool(ctx: ExtensionContextV2, desk: Desk, uri: string): { text: string; data: unknown } {
|
|
2563
2705
|
const workspace = ctx.snapshot.workspace;
|
|
2564
|
-
const family =
|
|
2565
|
-
if (family) return readFamily(ctx, desk, family[1] as string, family[2]
|
|
2706
|
+
const family = FAMILY_URI.exec(uri);
|
|
2707
|
+
if (family) return readFamily(ctx, desk, family[1] as string, familyQuery(uri, family[2]));
|
|
2566
2708
|
const route = RECORD_URIS.find((entry) => entry.pattern.test(uri));
|
|
2567
2709
|
if (!route) throw new Error(notARecord(uri));
|
|
2568
2710
|
const file = route.file(route.pattern.exec(uri)?.[1] ?? "");
|
|
@@ -3672,7 +3814,7 @@ export default function extension(api: ExtensionApiV2): void {
|
|
|
3672
3814
|
} satisfies Drive);
|
|
3673
3815
|
const invocation = `/wtfp:${decision.action}${decision.section ? ` ${decision.section}` : ""}`;
|
|
3674
3816
|
return {
|
|
3675
|
-
text: `${lead}Step ${drive.steps.length + 1}: ${invocation}. ${decision.reason} The write guard is armed for ${decision.action}${decision.section ? ` ${decision.section}` : ""} only. Read and follow ${stepPrompt(decision.prompt)} with ${decision.section ? `invocation input ${decision.section}` : "no invocation input"}. ${DRIVER_RULE}`,
|
|
3817
|
+
text: `${lead}Step ${drive.steps.length + 1}: ${invocation}. ${decision.reason} The write guard is armed for ${decision.action}${decision.section ? ` ${decision.section}` : ""} only. Read and follow ${stepPrompt(decision.prompt)} with ${decision.section ? `invocation input ${decision.section}` : "no invocation input"}. ${STEP_IS_A_PROCEDURE} ${DRIVER_RULE}`,
|
|
3676
3818
|
data: decision,
|
|
3677
3819
|
};
|
|
3678
3820
|
});
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
"schema": "wtfp.generated-adapter/v1",
|
|
3
3
|
"generatorVersion": 5,
|
|
4
4
|
"target": "codex",
|
|
5
|
-
"sourceHash": "
|
|
5
|
+
"sourceHash": "0fb9aea2244de5e00fe420c3f841308c20226cacdbd1e9fb7d0039f4d1dd5151",
|
|
6
6
|
"files": [
|
|
7
7
|
{
|
|
8
8
|
"path": ".codex-plugin/plugin.json",
|
|
9
|
-
"sha256": "
|
|
9
|
+
"sha256": "812e3c6f4ab20c15e659b123bc904bc7d595b2c7c1188f41311de63b944a66f7"
|
|
10
10
|
},
|
|
11
11
|
{
|
|
12
12
|
"path": "actions/add-todo.json",
|
|
@@ -226,7 +226,7 @@
|
|
|
226
226
|
},
|
|
227
227
|
{
|
|
228
228
|
"path": "plugin.json",
|
|
229
|
-
"sha256": "
|
|
229
|
+
"sha256": "9e9946ab2875a35a9e65703030e4416caa3736bdc4c536db432451d389014ee5"
|
|
230
230
|
},
|
|
231
231
|
{
|
|
232
232
|
"path": "project/README.md",
|
|
@@ -674,7 +674,7 @@
|
|
|
674
674
|
},
|
|
675
675
|
{
|
|
676
676
|
"path": "workflows/review-section.md",
|
|
677
|
-
"sha256": "
|
|
677
|
+
"sha256": "a3df01d14a7fe0480bb8663347496acdeeed967042f189e25c8b017aa7e01c0c"
|
|
678
678
|
},
|
|
679
679
|
{
|
|
680
680
|
"path": "workflows/settings.md",
|
|
@@ -21,8 +21,8 @@ Manuscript prose and supporting context, research, plan, review, summary, handof
|
|
|
21
21
|
|
|
22
22
|
## Procedure
|
|
23
23
|
|
|
24
|
-
1. Resolve one manuscript section, its outline claims, context, plan, research, summary, decisions, evidence, neighboring prose, and review rubric.
|
|
25
|
-
2. Dispatch one read-only review of claim coverage, reasoning, evidence, citations, coherence, prose, and requirements. If the structured result is malformed, allow at most one corrective retry for result-contract compliance; never retry until a reviewer says pass, and do not retry warning-only or explicitly accepted debt.
|
|
24
|
+
1. Resolve one manuscript section, its outline claims, context, plan, research, summary, decisions, evidence, neighboring prose, and review rubric. Review the current draft against the section's goal, claims, decisions, and the plans that shaped its content. A revision plan's preservation or no-change criteria governed that revision and its verification; they are not criteria for a later review.
|
|
25
|
+
2. Dispatch one read-only review of claim coverage, reasoning, evidence, citations, coherence, prose, and requirements. If the structured result is malformed, allow at most one corrective retry for result-contract compliance; never retry until a reviewer says pass, and do not retry warning-only or explicitly accepted debt. A reviewer's fail verdict is the review's result, not a failed run: record the review and an `issues-found` validation with each failed check as an issue.
|
|
26
26
|
3. Write layer, confidence, location, impact, recommendation, and other rich detail in the Markdown review. Encode the read-only validation using only members allowed by the closed v1 schema; issue objects contain only severity, summary, and optional evidence, and the root never gains an `input_revisions` member. Disputed findings go through a user gate; accepted warning debt remains an `issues-found` result and does not authorize manuscript edits.
|
|
27
27
|
4. Update only the section record to link the review. Review does not write project state, create a pause checkpoint or handoff, invoke pause implicitly, or invent a `paused` phase; leave lifecycle transitions to their owning actions.
|
|
28
28
|
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
"schema": "wtfp.generated-adapter/v1",
|
|
3
3
|
"generatorVersion": 5,
|
|
4
4
|
"target": "copilot-marketplace",
|
|
5
|
-
"sourceHash": "
|
|
5
|
+
"sourceHash": "43886bbfd1eb3f3d65c20dcedf1f4c60c12cc2e0f0ec2ed90b58d8d46f968c46",
|
|
6
6
|
"files": [
|
|
7
7
|
{
|
|
8
8
|
"path": "marketplace.json",
|
|
9
|
-
"sha256": "
|
|
9
|
+
"sha256": "8c559d73c1526d5539a5904d08a31bde337853cd14463d64370b1b6fb288ac69"
|
|
10
10
|
},
|
|
11
11
|
{
|
|
12
12
|
"path": "project/.github/agents/wtfp-argument-verifier.agent.md",
|
|
@@ -858,7 +858,7 @@
|
|
|
858
858
|
},
|
|
859
859
|
{
|
|
860
860
|
"path": "project/.github/wtfp/workflows/review-section.md",
|
|
861
|
-
"sha256": "
|
|
861
|
+
"sha256": "a3df01d14a7fe0480bb8663347496acdeeed967042f189e25c8b017aa7e01c0c"
|
|
862
862
|
},
|
|
863
863
|
{
|
|
864
864
|
"path": "project/.github/wtfp/workflows/settings.md",
|
|
@@ -5,14 +5,14 @@
|
|
|
5
5
|
},
|
|
6
6
|
"metadata": {
|
|
7
7
|
"description": "WTF-P research workflow plugins",
|
|
8
|
-
"version": "0.8.
|
|
8
|
+
"version": "0.8.3"
|
|
9
9
|
},
|
|
10
10
|
"plugins": [
|
|
11
11
|
{
|
|
12
12
|
"name": "wtfp",
|
|
13
13
|
"source": "./plugins/wtfp",
|
|
14
14
|
"description": "Portable academic research and writing workflows.",
|
|
15
|
-
"version": "0.8.
|
|
15
|
+
"version": "0.8.3",
|
|
16
16
|
"author": {
|
|
17
17
|
"name": "akougkas"
|
|
18
18
|
},
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
"schema": "wtfp.generated-adapter/v1",
|
|
3
3
|
"generatorVersion": 5,
|
|
4
4
|
"target": "copilot",
|
|
5
|
-
"sourceHash": "
|
|
5
|
+
"sourceHash": "71c3ba2e43dbe3aded23b72142e10182b9e173674633b1df71ae4c6bfce6a8c8",
|
|
6
6
|
"files": [
|
|
7
7
|
{
|
|
8
8
|
"path": ".claude-plugin/plugin.json",
|
|
9
|
-
"sha256": "
|
|
9
|
+
"sha256": "9715cd3ad2e0f0c6bd7bb155758096c89268160ac78a7579cb8bdfc843cb6064"
|
|
10
10
|
},
|
|
11
11
|
{
|
|
12
12
|
"path": "actions/add-todo.json",
|
|
@@ -334,7 +334,7 @@
|
|
|
334
334
|
},
|
|
335
335
|
{
|
|
336
336
|
"path": "commands/wtfp-review-section.md",
|
|
337
|
-
"sha256": "
|
|
337
|
+
"sha256": "9e471d1079ce8df07d4a1088ccfca81536b6f553d0bf558a5ac7d96cedbe0c91"
|
|
338
338
|
},
|
|
339
339
|
{
|
|
340
340
|
"path": "commands/wtfp-settings.md",
|
|
@@ -818,7 +818,7 @@
|
|
|
818
818
|
},
|
|
819
819
|
{
|
|
820
820
|
"path": "workflows/review-section.md",
|
|
821
|
-
"sha256": "
|
|
821
|
+
"sha256": "a3df01d14a7fe0480bb8663347496acdeeed967042f189e25c8b017aa7e01c0c"
|
|
822
822
|
},
|
|
823
823
|
{
|
|
824
824
|
"path": "workflows/settings.md",
|
|
@@ -29,8 +29,8 @@ Manuscript prose and supporting context, research, plan, review, summary, handof
|
|
|
29
29
|
|
|
30
30
|
## Procedure
|
|
31
31
|
|
|
32
|
-
1. Resolve one manuscript section, its outline claims, context, plan, research, summary, decisions, evidence, neighboring prose, and review rubric.
|
|
33
|
-
2. Dispatch one read-only review of claim coverage, reasoning, evidence, citations, coherence, prose, and requirements. If the structured result is malformed, allow at most one corrective retry for result-contract compliance; never retry until a reviewer says pass, and do not retry warning-only or explicitly accepted debt.
|
|
32
|
+
1. Resolve one manuscript section, its outline claims, context, plan, research, summary, decisions, evidence, neighboring prose, and review rubric. Review the current draft against the section's goal, claims, decisions, and the plans that shaped its content. A revision plan's preservation or no-change criteria governed that revision and its verification; they are not criteria for a later review.
|
|
33
|
+
2. Dispatch one read-only review of claim coverage, reasoning, evidence, citations, coherence, prose, and requirements. If the structured result is malformed, allow at most one corrective retry for result-contract compliance; never retry until a reviewer says pass, and do not retry warning-only or explicitly accepted debt. A reviewer's fail verdict is the review's result, not a failed run: record the review and an `issues-found` validation with each failed check as an issue.
|
|
34
34
|
3. Write layer, confidence, location, impact, recommendation, and other rich detail in the Markdown review. Encode the read-only validation using only members allowed by the closed v1 schema; issue objects contain only severity, summary, and optional evidence, and the root never gains an `input_revisions` member. Disputed findings go through a user gate; accepted warning debt remains an `issues-found` result and does not authorize manuscript edits.
|
|
35
35
|
4. Update only the section record to link the review. Review does not write project state, create a pause checkpoint or handoff, invoke pause implicitly, or invent a `paused` phase; leave lifecycle transitions to their owning actions.
|
|
36
36
|
|
|
@@ -21,8 +21,8 @@ Manuscript prose and supporting context, research, plan, review, summary, handof
|
|
|
21
21
|
|
|
22
22
|
## Procedure
|
|
23
23
|
|
|
24
|
-
1. Resolve one manuscript section, its outline claims, context, plan, research, summary, decisions, evidence, neighboring prose, and review rubric.
|
|
25
|
-
2. Dispatch one read-only review of claim coverage, reasoning, evidence, citations, coherence, prose, and requirements. If the structured result is malformed, allow at most one corrective retry for result-contract compliance; never retry until a reviewer says pass, and do not retry warning-only or explicitly accepted debt.
|
|
24
|
+
1. Resolve one manuscript section, its outline claims, context, plan, research, summary, decisions, evidence, neighboring prose, and review rubric. Review the current draft against the section's goal, claims, decisions, and the plans that shaped its content. A revision plan's preservation or no-change criteria governed that revision and its verification; they are not criteria for a later review.
|
|
25
|
+
2. Dispatch one read-only review of claim coverage, reasoning, evidence, citations, coherence, prose, and requirements. If the structured result is malformed, allow at most one corrective retry for result-contract compliance; never retry until a reviewer says pass, and do not retry warning-only or explicitly accepted debt. A reviewer's fail verdict is the review's result, not a failed run: record the review and an `issues-found` validation with each failed check as an issue.
|
|
26
26
|
3. Write layer, confidence, location, impact, recommendation, and other rich detail in the Markdown review. Encode the read-only validation using only members allowed by the closed v1 schema; issue objects contain only severity, summary, and optional evidence, and the root never gains an `input_revisions` member. Disputed findings go through a user gate; accepted warning debt remains an `issues-found` result and does not authorize manuscript edits.
|
|
27
27
|
4. Update only the section record to link the review. Review does not write project state, create a pause checkpoint or handoff, invoke pause implicitly, or invent a `paused` phase; leave lifecycle transitions to their owning actions.
|
|
28
28
|
|
|
@@ -21,8 +21,8 @@ Manuscript prose and supporting context, research, plan, review, summary, handof
|
|
|
21
21
|
|
|
22
22
|
## Procedure
|
|
23
23
|
|
|
24
|
-
1. Resolve one manuscript section, its outline claims, context, plan, research, summary, decisions, evidence, neighboring prose, and review rubric.
|
|
25
|
-
2. Dispatch one read-only review of claim coverage, reasoning, evidence, citations, coherence, prose, and requirements. If the structured result is malformed, allow at most one corrective retry for result-contract compliance; never retry until a reviewer says pass, and do not retry warning-only or explicitly accepted debt.
|
|
24
|
+
1. Resolve one manuscript section, its outline claims, context, plan, research, summary, decisions, evidence, neighboring prose, and review rubric. Review the current draft against the section's goal, claims, decisions, and the plans that shaped its content. A revision plan's preservation or no-change criteria governed that revision and its verification; they are not criteria for a later review.
|
|
25
|
+
2. Dispatch one read-only review of claim coverage, reasoning, evidence, citations, coherence, prose, and requirements. If the structured result is malformed, allow at most one corrective retry for result-contract compliance; never retry until a reviewer says pass, and do not retry warning-only or explicitly accepted debt. A reviewer's fail verdict is the review's result, not a failed run: record the review and an `issues-found` validation with each failed check as an issue.
|
|
26
26
|
3. Write layer, confidence, location, impact, recommendation, and other rich detail in the Markdown review. Encode the read-only validation using only members allowed by the closed v1 schema; issue objects contain only severity, summary, and optional evidence, and the root never gains an `input_revisions` member. Disputed findings go through a user gate; accepted warning debt remains an `issues-found` result and does not authorize manuscript edits.
|
|
27
27
|
4. Update only the section record to link the review. Review does not write project state, create a pause checkpoint or handoff, invoke pause implicitly, or invent a `paused` phase; leave lifecycle transitions to their owning actions.
|
|
28
28
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"schema": "wtfp.generated-adapter/v1",
|
|
3
3
|
"generatorVersion": 5,
|
|
4
4
|
"target": "gemini",
|
|
5
|
-
"sourceHash": "
|
|
5
|
+
"sourceHash": "3c0dda179ad2464b5b29eae3e3f71741782b7a369a7c2a73a1a3583ca2b41312",
|
|
6
6
|
"files": [
|
|
7
7
|
{
|
|
8
8
|
"path": "actions/add-todo.json",
|
|
@@ -330,7 +330,7 @@
|
|
|
330
330
|
},
|
|
331
331
|
{
|
|
332
332
|
"path": "commands/wtfp/review-section.toml",
|
|
333
|
-
"sha256": "
|
|
333
|
+
"sha256": "8dbb6976e7213b2774f74d3aab1e085311960954761c2c76d784ed704623b892"
|
|
334
334
|
},
|
|
335
335
|
{
|
|
336
336
|
"path": "commands/wtfp/settings.toml",
|
|
@@ -370,7 +370,7 @@
|
|
|
370
370
|
},
|
|
371
371
|
{
|
|
372
372
|
"path": "gemini-extension.json",
|
|
373
|
-
"sha256": "
|
|
373
|
+
"sha256": "d6a09bb4ca5c600519747a0c83b880949514e73958fe758b21b5a12c947e7f1d"
|
|
374
374
|
},
|
|
375
375
|
{
|
|
376
376
|
"path": "GEMINI.md",
|
|
@@ -822,7 +822,7 @@
|
|
|
822
822
|
},
|
|
823
823
|
{
|
|
824
824
|
"path": "workflows/review-section.md",
|
|
825
|
-
"sha256": "
|
|
825
|
+
"sha256": "a3df01d14a7fe0480bb8663347496acdeeed967042f189e25c8b017aa7e01c0c"
|
|
826
826
|
},
|
|
827
827
|
{
|
|
828
828
|
"path": "workflows/settings.md",
|
|
@@ -270,8 +270,8 @@ Manuscript prose and supporting context, research, plan, review, summary, handof
|
|
|
270
270
|
|
|
271
271
|
## Procedure
|
|
272
272
|
|
|
273
|
-
1. Resolve one manuscript section, its outline claims, context, plan, research, summary, decisions, evidence, neighboring prose, and review rubric.
|
|
274
|
-
2. Dispatch one read-only review of claim coverage, reasoning, evidence, citations, coherence, prose, and requirements. If the structured result is malformed, allow at most one corrective retry for result-contract compliance; never retry until a reviewer says pass, and do not retry warning-only or explicitly accepted debt.
|
|
273
|
+
1. Resolve one manuscript section, its outline claims, context, plan, research, summary, decisions, evidence, neighboring prose, and review rubric. Review the current draft against the section's goal, claims, decisions, and the plans that shaped its content. A revision plan's preservation or no-change criteria governed that revision and its verification; they are not criteria for a later review.
|
|
274
|
+
2. Dispatch one read-only review of claim coverage, reasoning, evidence, citations, coherence, prose, and requirements. If the structured result is malformed, allow at most one corrective retry for result-contract compliance; never retry until a reviewer says pass, and do not retry warning-only or explicitly accepted debt. A reviewer's fail verdict is the review's result, not a failed run: record the review and an `issues-found` validation with each failed check as an issue.
|
|
275
275
|
3. Write layer, confidence, location, impact, recommendation, and other rich detail in the Markdown review. Encode the read-only validation using only members allowed by the closed v1 schema; issue objects contain only severity, summary, and optional evidence, and the root never gains an `input_revisions` member. Disputed findings go through a user gate; accepted warning debt remains an `issues-found` result and does not authorize manuscript edits.
|
|
276
276
|
4. Update only the section record to link the review. Review does not write project state, create a pause checkpoint or handoff, invoke pause implicitly, or invent a `paused` phase; leave lifecycle transitions to their owning actions.
|
|
277
277
|
|
|
@@ -21,8 +21,8 @@ Manuscript prose and supporting context, research, plan, review, summary, handof
|
|
|
21
21
|
|
|
22
22
|
## Procedure
|
|
23
23
|
|
|
24
|
-
1. Resolve one manuscript section, its outline claims, context, plan, research, summary, decisions, evidence, neighboring prose, and review rubric.
|
|
25
|
-
2. Dispatch one read-only review of claim coverage, reasoning, evidence, citations, coherence, prose, and requirements. If the structured result is malformed, allow at most one corrective retry for result-contract compliance; never retry until a reviewer says pass, and do not retry warning-only or explicitly accepted debt.
|
|
24
|
+
1. Resolve one manuscript section, its outline claims, context, plan, research, summary, decisions, evidence, neighboring prose, and review rubric. Review the current draft against the section's goal, claims, decisions, and the plans that shaped its content. A revision plan's preservation or no-change criteria governed that revision and its verification; they are not criteria for a later review.
|
|
25
|
+
2. Dispatch one read-only review of claim coverage, reasoning, evidence, citations, coherence, prose, and requirements. If the structured result is malformed, allow at most one corrective retry for result-contract compliance; never retry until a reviewer says pass, and do not retry warning-only or explicitly accepted debt. A reviewer's fail verdict is the review's result, not a failed run: record the review and an `issues-found` validation with each failed check as an issue.
|
|
26
26
|
3. Write layer, confidence, location, impact, recommendation, and other rich detail in the Markdown review. Encode the read-only validation using only members allowed by the closed v1 schema; issue objects contain only severity, summary, and optional evidence, and the root never gains an `input_revisions` member. Disputed findings go through a user gate; accepted warning debt remains an `issues-found` result and does not authorize manuscript edits.
|
|
27
27
|
4. Update only the section record to link the review. Review does not write project state, create a pause checkpoint or handoff, invoke pause implicitly, or invent a `paused` phase; leave lifecycle transitions to their owning actions.
|
|
28
28
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"schema": "wtfp.generated-adapter/v1",
|
|
3
3
|
"generatorVersion": 5,
|
|
4
4
|
"target": "opencode",
|
|
5
|
-
"sourceHash": "
|
|
5
|
+
"sourceHash": "e303da270bbb44cbb7085cc6d987d66b92c5260e6c03d67c6c22ad4a13dd2975",
|
|
6
6
|
"files": [
|
|
7
7
|
{
|
|
8
8
|
"path": "actions/add-todo.json",
|
|
@@ -330,7 +330,7 @@
|
|
|
330
330
|
},
|
|
331
331
|
{
|
|
332
332
|
"path": "commands/wtfp/review-section.md",
|
|
333
|
-
"sha256": "
|
|
333
|
+
"sha256": "713acbd716e67882cf027337cb0576e08801613ff42d7d10075f313f420e37fd"
|
|
334
334
|
},
|
|
335
335
|
{
|
|
336
336
|
"path": "commands/wtfp/settings.md",
|
|
@@ -814,7 +814,7 @@
|
|
|
814
814
|
},
|
|
815
815
|
{
|
|
816
816
|
"path": "workflows/review-section.md",
|
|
817
|
-
"sha256": "
|
|
817
|
+
"sha256": "a3df01d14a7fe0480bb8663347496acdeeed967042f189e25c8b017aa7e01c0c"
|
|
818
818
|
},
|
|
819
819
|
{
|
|
820
820
|
"path": "workflows/settings.md",
|
|
@@ -273,8 +273,8 @@ Manuscript prose and supporting context, research, plan, review, summary, handof
|
|
|
273
273
|
|
|
274
274
|
## Procedure
|
|
275
275
|
|
|
276
|
-
1. Resolve one manuscript section, its outline claims, context, plan, research, summary, decisions, evidence, neighboring prose, and review rubric.
|
|
277
|
-
2. Dispatch one read-only review of claim coverage, reasoning, evidence, citations, coherence, prose, and requirements. If the structured result is malformed, allow at most one corrective retry for result-contract compliance; never retry until a reviewer says pass, and do not retry warning-only or explicitly accepted debt.
|
|
276
|
+
1. Resolve one manuscript section, its outline claims, context, plan, research, summary, decisions, evidence, neighboring prose, and review rubric. Review the current draft against the section's goal, claims, decisions, and the plans that shaped its content. A revision plan's preservation or no-change criteria governed that revision and its verification; they are not criteria for a later review.
|
|
277
|
+
2. Dispatch one read-only review of claim coverage, reasoning, evidence, citations, coherence, prose, and requirements. If the structured result is malformed, allow at most one corrective retry for result-contract compliance; never retry until a reviewer says pass, and do not retry warning-only or explicitly accepted debt. A reviewer's fail verdict is the review's result, not a failed run: record the review and an `issues-found` validation with each failed check as an issue.
|
|
278
278
|
3. Write layer, confidence, location, impact, recommendation, and other rich detail in the Markdown review. Encode the read-only validation using only members allowed by the closed v1 schema; issue objects contain only severity, summary, and optional evidence, and the root never gains an `input_revisions` member. Disputed findings go through a user gate; accepted warning debt remains an `issues-found` result and does not authorize manuscript edits.
|
|
279
279
|
4. Update only the section record to link the review. Review does not write project state, create a pause checkpoint or handoff, invoke pause implicitly, or invent a `paused` phase; leave lifecycle transitions to their owning actions.
|
|
280
280
|
|
|
@@ -21,8 +21,8 @@ Manuscript prose and supporting context, research, plan, review, summary, handof
|
|
|
21
21
|
|
|
22
22
|
## Procedure
|
|
23
23
|
|
|
24
|
-
1. Resolve one manuscript section, its outline claims, context, plan, research, summary, decisions, evidence, neighboring prose, and review rubric.
|
|
25
|
-
2. Dispatch one read-only review of claim coverage, reasoning, evidence, citations, coherence, prose, and requirements. If the structured result is malformed, allow at most one corrective retry for result-contract compliance; never retry until a reviewer says pass, and do not retry warning-only or explicitly accepted debt.
|
|
24
|
+
1. Resolve one manuscript section, its outline claims, context, plan, research, summary, decisions, evidence, neighboring prose, and review rubric. Review the current draft against the section's goal, claims, decisions, and the plans that shaped its content. A revision plan's preservation or no-change criteria governed that revision and its verification; they are not criteria for a later review.
|
|
25
|
+
2. Dispatch one read-only review of claim coverage, reasoning, evidence, citations, coherence, prose, and requirements. If the structured result is malformed, allow at most one corrective retry for result-contract compliance; never retry until a reviewer says pass, and do not retry warning-only or explicitly accepted debt. A reviewer's fail verdict is the review's result, not a failed run: record the review and an `issues-found` validation with each failed check as an issue.
|
|
26
26
|
3. Write layer, confidence, location, impact, recommendation, and other rich detail in the Markdown review. Encode the read-only validation using only members allowed by the closed v1 schema; issue objects contain only severity, summary, and optional evidence, and the root never gains an `input_revisions` member. Disputed findings go through a user gate; accepted warning debt remains an `issues-found` result and does not authorize manuscript edits.
|
|
27
27
|
4. Update only the section record to link the review. Review does not write project state, create a pause checkpoint or handoff, invoke pause implicitly, or invent a `paused` phase; leave lifecycle transitions to their owning actions.
|
|
28
28
|
|