@riddledc/riddle-proof 0.5.18 → 0.5.19
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.
|
@@ -420,8 +420,31 @@ async function handleImplementation(request, state, result, agent) {
|
|
|
420
420
|
}
|
|
421
421
|
};
|
|
422
422
|
}
|
|
423
|
+
recordEvent(state, {
|
|
424
|
+
kind: "agent.implementation.started",
|
|
425
|
+
checkpoint: result.checkpoint || null,
|
|
426
|
+
stage: "implement",
|
|
427
|
+
summary: "Implementation agent started working in the after worktree.",
|
|
428
|
+
details: {
|
|
429
|
+
worktree_path: workdir || null
|
|
430
|
+
}
|
|
431
|
+
});
|
|
423
432
|
const implementation = await agent.implementChange({ ...context, workdir });
|
|
424
433
|
if (implementation.blocker || implementation.ok === false) {
|
|
434
|
+
recordEvent(state, {
|
|
435
|
+
kind: "agent.implementation.blocked",
|
|
436
|
+
checkpoint: result.checkpoint || null,
|
|
437
|
+
stage: "implement",
|
|
438
|
+
summary: implementation.summary || implementation.blocker?.message || "Implementation adapter reported a blocker.",
|
|
439
|
+
details: compactRecord({
|
|
440
|
+
worktree_path: workdir || null,
|
|
441
|
+
changed_files: implementation.changedFiles || [],
|
|
442
|
+
tests_run: implementation.testsRun || [],
|
|
443
|
+
implementation_notes: implementation.implementationNotes || null,
|
|
444
|
+
blocker: implementation.blocker || null,
|
|
445
|
+
adapter_details: implementation.details || null
|
|
446
|
+
})
|
|
447
|
+
});
|
|
425
448
|
return {
|
|
426
449
|
blocker: implementation.blocker || {
|
|
427
450
|
code: "implementation_blocked",
|
|
@@ -433,12 +456,31 @@ async function handleImplementation(request, state, result, agent) {
|
|
|
433
456
|
const cleanedArtifacts = removeEmptyToolArtifacts(workdir);
|
|
434
457
|
const diffDetected = implementation.diffDetected === true || hasGitDiff(workdir);
|
|
435
458
|
if (!diffDetected) {
|
|
459
|
+
recordEvent(state, {
|
|
460
|
+
kind: "agent.implementation.no_diff",
|
|
461
|
+
checkpoint: result.checkpoint || null,
|
|
462
|
+
stage: "implement",
|
|
463
|
+
summary: implementation.summary || "Implementation adapter returned without leaving a detectable git diff.",
|
|
464
|
+
details: compactRecord({
|
|
465
|
+
worktree_path: workdir || null,
|
|
466
|
+
changed_files: implementation.changedFiles || [],
|
|
467
|
+
tests_run: implementation.testsRun || [],
|
|
468
|
+
implementation_notes: implementation.implementationNotes || null,
|
|
469
|
+
adapter_details: implementation.details || null
|
|
470
|
+
})
|
|
471
|
+
});
|
|
436
472
|
return {
|
|
437
473
|
blocker: {
|
|
438
474
|
code: "implementation_diff_missing",
|
|
439
475
|
checkpoint: result.checkpoint || null,
|
|
440
476
|
message: "The implementation adapter returned, but the after worktree has no detectable git diff. The harness will not advance to verify.",
|
|
441
|
-
details: {
|
|
477
|
+
details: compactRecord({
|
|
478
|
+
worktree_path: workdir || null,
|
|
479
|
+
changed_files: implementation.changedFiles || [],
|
|
480
|
+
tests_run: implementation.testsRun || [],
|
|
481
|
+
implementation_notes: implementation.implementationNotes || null,
|
|
482
|
+
adapter_details: implementation.details || null
|
|
483
|
+
})
|
|
442
484
|
}
|
|
443
485
|
};
|
|
444
486
|
}
|
|
@@ -451,6 +493,9 @@ async function handleImplementation(request, state, result, agent) {
|
|
|
451
493
|
worktree_path: workdir || null,
|
|
452
494
|
diffDetected,
|
|
453
495
|
changed_files: implementation.changedFiles || [],
|
|
496
|
+
tests_run: implementation.testsRun || [],
|
|
497
|
+
implementation_notes: implementation.implementationNotes || null,
|
|
498
|
+
adapter_details: implementation.details || null,
|
|
454
499
|
cleaned_artifacts: cleanedArtifacts
|
|
455
500
|
}
|
|
456
501
|
});
|
package/dist/engine-harness.cjs
CHANGED
|
@@ -3422,8 +3422,31 @@ async function handleImplementation(request, state, result, agent) {
|
|
|
3422
3422
|
}
|
|
3423
3423
|
};
|
|
3424
3424
|
}
|
|
3425
|
+
recordEvent(state, {
|
|
3426
|
+
kind: "agent.implementation.started",
|
|
3427
|
+
checkpoint: result.checkpoint || null,
|
|
3428
|
+
stage: "implement",
|
|
3429
|
+
summary: "Implementation agent started working in the after worktree.",
|
|
3430
|
+
details: {
|
|
3431
|
+
worktree_path: workdir || null
|
|
3432
|
+
}
|
|
3433
|
+
});
|
|
3425
3434
|
const implementation = await agent.implementChange({ ...context, workdir });
|
|
3426
3435
|
if (implementation.blocker || implementation.ok === false) {
|
|
3436
|
+
recordEvent(state, {
|
|
3437
|
+
kind: "agent.implementation.blocked",
|
|
3438
|
+
checkpoint: result.checkpoint || null,
|
|
3439
|
+
stage: "implement",
|
|
3440
|
+
summary: implementation.summary || implementation.blocker?.message || "Implementation adapter reported a blocker.",
|
|
3441
|
+
details: compactRecord({
|
|
3442
|
+
worktree_path: workdir || null,
|
|
3443
|
+
changed_files: implementation.changedFiles || [],
|
|
3444
|
+
tests_run: implementation.testsRun || [],
|
|
3445
|
+
implementation_notes: implementation.implementationNotes || null,
|
|
3446
|
+
blocker: implementation.blocker || null,
|
|
3447
|
+
adapter_details: implementation.details || null
|
|
3448
|
+
})
|
|
3449
|
+
});
|
|
3427
3450
|
return {
|
|
3428
3451
|
blocker: implementation.blocker || {
|
|
3429
3452
|
code: "implementation_blocked",
|
|
@@ -3435,12 +3458,31 @@ async function handleImplementation(request, state, result, agent) {
|
|
|
3435
3458
|
const cleanedArtifacts = removeEmptyToolArtifacts(workdir);
|
|
3436
3459
|
const diffDetected = implementation.diffDetected === true || hasGitDiff(workdir);
|
|
3437
3460
|
if (!diffDetected) {
|
|
3461
|
+
recordEvent(state, {
|
|
3462
|
+
kind: "agent.implementation.no_diff",
|
|
3463
|
+
checkpoint: result.checkpoint || null,
|
|
3464
|
+
stage: "implement",
|
|
3465
|
+
summary: implementation.summary || "Implementation adapter returned without leaving a detectable git diff.",
|
|
3466
|
+
details: compactRecord({
|
|
3467
|
+
worktree_path: workdir || null,
|
|
3468
|
+
changed_files: implementation.changedFiles || [],
|
|
3469
|
+
tests_run: implementation.testsRun || [],
|
|
3470
|
+
implementation_notes: implementation.implementationNotes || null,
|
|
3471
|
+
adapter_details: implementation.details || null
|
|
3472
|
+
})
|
|
3473
|
+
});
|
|
3438
3474
|
return {
|
|
3439
3475
|
blocker: {
|
|
3440
3476
|
code: "implementation_diff_missing",
|
|
3441
3477
|
checkpoint: result.checkpoint || null,
|
|
3442
3478
|
message: "The implementation adapter returned, but the after worktree has no detectable git diff. The harness will not advance to verify.",
|
|
3443
|
-
details: {
|
|
3479
|
+
details: compactRecord({
|
|
3480
|
+
worktree_path: workdir || null,
|
|
3481
|
+
changed_files: implementation.changedFiles || [],
|
|
3482
|
+
tests_run: implementation.testsRun || [],
|
|
3483
|
+
implementation_notes: implementation.implementationNotes || null,
|
|
3484
|
+
adapter_details: implementation.details || null
|
|
3485
|
+
})
|
|
3444
3486
|
}
|
|
3445
3487
|
};
|
|
3446
3488
|
}
|
|
@@ -3453,6 +3495,9 @@ async function handleImplementation(request, state, result, agent) {
|
|
|
3453
3495
|
worktree_path: workdir || null,
|
|
3454
3496
|
diffDetected,
|
|
3455
3497
|
changed_files: implementation.changedFiles || [],
|
|
3498
|
+
tests_run: implementation.testsRun || [],
|
|
3499
|
+
implementation_notes: implementation.implementationNotes || null,
|
|
3500
|
+
adapter_details: implementation.details || null,
|
|
3456
3501
|
cleaned_artifacts: cleanedArtifacts
|
|
3457
3502
|
}
|
|
3458
3503
|
});
|
|
@@ -37,7 +37,9 @@ interface RiddleProofAgentPayload {
|
|
|
37
37
|
blocker?: RiddleProofBlocker;
|
|
38
38
|
diffDetected?: boolean;
|
|
39
39
|
changedFiles?: string[];
|
|
40
|
+
testsRun?: string[];
|
|
40
41
|
implementationNotes?: string;
|
|
42
|
+
details?: Record<string, unknown>;
|
|
41
43
|
}
|
|
42
44
|
interface RiddleProofEngineHarnessContext {
|
|
43
45
|
request: RiddleProofRunParams;
|
package/dist/engine-harness.d.ts
CHANGED
|
@@ -37,7 +37,9 @@ interface RiddleProofAgentPayload {
|
|
|
37
37
|
blocker?: RiddleProofBlocker;
|
|
38
38
|
diffDetected?: boolean;
|
|
39
39
|
changedFiles?: string[];
|
|
40
|
+
testsRun?: string[];
|
|
40
41
|
implementationNotes?: string;
|
|
42
|
+
details?: Record<string, unknown>;
|
|
41
43
|
}
|
|
42
44
|
interface RiddleProofEngineHarnessContext {
|
|
43
45
|
request: RiddleProofRunParams;
|
package/dist/engine-harness.js
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -3978,8 +3978,31 @@ async function handleImplementation(request, state, result, agent) {
|
|
|
3978
3978
|
}
|
|
3979
3979
|
};
|
|
3980
3980
|
}
|
|
3981
|
+
recordEvent(state, {
|
|
3982
|
+
kind: "agent.implementation.started",
|
|
3983
|
+
checkpoint: result.checkpoint || null,
|
|
3984
|
+
stage: "implement",
|
|
3985
|
+
summary: "Implementation agent started working in the after worktree.",
|
|
3986
|
+
details: {
|
|
3987
|
+
worktree_path: workdir || null
|
|
3988
|
+
}
|
|
3989
|
+
});
|
|
3981
3990
|
const implementation = await agent.implementChange({ ...context, workdir });
|
|
3982
3991
|
if (implementation.blocker || implementation.ok === false) {
|
|
3992
|
+
recordEvent(state, {
|
|
3993
|
+
kind: "agent.implementation.blocked",
|
|
3994
|
+
checkpoint: result.checkpoint || null,
|
|
3995
|
+
stage: "implement",
|
|
3996
|
+
summary: implementation.summary || implementation.blocker?.message || "Implementation adapter reported a blocker.",
|
|
3997
|
+
details: compactRecord({
|
|
3998
|
+
worktree_path: workdir || null,
|
|
3999
|
+
changed_files: implementation.changedFiles || [],
|
|
4000
|
+
tests_run: implementation.testsRun || [],
|
|
4001
|
+
implementation_notes: implementation.implementationNotes || null,
|
|
4002
|
+
blocker: implementation.blocker || null,
|
|
4003
|
+
adapter_details: implementation.details || null
|
|
4004
|
+
})
|
|
4005
|
+
});
|
|
3983
4006
|
return {
|
|
3984
4007
|
blocker: implementation.blocker || {
|
|
3985
4008
|
code: "implementation_blocked",
|
|
@@ -3991,12 +4014,31 @@ async function handleImplementation(request, state, result, agent) {
|
|
|
3991
4014
|
const cleanedArtifacts = removeEmptyToolArtifacts(workdir);
|
|
3992
4015
|
const diffDetected = implementation.diffDetected === true || hasGitDiff(workdir);
|
|
3993
4016
|
if (!diffDetected) {
|
|
4017
|
+
recordEvent(state, {
|
|
4018
|
+
kind: "agent.implementation.no_diff",
|
|
4019
|
+
checkpoint: result.checkpoint || null,
|
|
4020
|
+
stage: "implement",
|
|
4021
|
+
summary: implementation.summary || "Implementation adapter returned without leaving a detectable git diff.",
|
|
4022
|
+
details: compactRecord({
|
|
4023
|
+
worktree_path: workdir || null,
|
|
4024
|
+
changed_files: implementation.changedFiles || [],
|
|
4025
|
+
tests_run: implementation.testsRun || [],
|
|
4026
|
+
implementation_notes: implementation.implementationNotes || null,
|
|
4027
|
+
adapter_details: implementation.details || null
|
|
4028
|
+
})
|
|
4029
|
+
});
|
|
3994
4030
|
return {
|
|
3995
4031
|
blocker: {
|
|
3996
4032
|
code: "implementation_diff_missing",
|
|
3997
4033
|
checkpoint: result.checkpoint || null,
|
|
3998
4034
|
message: "The implementation adapter returned, but the after worktree has no detectable git diff. The harness will not advance to verify.",
|
|
3999
|
-
details: {
|
|
4035
|
+
details: compactRecord({
|
|
4036
|
+
worktree_path: workdir || null,
|
|
4037
|
+
changed_files: implementation.changedFiles || [],
|
|
4038
|
+
tests_run: implementation.testsRun || [],
|
|
4039
|
+
implementation_notes: implementation.implementationNotes || null,
|
|
4040
|
+
adapter_details: implementation.details || null
|
|
4041
|
+
})
|
|
4000
4042
|
}
|
|
4001
4043
|
};
|
|
4002
4044
|
}
|
|
@@ -4009,6 +4051,9 @@ async function handleImplementation(request, state, result, agent) {
|
|
|
4009
4051
|
worktree_path: workdir || null,
|
|
4010
4052
|
diffDetected,
|
|
4011
4053
|
changed_files: implementation.changedFiles || [],
|
|
4054
|
+
tests_run: implementation.testsRun || [],
|
|
4055
|
+
implementation_notes: implementation.implementationNotes || null,
|
|
4056
|
+
adapter_details: implementation.details || null,
|
|
4012
4057
|
cleaned_artifacts: cleanedArtifacts
|
|
4013
4058
|
}
|
|
4014
4059
|
});
|
package/dist/index.js
CHANGED