agentxchain 2.155.27 → 2.155.28
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/package.json +1 -1
- package/src/lib/continuous-run.js +13 -1
package/package.json
CHANGED
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
resolveIntent,
|
|
32
32
|
buildVisionIdleExpansionSignal,
|
|
33
33
|
} from './intake.js';
|
|
34
|
-
import { loadProjectState } from './config.js';
|
|
34
|
+
import { loadProjectContext, loadProjectState } from './config.js';
|
|
35
35
|
import { safeWriteJson } from './safe-write.js';
|
|
36
36
|
import { emitRunEvent } from './run-events.js';
|
|
37
37
|
import { reissueTurn } from './governed-state.js';
|
|
@@ -54,6 +54,15 @@ import {
|
|
|
54
54
|
|
|
55
55
|
const CONTINUOUS_SESSION_PATH = '.agentxchain/continuous-session.json';
|
|
56
56
|
|
|
57
|
+
function getRoadmapReplenishmentTriageHints(root) {
|
|
58
|
+
const context = loadProjectContext(root);
|
|
59
|
+
const config = context?.config || null;
|
|
60
|
+
return {
|
|
61
|
+
preferred_role: config?.roles?.pm ? 'pm' : null,
|
|
62
|
+
phase_scope: config?.routing?.planning ? 'planning' : null,
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
|
57
66
|
// ---------------------------------------------------------------------------
|
|
58
67
|
// Session state
|
|
59
68
|
// ---------------------------------------------------------------------------
|
|
@@ -747,9 +756,12 @@ export function seedFromVision(root, visionPath, options = {}) {
|
|
|
747
756
|
|
|
748
757
|
if (replenishmentEvent.ok && !replenishmentEvent.deduplicated) {
|
|
749
758
|
const replenishmentIntentId = replenishmentEvent.intent.intent_id;
|
|
759
|
+
const replenishmentHints = getRoadmapReplenishmentTriageHints(root);
|
|
750
760
|
const triageResult = triageIntent(root, replenishmentIntentId, {
|
|
751
761
|
priority: 'p1',
|
|
752
762
|
template: 'generic',
|
|
763
|
+
...(replenishmentHints.preferred_role ? { preferred_role: replenishmentHints.preferred_role } : {}),
|
|
764
|
+
...(replenishmentHints.phase_scope ? { phase_scope: replenishmentHints.phase_scope } : {}),
|
|
753
765
|
charter: `[roadmap-replenishment] Derive next bounded roadmap increment from VISION.md. Unplanned scope: ${sectionNames}. Current roadmap checked through ${exhaustion.latest_milestone}. Read .planning/VISION.md and .planning/ROADMAP.md to select the next testable milestone. Produce concrete unchecked M${exhaustion.total_milestones + 1} items. Do not re-verify previous completed milestones.`,
|
|
754
766
|
acceptance_contract: [
|
|
755
767
|
`New unchecked milestone items added to .planning/ROADMAP.md`,
|