zob-harness 0.2.0 → 0.3.0
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/.pi/capabilities/zob-public-runtime-capabilities.json +4 -4
- package/.pi/extensions/zob-child-safety/AGENTS.md +12 -0
- package/.pi/extensions/zob-child-safety/index.ts +4 -105
- package/.pi/extensions/zob-child-safety/src/AGENTS.md +10 -0
- package/.pi/extensions/zob-child-safety/src/policy.ts +106 -0
- package/.pi/extensions/zob-harness/AGENTS.md +2 -0
- package/.pi/extensions/zob-harness/index.ts +94 -94
- package/.pi/extensions/zob-harness/src/AGENTS.md +4 -0
- package/.pi/extensions/zob-harness/src/core/AGENTS.md +24 -0
- package/.pi/extensions/zob-harness/src/{constants.ts → core/constants.ts} +10 -1
- package/.pi/extensions/zob-harness/src/core/utils/AGENTS.md +23 -0
- package/.pi/extensions/zob-harness/src/{utils → core/utils}/formatting.ts +1 -1
- package/.pi/extensions/zob-harness/src/{utils → core/utils}/records.ts +1 -1
- package/.pi/extensions/zob-harness/src/{utils → core/utils}/resources.ts +1 -1
- package/.pi/extensions/zob-harness/src/domains/AGENTS.md +23 -0
- package/.pi/extensions/zob-harness/src/domains/autonomy/AGENTS.md +21 -0
- package/.pi/extensions/zob-harness/src/{autonomous-runtime.ts → domains/autonomy/autonomous-runtime.ts} +22 -22
- package/.pi/extensions/zob-harness/src/{autonomy-readiness.ts → domains/autonomy/autonomy-readiness.ts} +18 -18
- package/.pi/extensions/zob-harness/src/{daemon-policy.ts → domains/autonomy/daemon-policy.ts} +6 -6
- package/.pi/extensions/zob-harness/src/{daemon-readiness.ts → domains/autonomy/daemon-readiness.ts} +7 -7
- package/.pi/extensions/zob-harness/src/{daemon-runtime.ts → domains/autonomy/daemon-runtime.ts} +2 -2
- package/.pi/extensions/zob-harness/src/{full-autonomy-test.ts → domains/autonomy/full-autonomy-test.ts} +4 -4
- package/.pi/extensions/zob-harness/src/{interactive-autonomy.ts → domains/autonomy/interactive-autonomy.ts} +2 -2
- package/.pi/extensions/zob-harness/src/{compute-profile.ts → domains/compute/compute-profile.ts} +3 -3
- package/.pi/extensions/zob-harness/src/{compute-workflow-shape.ts → domains/compute/compute-workflow-shape.ts} +3 -3
- package/.pi/extensions/zob-harness/src/domains/coms/AGENTS.md +21 -0
- package/.pi/extensions/zob-harness/src/{coms-v2 → domains/coms/coms-v2}/envelope.ts +2 -2
- package/.pi/extensions/zob-harness/src/{coms-v2 → domains/coms/coms-v2}/identity.ts +3 -3
- package/.pi/extensions/zob-harness/src/{coms-v2 → domains/coms/coms-v2}/ledger-bridge.ts +2 -2
- package/.pi/extensions/zob-harness/src/{coms-v2 → domains/coms/coms-v2}/local-transport.ts +1 -1
- package/.pi/extensions/zob-harness/src/{coms-v2 → domains/coms/coms-v2}/policy.ts +3 -3
- package/.pi/extensions/zob-harness/src/{coms-v2 → domains/coms/coms-v2}/presence.ts +1 -1
- package/.pi/extensions/zob-harness/src/{coms-v2 → domains/coms/coms-v2}/registry.ts +3 -3
- package/.pi/extensions/zob-harness/src/{coms-v2 → domains/coms/coms-v2}/response-capture.ts +1 -1
- package/.pi/extensions/zob-harness/src/{coms-v2 → domains/coms/coms-v2}/transcript-capture.ts +2 -2
- package/.pi/extensions/zob-harness/src/{coms-v2 → domains/coms/coms-v2}/zpeer-profile.ts +3 -3
- package/.pi/extensions/zob-harness/src/{coms-v2 → domains/coms/coms-v2}/zpeer.ts +3 -3
- package/.pi/extensions/zob-harness/src/{mission-control.ts → domains/coms/mission-control.ts} +8 -8
- package/.pi/extensions/zob-harness/src/{zagents.ts → domains/coms/zagents.ts} +86 -4
- package/.pi/extensions/zob-harness/src/domains/context/AGENTS.md +20 -0
- package/.pi/extensions/zob-harness/src/{context-gbrain.ts → domains/context/context-gbrain.ts} +4 -4
- package/.pi/extensions/zob-harness/src/domains/delegation/AGENTS.md +21 -0
- package/.pi/extensions/zob-harness/src/{agents.ts → domains/delegation/agents.ts} +2 -2
- package/.pi/extensions/zob-harness/src/{capabilities.ts → domains/delegation/capabilities.ts} +6 -6
- package/.pi/extensions/zob-harness/src/{child-runner.ts → domains/delegation/child-runner.ts} +8 -8
- package/.pi/extensions/zob-harness/src/{output-contracts.ts → domains/delegation/output-contracts.ts} +1 -1
- package/.pi/extensions/zob-harness/src/{prompt-packs.ts → domains/delegation/prompt-packs.ts} +4 -4
- package/.pi/extensions/zob-harness/src/domains/factory/AGENTS.md +21 -0
- package/.pi/extensions/zob-harness/src/{factory → domains/factory}/agentic-plan.ts +1 -1
- package/.pi/extensions/zob-harness/src/{factory-selector.ts → domains/factory/factory-selector.ts} +4 -4
- package/.pi/extensions/zob-harness/src/{factory → domains/factory}/quarantine.ts +5 -5
- package/.pi/extensions/zob-harness/src/{factory → domains/factory}/run.ts +5 -5
- package/.pi/extensions/zob-harness/src/{factory → domains/factory}/validation.ts +10 -10
- package/.pi/extensions/zob-harness/src/domains/git/AGENTS.md +20 -0
- package/.pi/extensions/zob-harness/src/{git-ops.ts → domains/git/git-ops.ts} +3 -3
- package/.pi/extensions/zob-harness/src/domains/goal/AGENTS.md +22 -0
- package/.pi/extensions/zob-harness/src/{goal-room.ts → domains/goal/goal-room.ts} +7 -7
- package/.pi/extensions/zob-harness/src/{goal-todo-imports.ts → domains/goal/goal-todo-imports.ts} +1 -1
- package/.pi/extensions/zob-harness/src/{goal-todo-types.ts → domains/goal/goal-todo-types.ts} +1 -1
- package/.pi/extensions/zob-harness/src/{goal-todos.ts → domains/goal/goal-todos.ts} +4 -4
- package/.pi/extensions/zob-harness/src/{goal.ts → domains/goal/goal.ts} +1 -1
- package/.pi/extensions/zob-harness/src/domains/governance/AGENTS.md +21 -0
- package/.pi/extensions/zob-harness/src/{budget-policy.ts → domains/governance/budget-policy.ts} +6 -6
- package/.pi/extensions/zob-harness/src/{governed-requests.ts → domains/governance/governed-requests.ts} +7 -7
- package/.pi/extensions/zob-harness/src/{launch-apply.ts → domains/governance/launch-apply.ts} +4 -4
- package/.pi/extensions/zob-harness/src/{merge-queue.ts → domains/governance/merge-queue.ts} +6 -6
- package/.pi/extensions/zob-harness/src/{rules.ts → domains/governance/rules.ts} +7 -7
- package/.pi/extensions/zob-harness/src/{safety.ts → domains/governance/safety.ts} +3 -3
- package/.pi/extensions/zob-harness/src/{sandbox.ts → domains/governance/sandbox.ts} +5 -5
- package/.pi/extensions/zob-harness/src/{worker-pool.ts → domains/governance/worker-pool.ts} +7 -7
- package/.pi/extensions/zob-harness/src/{workspace-claims.ts → domains/governance/workspace-claims.ts} +6 -6
- package/.pi/extensions/zob-harness/src/domains/models/AGENTS.md +20 -0
- package/.pi/extensions/zob-harness/src/{model-availability.ts → domains/models/model-availability.ts} +1 -1
- package/.pi/extensions/zob-harness/src/{model-routing.ts → domains/models/model-routing.ts} +6 -6
- package/.pi/extensions/zob-harness/src/domains/orchestration/AGENTS.md +21 -0
- package/.pi/extensions/zob-harness/src/{orchestration → domains/orchestration}/adaptive-delegation.ts +8 -8
- package/.pi/extensions/zob-harness/src/{orchestration → domains/orchestration}/adaptive-workflow.ts +4 -4
- package/.pi/extensions/zob-harness/src/{orchestration → domains/orchestration}/lead-plan.ts +5 -5
- package/.pi/extensions/zob-harness/src/{orchestration → domains/orchestration}/plan.ts +5 -5
- package/.pi/extensions/zob-harness/src/{orchestration → domains/orchestration}/room.ts +4 -4
- package/.pi/extensions/zob-harness/src/{orchestration → domains/orchestration}/run.ts +6 -6
- package/.pi/extensions/zob-harness/src/{orchestration → domains/orchestration}/supervised-readonly.ts +6 -6
- package/.pi/extensions/zob-harness/src/{orchestration → domains/orchestration}/widget-readers.ts +2 -2
- package/.pi/extensions/zob-harness/src/domains/project-dna/AGENTS.md +19 -0
- package/.pi/extensions/zob-harness/src/{project-dna.ts → domains/project-dna/project-dna.ts} +4 -4
- package/.pi/extensions/zob-harness/src/{promotion → domains/promotion}/candidate.ts +5 -5
- package/.pi/extensions/zob-harness/src/{promotion → domains/promotion}/coms.ts +3 -3
- package/.pi/extensions/zob-harness/src/{promotion → domains/promotion}/documentation.ts +4 -4
- package/.pi/extensions/zob-harness/src/{promotion → domains/promotion}/factory.ts +2 -2
- package/.pi/extensions/zob-harness/src/{promotion → domains/promotion}/temp-agent.ts +4 -4
- package/.pi/extensions/zob-harness/src/{promotion → domains/promotion}/write-lane.ts +3 -3
- package/.pi/extensions/zob-harness/src/domains/telemetry/AGENTS.md +19 -0
- package/.pi/extensions/zob-harness/src/{chronicle.ts → domains/telemetry/chronicle.ts} +3 -3
- package/.pi/extensions/zob-harness/src/{queue.ts → domains/telemetry/queue.ts} +7 -7
- package/.pi/extensions/zob-harness/src/{telemetry.ts → domains/telemetry/telemetry.ts} +4 -4
- package/.pi/extensions/zob-harness/src/{topology → domains/topology}/chains.ts +10 -10
- package/.pi/extensions/zob-harness/src/{topology → domains/topology}/coms.ts +3 -3
- package/.pi/extensions/zob-harness/src/{topology → domains/topology}/orchestration-profiles.ts +8 -8
- package/.pi/extensions/zob-harness/src/{topology → domains/topology}/teams.ts +8 -8
- package/.pi/extensions/zob-harness/src/runtime/adaptive-zmode.ts +2 -2
- package/.pi/extensions/zob-harness/src/runtime/auto-compaction.ts +2 -2
- package/.pi/extensions/zob-harness/src/runtime/commands.ts +49 -27
- package/.pi/extensions/zob-harness/src/runtime/compaction-policy.ts +2 -2
- package/.pi/extensions/zob-harness/src/runtime/delegation-feed.ts +1 -1
- package/.pi/extensions/zob-harness/src/runtime/delegation-monitor.ts +1 -1
- package/.pi/extensions/zob-harness/src/runtime/events.ts +52 -37
- package/.pi/extensions/zob-harness/src/{goal-runtime.ts → runtime/goal-runtime.ts} +9 -9
- package/.pi/extensions/zob-harness/src/runtime/goal-todo-overlay.ts +1 -1
- package/.pi/extensions/zob-harness/src/runtime/plan-capture.ts +2 -2
- package/.pi/extensions/zob-harness/src/runtime/state.ts +15 -13
- package/.pi/extensions/zob-harness/src/runtime/tools-autonomous.ts +2 -2
- package/.pi/extensions/zob-harness/src/runtime/tools-compute.ts +3 -3
- package/.pi/extensions/zob-harness/src/runtime/tools-coms.ts +15 -12
- package/.pi/extensions/zob-harness/src/runtime/tools-context.ts +2 -2
- package/.pi/extensions/zob-harness/src/runtime/tools-delegation.ts +13 -13
- package/.pi/extensions/zob-harness/src/runtime/tools-factory.ts +19 -19
- package/.pi/extensions/zob-harness/src/runtime/tools-goal-room.ts +3 -3
- package/.pi/extensions/zob-harness/src/runtime/tools-governed-requests.ts +3 -3
- package/.pi/extensions/zob-harness/src/runtime/tools-merge-queue.ts +3 -3
- package/.pi/extensions/zob-harness/src/runtime/tools-mission-control.ts +3 -3
- package/.pi/extensions/zob-harness/src/runtime/tools-orchestration.ts +9 -9
- package/.pi/extensions/zob-harness/src/runtime/tools-project-dna.ts +2 -2
- package/.pi/extensions/zob-harness/src/runtime/tools-worker-pool.ts +3 -3
- package/.pi/extensions/zob-harness/src/runtime/tools-workspace-claims.ts +3 -3
- package/.pi/extensions/zob-harness/src/runtime/tools-zcommit.ts +3 -3
- package/.pi/extensions/zob-harness/src/runtime/widget.ts +25 -8
- package/.pi/extensions/zob-harness/src/runtime/zobHarness.ts +1 -1
- package/.pi/extensions/zob-harness/src/types.ts +2 -2
- package/.pi/extensions/zob-switch/AGENTS.md +9 -0
- package/.pi/extensions/zob-switch/index.ts +9 -121
- package/.pi/extensions/zob-switch/src/AGENTS.md +8 -0
- package/.pi/extensions/zob-switch/src/autocomplete.ts +12 -0
- package/.pi/extensions/zob-switch/src/paths.ts +8 -0
- package/.pi/extensions/zob-switch/src/settings.ts +25 -0
- package/.pi/extensions/zob-switch/src/snapshot.ts +34 -0
- package/.pi/extensions/zob-switch/src/state.ts +57 -0
- package/.pi/factories/agentic-spec-team/README.md +35 -0
- package/.pi/factories/agentic-spec-team/batch-manifest.json +11 -0
- package/.pi/factories/agentic-spec-team/example-agentic-spec-manifest.json +19 -0
- package/.pi/factories/agentic-spec-team/factory.json +98 -0
- package/.pi/factories/agentic-spec-team/pilot-manifest.json +11 -0
- package/.pi/factories/agentic-spec-team/schemas/final-report.schema.json +15 -0
- package/.pi/factories/agentic-spec-team/schemas/manifest.schema.json +14 -0
- package/.pi/factories/agentic-spec-team/schemas/question.schema.json +18 -0
- package/.pi/factories/agentic-spec-team/schemas/source-register.schema.json +11 -0
- package/.pi/factories/agentic-spec-team/schemas/traceability.schema.json +11 -0
- package/.pi/factories/agentic-spec-team/smoke-manifest.json +11 -0
- package/.pi/skills/zob-agentic-spec-team/SKILL.md +145 -0
- package/.pi/skills/zob-split-refactor/SKILL.md +1 -1
- package/.pi/skills/zob-zagent-creator/SKILL.md +256 -12
- package/.pi/zagents/bdd-writer.json +20 -0
- package/.pi/zagents/data-profile-analyst.json +20 -0
- package/.pi/zagents/domain-modeler.json +20 -0
- package/.pi/zagents/planner-handoff-writer.json +20 -0
- package/.pi/zagents/prompts/agentic-spec-run-role.md +30 -0
- package/.pi/zagents/source-intake-steward.json +20 -0
- package/.pi/zagents/spec-chief.json +21 -0
- package/.pi/zagents/spec-oracle.json +20 -0
- package/.pi/zagents/spec-writer.json +20 -0
- package/.pi/zagents/ux-flow-analyst.json +20 -0
- package/.pi/zteams/agentic-spec-run.json +42 -0
- package/.pi/zteams/agentic-spec-run.tmux.sh +134 -0
- package/SOURCE_INDEX.md +1 -1
- package/package.json +9 -1
- package/scripts/README.md +1 -1
- package/scripts/agentic-spec-team/validate-bdd.mjs +13 -0
- package/scripts/agentic-spec-team/validate-final-report.mjs +14 -0
- package/scripts/agentic-spec-team/validate-manifest.mjs +14 -0
- package/scripts/agentic-spec-team/validate-oracle-ready.mjs +13 -0
- package/scripts/agentic-spec-team/validate-question-loop.mjs +15 -0
- package/scripts/agentic-spec-team/validate-run.mjs +11 -0
- package/scripts/agentic-spec-team/validate-source-register.mjs +17 -0
- package/scripts/agentic-spec-team/validate-traceability.mjs +20 -0
- package/scripts/agentic-spec-team/validate-workgraph.mjs +13 -0
- package/scripts/autonomy/mission-readiness-secret-smoke.mjs +5 -5
- package/scripts/git-ops/commit-policy-smoke.mjs +5 -4
- package/scripts/goal-todo/child-goal-ref-smoke.mjs +2 -2
- package/scripts/path-policy/validate-smoke.mjs +3 -3
- package/scripts/project-dna/AGENTS.md +39 -0
- package/scripts/project-dna/{validate-scaffold.mjs → validation/validate-scaffold.mjs} +7 -7
- package/scripts/spec-run.mjs +365 -0
- package/scripts/worker-pool/static-smoke.mjs +5 -5
- package/scripts/zagent-static-smoke.mjs +35 -6
- package/scripts/zpeer-local-e2e-smoke.mjs +6 -5
- package/scripts/zpeer-static-smoke.mjs +17 -17
- /package/.pi/extensions/zob-harness/src/{types → core/types}/core.ts +0 -0
- /package/.pi/extensions/zob-harness/src/{utils → core/utils}/hashing.ts +0 -0
- /package/.pi/extensions/zob-harness/src/{utils → core/utils}/json.ts +0 -0
- /package/.pi/extensions/zob-harness/src/{utils → core/utils}/paths.ts +0 -0
- /package/.pi/extensions/zob-harness/src/{coms-v2 → domains/coms/coms-v2}/AGENTS.md +0 -0
- /package/.pi/extensions/zob-harness/src/{coms-v2 → domains/coms/coms-v2}/pending-replies.ts +0 -0
- /package/.pi/extensions/zob-harness/src/{coms-v2 → domains/coms/coms-v2}/types.ts +0 -0
- /package/.pi/extensions/zob-harness/src/{promotion → domains/promotion}/ledger.ts +0 -0
- /package/.pi/extensions/zob-harness/src/{promotion → domains/promotion}/types.ts +0 -0
- /package/.pi/extensions/zob-harness/src/{promotion → domains/promotion}/validate.ts +0 -0
- /package/.pi/extensions/zob-harness/src/{schemas-project-dna.ts → runtime/schemas-project-dna.ts} +0 -0
- /package/.pi/extensions/zob-harness/src/{schemas.ts → runtime/schemas.ts} +0 -0
- /package/scripts/project-dna/{bench-smoke.mjs → benchmark/bench-smoke.mjs} +0 -0
- /package/scripts/project-dna/{build-capsules.mjs → capsules/build-capsules.mjs} +0 -0
- /package/scripts/project-dna/{emit-golden-cases.mjs → emit/emit-golden-cases.mjs} +0 -0
- /package/scripts/project-dna/{emit-ontology.mjs → emit/emit-ontology.mjs} +0 -0
- /package/scripts/project-dna/{oracle-review-smoke.mjs → oracle/oracle-review-smoke.mjs} +0 -0
- /package/scripts/project-dna/{query-context.mjs → query/query-context.mjs} +0 -0
- /package/scripts/project-dna/{query-steward.mjs → query/query-steward.mjs} +0 -0
- /package/scripts/project-dna/{build-sample-spec.mjs → sample/build-sample-spec.mjs} +0 -0
- /package/scripts/project-dna/{generate-sample.mjs → sample/generate-sample.mjs} +0 -0
- /package/scripts/project-dna/{validate-sample-project.mjs → sample/validate-sample-project.mjs} +0 -0
- /package/scripts/project-dna/{scan.mjs → scan/scan.mjs} +0 -0
- /package/scripts/project-dna/{validate-scan-artifacts.mjs → scan/validate-scan-artifacts.mjs} +0 -0
- /package/scripts/project-dna/{validate-5of5.mjs → validation/validate-5of5.mjs} +0 -0
- /package/scripts/project-dna/{validate-golden-cases.mjs → validation/validate-golden-cases.mjs} +0 -0
- /package/scripts/project-dna/{validate-ontology.mjs → validation/validate-ontology.mjs} +0 -0
- /package/scripts/project-dna/{plan-workflow.mjs → workflow/plan-workflow.mjs} +0 -0
- /package/scripts/project-dna/{validate-workflow.mjs → workflow/validate-workflow.mjs} +0 -0
|
@@ -21,9 +21,9 @@ export type {
|
|
|
21
21
|
SupervisedReadonlyDispatcher,
|
|
22
22
|
} from "./src/types.js";
|
|
23
23
|
|
|
24
|
-
export { CHRONICLE_STATES } from "./src/chronicle.js";
|
|
24
|
+
export { CHRONICLE_STATES } from "./src/domains/telemetry/chronicle.js";
|
|
25
25
|
|
|
26
|
-
export type { ChronicleState } from "./src/chronicle.js";
|
|
26
|
+
export type { ChronicleState } from "./src/domains/telemetry/chronicle.js";
|
|
27
27
|
|
|
28
28
|
export type {
|
|
29
29
|
ChildStopCondition,
|
|
@@ -35,17 +35,17 @@ export type {
|
|
|
35
35
|
RuleResolverInput,
|
|
36
36
|
} from "./src/types.js";
|
|
37
37
|
|
|
38
|
-
export { pathMatches } from "./src/utils/paths.js";
|
|
38
|
+
export { pathMatches } from "./src/core/utils/paths.js";
|
|
39
39
|
|
|
40
|
-
export { parseGoalState, validateGoalState, validateStrictGoalSpecAnchor, parseBillableJobIntake, validateBillableJobIntake } from "./src/goal.js";
|
|
41
|
-
export type { StrictGoalSpecAnchor, StrictGoalSpecAnchorKind } from "./src/goal.js";
|
|
42
|
-
export { DEFAULT_GOAL_ACTIVATION_MODE, clearRuntimeGoalContinuationState, clearRuntimeGoalContinuationStateFor, formatGoalActivationMode, formatRuntimeGoalSummary, queueRuntimeGoalContinuation, restoreRuntimeGoalFromBranch, resumeRuntimeGoal, runtimeGoalStatusLine } from "./src/goal-runtime.js";
|
|
43
|
-
export type { GoalActivationMode, RuntimeGoal, RuntimeGoalStatus, RuntimeGoalOracleStatus, RuntimeGoalOracleVerdict } from "./src/goal-runtime.js";
|
|
40
|
+
export { parseGoalState, validateGoalState, validateStrictGoalSpecAnchor, parseBillableJobIntake, validateBillableJobIntake } from "./src/domains/goal/goal.js";
|
|
41
|
+
export type { StrictGoalSpecAnchor, StrictGoalSpecAnchorKind } from "./src/domains/goal/goal.js";
|
|
42
|
+
export { DEFAULT_GOAL_ACTIVATION_MODE, clearRuntimeGoalContinuationState, clearRuntimeGoalContinuationStateFor, formatGoalActivationMode, formatRuntimeGoalSummary, queueRuntimeGoalContinuation, restoreRuntimeGoalFromBranch, resumeRuntimeGoal, runtimeGoalStatusLine } from "./src/runtime/goal-runtime.js";
|
|
43
|
+
export type { GoalActivationMode, RuntimeGoal, RuntimeGoalStatus, RuntimeGoalOracleStatus, RuntimeGoalOracleVerdict } from "./src/runtime/goal-runtime.js";
|
|
44
44
|
export { extractModeIntent, looksLikeCompletePlanResponse, stripModeIntentMarkup, validateModeIntent } from "./src/runtime/mode-intent.js";
|
|
45
45
|
export type { ZobModeIntent, ZobModeIntentConfidence, ZobModeIntentRisk, ZobModeIntentValidation } from "./src/runtime/mode-intent.js";
|
|
46
46
|
export { capturePlanArtifact, extractPlanTitle, shouldCapturePlanResponse } from "./src/runtime/plan-capture.js";
|
|
47
47
|
export type { PlanCaptureInput, PlanCaptureResult, PlanIndexEntry } from "./src/runtime/plan-capture.js";
|
|
48
|
-
export { ZOB_COMPACTION_CONTINUITY_CONTRACT, ZOB_TOOL_ROUTING_CONTRACT } from "./src/constants.js";
|
|
48
|
+
export { ZOB_COMPACTION_CONTINUITY_CONTRACT, ZOB_TOOL_ROUTING_CONTRACT } from "./src/core/constants.js";
|
|
49
49
|
export { ZOB_COMPACTION_DETAILS_SCHEMA, ZOB_COMPACTION_ENTRY_TYPE, ZOB_COMPACTION_HARD_CAP_TOKENS, ZOB_COMPACTION_LEDGER_SCHEMA, ZOB_COMPACTION_SUMMARY_SCHEMA, ZOB_COMPACTION_TARGET_TOKENS, buildDeterministicZobCompactionResult, buildDeterministicZobCompactionSummary, buildZobCompactionDetails, buildZobCompactionInstructions, buildZobCompactionLedgerEntry, buildZobCompactionStateCapsule, withZobCompactionDetails, zobCompactionBodyFreeViolations } from "./src/runtime/compaction-policy.js";
|
|
50
50
|
export type { ZobCompactionDetails, ZobCompactionFileRefsInput, ZobCompactionInstructionInput, ZobCompactionLedgerEntry, ZobCompactionStateCapsule } from "./src/runtime/compaction-policy.js";
|
|
51
51
|
export { isAdaptiveZmodeAlias, renderAdaptiveZmodeTemplate, resolveAdaptiveZmodeEntrypoint, validateAdaptiveZmodeEntrypoint } from "./src/runtime/adaptive-zmode.js";
|
|
@@ -84,20 +84,20 @@ export {
|
|
|
84
84
|
splitGoalTodo,
|
|
85
85
|
summarizeGoalTodos,
|
|
86
86
|
validateGoalTodoGraph,
|
|
87
|
-
} from "./src/goal-todos.js";
|
|
88
|
-
export type { GoalRoomTodoReducerAction, GoalRoomTodoReducerDecision, GoalTodoClaimRef, GoalTodoClaimValidationRef, GoalTodoCompletionDiagnostics, GoalTodoNode, GoalTodoOwner, GoalTodoPolicy, GoalTodoPriority, GoalTodoState, GoalTodoStatus, GoalTodoSummary, ResolveGoalTodoAction, TodoClaimValidationResult, TodoSplitRequest, TodoSplitRequestAction, TodoSplitRiskLevel } from "./src/goal-todos.js";
|
|
89
|
-
export { importChainRunTodos, importFactoryRunTodos, importOrchestrationRunTodos } from "./src/goal-todo-imports.js";
|
|
90
|
-
export type { GoalTodoImportResult } from "./src/goal-todo-imports.js";
|
|
91
|
-
export { appendGoalRoomMessage, buildGoalRoomMessage, goalRoomBodyFreeViolations, isGoalRoomMessage, listGoalRoomMessages, validateGoalRoomMessageInput, validateGoalRoomMessageRecord } from "./src/goal-room.js";
|
|
92
|
-
export type { GoalRoomAudience, GoalRoomListInput, GoalRoomMessageInput, GoalRoomMessageKind, GoalRoomPriority } from "./src/goal-room.js";
|
|
93
|
-
export { buildPromptPackReport, defaultFactoryAgentPromptPacks, promptPackBodyFreeViolations, validatePromptPack } from "./src/prompt-packs.js";
|
|
94
|
-
export type { PromptPackContextPolicy, PromptPackDefinition, PromptPackEvalResult, PromptPackEventPolicy, PromptPackReport, PromptPackRole } from "./src/prompt-packs.js";
|
|
95
|
-
export { buildFactorySelectorSmokeReport, detectFactoryDemandSignals, loadFactorySelectorCandidates, selectFactoryForDemands } from "./src/factory-selector.js";
|
|
96
|
-
export type { FactoryDemandInput, FactoryDemandSignal, FactorySelectionStatus, FactorySelectorCandidateInput, FactorySelectorCandidateScore, FactorySelectorDemandSummary, FactorySelectorResult, FactorySelectorSmokeReport } from "./src/factory-selector.js";
|
|
97
|
-
export { buildControlledWorkerPoolPlan, buildLaunchAuthorizedApplySmokeReport, evaluateLaunchAuthorizedApplyGate } from "./src/launch-apply.js";
|
|
98
|
-
export type { ApplyGateStatus, ControlledWorkerPoolLane, ControlledWorkerPoolPlan, LaunchAuthorizedApplyGate, LaunchAuthorizedApplyInput, LaunchAuthorizedApplySmokeReport, WorkerPoolLaneKind } from "./src/launch-apply.js";
|
|
99
|
-
export { writeFullAutonomyTestRun } from "./src/full-autonomy-test.js";
|
|
100
|
-
export type { FullAutonomyTestInput, FullAutonomyTestRun } from "./src/full-autonomy-test.js";
|
|
87
|
+
} from "./src/domains/goal/goal-todos.js";
|
|
88
|
+
export type { GoalRoomTodoReducerAction, GoalRoomTodoReducerDecision, GoalTodoClaimRef, GoalTodoClaimValidationRef, GoalTodoCompletionDiagnostics, GoalTodoNode, GoalTodoOwner, GoalTodoPolicy, GoalTodoPriority, GoalTodoState, GoalTodoStatus, GoalTodoSummary, ResolveGoalTodoAction, TodoClaimValidationResult, TodoSplitRequest, TodoSplitRequestAction, TodoSplitRiskLevel } from "./src/domains/goal/goal-todos.js";
|
|
89
|
+
export { importChainRunTodos, importFactoryRunTodos, importOrchestrationRunTodos } from "./src/domains/goal/goal-todo-imports.js";
|
|
90
|
+
export type { GoalTodoImportResult } from "./src/domains/goal/goal-todo-imports.js";
|
|
91
|
+
export { appendGoalRoomMessage, buildGoalRoomMessage, goalRoomBodyFreeViolations, isGoalRoomMessage, listGoalRoomMessages, validateGoalRoomMessageInput, validateGoalRoomMessageRecord } from "./src/domains/goal/goal-room.js";
|
|
92
|
+
export type { GoalRoomAudience, GoalRoomListInput, GoalRoomMessageInput, GoalRoomMessageKind, GoalRoomPriority } from "./src/domains/goal/goal-room.js";
|
|
93
|
+
export { buildPromptPackReport, defaultFactoryAgentPromptPacks, promptPackBodyFreeViolations, validatePromptPack } from "./src/domains/delegation/prompt-packs.js";
|
|
94
|
+
export type { PromptPackContextPolicy, PromptPackDefinition, PromptPackEvalResult, PromptPackEventPolicy, PromptPackReport, PromptPackRole } from "./src/domains/delegation/prompt-packs.js";
|
|
95
|
+
export { buildFactorySelectorSmokeReport, detectFactoryDemandSignals, loadFactorySelectorCandidates, selectFactoryForDemands } from "./src/domains/factory/factory-selector.js";
|
|
96
|
+
export type { FactoryDemandInput, FactoryDemandSignal, FactorySelectionStatus, FactorySelectorCandidateInput, FactorySelectorCandidateScore, FactorySelectorDemandSummary, FactorySelectorResult, FactorySelectorSmokeReport } from "./src/domains/factory/factory-selector.js";
|
|
97
|
+
export { buildControlledWorkerPoolPlan, buildLaunchAuthorizedApplySmokeReport, evaluateLaunchAuthorizedApplyGate } from "./src/domains/governance/launch-apply.js";
|
|
98
|
+
export type { ApplyGateStatus, ControlledWorkerPoolLane, ControlledWorkerPoolPlan, LaunchAuthorizedApplyGate, LaunchAuthorizedApplyInput, LaunchAuthorizedApplySmokeReport, WorkerPoolLaneKind } from "./src/domains/governance/launch-apply.js";
|
|
99
|
+
export { writeFullAutonomyTestRun } from "./src/domains/autonomy/full-autonomy-test.js";
|
|
100
|
+
export type { FullAutonomyTestInput, FullAutonomyTestRun } from "./src/domains/autonomy/full-autonomy-test.js";
|
|
101
101
|
export {
|
|
102
102
|
DEFAULT_INTERACTIVE_AUTONOMY_POLICY,
|
|
103
103
|
INTERACTIVE_AUTONOMY_MODES,
|
|
@@ -113,23 +113,23 @@ export {
|
|
|
113
113
|
scoreMissionReadiness,
|
|
114
114
|
toAutonomyStateLedgerEntry,
|
|
115
115
|
toMissionReadinessLedgerEntry,
|
|
116
|
-
} from "./src/interactive-autonomy.js";
|
|
117
|
-
export type { InteractiveAutonomyLaunchPolicy, InteractiveAutonomyMode, InteractiveAutonomyPolicy, InteractiveAutonomyRuntimeState, InteractiveAutonomySafetyPolicy, InteractiveAutonomyThresholds, InteractiveLaunchAuthorization, MissionReadinessDecision, MissionReadinessReport, MissionReadinessSignals, MissionReadinessVerdict, MissionRiskLevel } from "./src/interactive-autonomy.js";
|
|
118
|
-
export { appendGovernedRequestsToGoalRoom, extractGovernedRequestsFromText, governedRequestBodyFreeViolations, isGovernedRequest, validateGovernedRequest } from "./src/governed-requests.js";
|
|
119
|
-
export type { GovernedRequestExtractionResult, GovernedRequestKind, GovernedRequestPriority, GovernedRequestRecord, GovernedRequestRisk } from "./src/governed-requests.js";
|
|
120
|
-
export { createWorkspaceClaim, isWorkspaceClaimRecord, isWorkspaceReleaseRecord, listWorkspaceClaims, releaseWorkspaceClaim, workspaceClaimBodyFreeViolations } from "./src/workspace-claims.js";
|
|
121
|
-
export type { WorkspaceClaimInput, WorkspaceClaimMode, WorkspaceClaimRecord, WorkspaceClaimsListInput, WorkspaceClaimStatus, WorkspaceConflictWarning, WorkspaceReleaseInput, WorkspaceReleaseRecord } from "./src/workspace-claims.js";
|
|
122
|
-
export { createWorkerPoolOwnerDecision, createWorkerPoolOwnerRequest, createWorkerPoolPlan, isWorkerPoolPlanRecord, listWorkerPoolPlans, workerPoolBodyFreeViolations } from "./src/worker-pool.js";
|
|
123
|
-
export type { WorkerPoolAssignmentInput, WorkerPoolAssignmentRecord, WorkerPoolCommunicationPolicyInput, WorkerPoolCommunicationPolicyMode, WorkerPoolCommunicationPolicyRecord, WorkerPoolConflictRecord, WorkerPoolDecision, WorkerPoolOwnerDecisionInput, WorkerPoolOwnerDecisionRecord, WorkerPoolOwnerRequestInput, WorkerPoolOwnerRequestRecord, WorkerPoolPlanInput, WorkerPoolPlanRecord, WorkerPoolStatusInput } from "./src/worker-pool.js";
|
|
124
|
-
export { decideMergeCandidate, isMergeCandidateRecord, isMergeDecisionRecord, listMergeQueue, mergeQueueBodyFreeViolations, submitMergeCandidate } from "./src/merge-queue.js";
|
|
125
|
-
export type { MergeCandidateInput, MergeCandidatePriority, MergeCandidateRecord, MergeCandidateRisk, MergeDecision, MergeDecisionInput, MergeDecisionRecord, MergeQueueListInput } from "./src/merge-queue.js";
|
|
126
|
-
export { DEFAULT_PROMOTION_GATES, advancePromotionCandidate, appendPromotionLedger, createPromotionCandidate, promotionCandidateDir, promotionCandidateRef, promotionReportsDir, summarizePromotionCandidates, transitionAllowed, validatePromotionCandidate, writePromotionCandidate } from "./src/promotion/candidate.js";
|
|
127
|
-
export { addPromotionComsMessageRef, buildPromotionComsMessageRef, buildPromotionComsThread, validatePromotionComsMessageRef, validatePromotionComsReadiness, validatePromotionComsThread, writePromotionComsThread } from "./src/promotion/coms.js";
|
|
128
|
-
export { applyDocumentationPromotionInQuarantine, prepareDocumentationPromotion, validateDocumentationPromotion, validateDocumentationPromotionCandidate } from "./src/promotion/documentation.js";
|
|
129
|
-
export { activateFactoryPromotionInQuarantine, prepareFactoryPromotion, validateFactoryPromotionCandidate, validateFactoryPromotionManifest } from "./src/promotion/factory.js";
|
|
130
|
-
export { applyTempAgentPromotionInQuarantine, prepareTempAgentPromotion, validateTempAgentCardForPromotion, validateTempAgentPromotionArtifact, validateTempAgentPromotionCandidate } from "./src/promotion/temp-agent.js";
|
|
131
|
-
export { markWriteLaneAppliedInQuarantine, prepareWriteLanePromotion, validateWriteLaneDiffMetadata, validateWriteLanePromotionCandidate } from "./src/promotion/write-lane.js";
|
|
132
|
-
export type { PromotionApplyScope, PromotionCandidateInput, PromotionCandidateRecord, PromotionComsMessageRef, PromotionComsThreadInput, PromotionComsThreadRecord, PromotionGates, PromotionKind, PromotionStatus, PromotionTransitionInput, PromotionValidationResult } from "./src/promotion/types.js";
|
|
116
|
+
} from "./src/domains/autonomy/interactive-autonomy.js";
|
|
117
|
+
export type { InteractiveAutonomyLaunchPolicy, InteractiveAutonomyMode, InteractiveAutonomyPolicy, InteractiveAutonomyRuntimeState, InteractiveAutonomySafetyPolicy, InteractiveAutonomyThresholds, InteractiveLaunchAuthorization, MissionReadinessDecision, MissionReadinessReport, MissionReadinessSignals, MissionReadinessVerdict, MissionRiskLevel } from "./src/domains/autonomy/interactive-autonomy.js";
|
|
118
|
+
export { appendGovernedRequestsToGoalRoom, extractGovernedRequestsFromText, governedRequestBodyFreeViolations, isGovernedRequest, validateGovernedRequest } from "./src/domains/governance/governed-requests.js";
|
|
119
|
+
export type { GovernedRequestExtractionResult, GovernedRequestKind, GovernedRequestPriority, GovernedRequestRecord, GovernedRequestRisk } from "./src/domains/governance/governed-requests.js";
|
|
120
|
+
export { createWorkspaceClaim, isWorkspaceClaimRecord, isWorkspaceReleaseRecord, listWorkspaceClaims, releaseWorkspaceClaim, workspaceClaimBodyFreeViolations } from "./src/domains/governance/workspace-claims.js";
|
|
121
|
+
export type { WorkspaceClaimInput, WorkspaceClaimMode, WorkspaceClaimRecord, WorkspaceClaimsListInput, WorkspaceClaimStatus, WorkspaceConflictWarning, WorkspaceReleaseInput, WorkspaceReleaseRecord } from "./src/domains/governance/workspace-claims.js";
|
|
122
|
+
export { createWorkerPoolOwnerDecision, createWorkerPoolOwnerRequest, createWorkerPoolPlan, isWorkerPoolPlanRecord, listWorkerPoolPlans, workerPoolBodyFreeViolations } from "./src/domains/governance/worker-pool.js";
|
|
123
|
+
export type { WorkerPoolAssignmentInput, WorkerPoolAssignmentRecord, WorkerPoolCommunicationPolicyInput, WorkerPoolCommunicationPolicyMode, WorkerPoolCommunicationPolicyRecord, WorkerPoolConflictRecord, WorkerPoolDecision, WorkerPoolOwnerDecisionInput, WorkerPoolOwnerDecisionRecord, WorkerPoolOwnerRequestInput, WorkerPoolOwnerRequestRecord, WorkerPoolPlanInput, WorkerPoolPlanRecord, WorkerPoolStatusInput } from "./src/domains/governance/worker-pool.js";
|
|
124
|
+
export { decideMergeCandidate, isMergeCandidateRecord, isMergeDecisionRecord, listMergeQueue, mergeQueueBodyFreeViolations, submitMergeCandidate } from "./src/domains/governance/merge-queue.js";
|
|
125
|
+
export type { MergeCandidateInput, MergeCandidatePriority, MergeCandidateRecord, MergeCandidateRisk, MergeDecision, MergeDecisionInput, MergeDecisionRecord, MergeQueueListInput } from "./src/domains/governance/merge-queue.js";
|
|
126
|
+
export { DEFAULT_PROMOTION_GATES, advancePromotionCandidate, appendPromotionLedger, createPromotionCandidate, promotionCandidateDir, promotionCandidateRef, promotionReportsDir, summarizePromotionCandidates, transitionAllowed, validatePromotionCandidate, writePromotionCandidate } from "./src/domains/promotion/candidate.js";
|
|
127
|
+
export { addPromotionComsMessageRef, buildPromotionComsMessageRef, buildPromotionComsThread, validatePromotionComsMessageRef, validatePromotionComsReadiness, validatePromotionComsThread, writePromotionComsThread } from "./src/domains/promotion/coms.js";
|
|
128
|
+
export { applyDocumentationPromotionInQuarantine, prepareDocumentationPromotion, validateDocumentationPromotion, validateDocumentationPromotionCandidate } from "./src/domains/promotion/documentation.js";
|
|
129
|
+
export { activateFactoryPromotionInQuarantine, prepareFactoryPromotion, validateFactoryPromotionCandidate, validateFactoryPromotionManifest } from "./src/domains/promotion/factory.js";
|
|
130
|
+
export { applyTempAgentPromotionInQuarantine, prepareTempAgentPromotion, validateTempAgentCardForPromotion, validateTempAgentPromotionArtifact, validateTempAgentPromotionCandidate } from "./src/domains/promotion/temp-agent.js";
|
|
131
|
+
export { markWriteLaneAppliedInQuarantine, prepareWriteLanePromotion, validateWriteLaneDiffMetadata, validateWriteLanePromotionCandidate } from "./src/domains/promotion/write-lane.js";
|
|
132
|
+
export type { PromotionApplyScope, PromotionCandidateInput, PromotionCandidateRecord, PromotionComsMessageRef, PromotionComsThreadInput, PromotionComsThreadRecord, PromotionGates, PromotionKind, PromotionStatus, PromotionTransitionInput, PromotionValidationResult } from "./src/domains/promotion/types.js";
|
|
133
133
|
|
|
134
134
|
export {
|
|
135
135
|
listRulePackPaths,
|
|
@@ -139,7 +139,7 @@ export {
|
|
|
139
139
|
inferRuleProfile,
|
|
140
140
|
resolveRuleProfile,
|
|
141
141
|
formatRuleResolution,
|
|
142
|
-
} from "./src/rules.js";
|
|
142
|
+
} from "./src/domains/governance/rules.js";
|
|
143
143
|
|
|
144
144
|
export {
|
|
145
145
|
validateSixPartContract,
|
|
@@ -156,7 +156,7 @@ export {
|
|
|
156
156
|
createSandboxMetadata,
|
|
157
157
|
createDiffGateResult,
|
|
158
158
|
createRollbackMetadata,
|
|
159
|
-
} from "./src/safety.js";
|
|
159
|
+
} from "./src/domains/governance/safety.js";
|
|
160
160
|
|
|
161
161
|
export {
|
|
162
162
|
listOutputContracts,
|
|
@@ -166,9 +166,9 @@ export {
|
|
|
166
166
|
validateOutputContract,
|
|
167
167
|
validateChildOutput,
|
|
168
168
|
applyChildGates,
|
|
169
|
-
} from "./src/output-contracts.js";
|
|
169
|
+
} from "./src/domains/delegation/output-contracts.js";
|
|
170
170
|
|
|
171
|
-
export { buildChildEnv } from "./src/safety.js";
|
|
171
|
+
export { buildChildEnv } from "./src/domains/governance/safety.js";
|
|
172
172
|
|
|
173
173
|
export {
|
|
174
174
|
validateSandboxWritePlanInputs,
|
|
@@ -183,16 +183,16 @@ export {
|
|
|
183
183
|
runSandboxApplySimulation,
|
|
184
184
|
validateSandboxManualApplyPreflightInputs,
|
|
185
185
|
runSandboxManualApplyPreflight,
|
|
186
|
-
} from "./src/sandbox.js";
|
|
186
|
+
} from "./src/domains/governance/sandbox.js";
|
|
187
187
|
|
|
188
188
|
export {
|
|
189
189
|
buildAutonomyReadinessAudit,
|
|
190
190
|
writeAutonomyReadinessAuditReport,
|
|
191
191
|
buildFactoryRegistryReadinessAudit,
|
|
192
192
|
writeFactoryRegistryReadinessAuditReport,
|
|
193
|
-
} from "./src/autonomy-readiness.js";
|
|
193
|
+
} from "./src/domains/autonomy/autonomy-readiness.js";
|
|
194
194
|
|
|
195
|
-
export { validateBudgetPolicyConfig, evaluateStrictBudgetDispatchGate, buildBudgetReadinessAudit, writeBudgetReadinessAuditReport } from "./src/budget-policy.js";
|
|
195
|
+
export { validateBudgetPolicyConfig, evaluateStrictBudgetDispatchGate, buildBudgetReadinessAudit, writeBudgetReadinessAuditReport } from "./src/domains/governance/budget-policy.js";
|
|
196
196
|
|
|
197
197
|
export {
|
|
198
198
|
evaluateBudgetPreflightDryRun,
|
|
@@ -203,19 +203,19 @@ export {
|
|
|
203
203
|
classifyDelegationChronicleCompletion,
|
|
204
204
|
classifyFactoryChronicleCompletion,
|
|
205
205
|
writeChronicleSnapshot,
|
|
206
|
-
} from "./src/chronicle.js";
|
|
206
|
+
} from "./src/domains/telemetry/chronicle.js";
|
|
207
207
|
|
|
208
|
-
export { buildCapabilityIndex, buildReuseScoutReport, writeCapabilityIndex, writeReuseScoutReport } from "./src/capabilities.js";
|
|
208
|
+
export { buildCapabilityIndex, buildReuseScoutReport, writeCapabilityIndex, writeReuseScoutReport } from "./src/domains/delegation/capabilities.js";
|
|
209
209
|
|
|
210
|
-
export { buildAutonomousRuntimeDryRun, buildAutonomousRuntimeDryRunFinalReport, buildAutonomousRuntimeDryRunValidation, validateAutonomousReadOnlySmokeRunArtifacts, validateAutonomousRuntimeDryRunArtifacts, writeAutonomousReadOnlySmokeRunReport, writeAutonomousRuntimeDryRunReport } from "./src/autonomous-runtime.js";
|
|
211
|
-
export type { AutonomousApplyPolicy, AutonomousBudgetProfile, AutonomousReadOnlySmokeRunInput, AutonomousRisk, AutonomousRuntimeDryRunInput } from "./src/autonomous-runtime.js";
|
|
210
|
+
export { buildAutonomousRuntimeDryRun, buildAutonomousRuntimeDryRunFinalReport, buildAutonomousRuntimeDryRunValidation, validateAutonomousReadOnlySmokeRunArtifacts, validateAutonomousRuntimeDryRunArtifacts, writeAutonomousReadOnlySmokeRunReport, writeAutonomousRuntimeDryRunReport } from "./src/domains/autonomy/autonomous-runtime.js";
|
|
211
|
+
export type { AutonomousApplyPolicy, AutonomousBudgetProfile, AutonomousReadOnlySmokeRunInput, AutonomousRisk, AutonomousRuntimeDryRunInput } from "./src/domains/autonomy/autonomous-runtime.js";
|
|
212
212
|
|
|
213
|
-
export { buildDaemonReadinessDryRun, writeDaemonReadinessDryRunReport } from "./src/daemon-readiness.js";
|
|
213
|
+
export { buildDaemonReadinessDryRun, writeDaemonReadinessDryRunReport } from "./src/domains/autonomy/daemon-readiness.js";
|
|
214
214
|
|
|
215
|
-
export { validateDaemonPolicyConfig, buildDaemonPolicyReadinessAudit, writeDaemonPolicyReadinessAuditReport } from "./src/daemon-policy.js";
|
|
215
|
+
export { validateDaemonPolicyConfig, buildDaemonPolicyReadinessAudit, writeDaemonPolicyReadinessAuditReport } from "./src/domains/autonomy/daemon-policy.js";
|
|
216
216
|
|
|
217
|
-
export { DEFAULT_DAEMON_RUNTIME_POLICY, DAEMON_RUNTIME_STATUSES, buildDaemonRuntimeState, buildDaemonTickPlan, evaluateDaemonStopCondition, selectNextActionableTodo } from "./src/daemon-runtime.js";
|
|
218
|
-
export type { DaemonLoopSnapshot, DaemonLoopStatus, DaemonRuntimeActionKind, DaemonRuntimeAutonomySnapshot, DaemonRuntimePolicy, DaemonRuntimeState, DaemonRuntimeStateInput, DaemonRuntimeStatus, DaemonRuntimeTodoCounts, DaemonRuntimeTodoRef, DaemonStopCondition, DaemonTickPlan } from "./src/daemon-runtime.js";
|
|
217
|
+
export { DEFAULT_DAEMON_RUNTIME_POLICY, DAEMON_RUNTIME_STATUSES, buildDaemonRuntimeState, buildDaemonTickPlan, evaluateDaemonStopCondition, selectNextActionableTodo } from "./src/domains/autonomy/daemon-runtime.js";
|
|
218
|
+
export type { DaemonLoopSnapshot, DaemonLoopStatus, DaemonRuntimeActionKind, DaemonRuntimeAutonomySnapshot, DaemonRuntimePolicy, DaemonRuntimeState, DaemonRuntimeStateInput, DaemonRuntimeStatus, DaemonRuntimeTodoCounts, DaemonRuntimeTodoRef, DaemonStopCondition, DaemonTickPlan } from "./src/domains/autonomy/daemon-runtime.js";
|
|
219
219
|
|
|
220
220
|
export {
|
|
221
221
|
evaluateModelRoutingDryRun,
|
|
@@ -224,25 +224,25 @@ export {
|
|
|
224
224
|
validateModelRoutingConfig,
|
|
225
225
|
buildModelRoutingReadinessAudit,
|
|
226
226
|
writeModelRoutingReadinessAuditReport,
|
|
227
|
-
} from "./src/model-routing.js";
|
|
227
|
+
} from "./src/domains/models/model-routing.js";
|
|
228
228
|
|
|
229
229
|
export {
|
|
230
230
|
buildComputePreview,
|
|
231
231
|
resolveComputeProfile,
|
|
232
232
|
validateComputeProfileArtifacts,
|
|
233
233
|
writeComputeProfileReports,
|
|
234
|
-
} from "./src/compute-profile.js";
|
|
235
|
-
export type { ComputeCapsInput, ComputeDomain, ComputeEffectiveProfile, ComputePreviewConfidence, ComputePreviewInput, ComputeProfileValidationInput, ComputeRequestedProfile } from "./src/compute-profile.js";
|
|
236
|
-
export { buildComputeWorkflowShape, validateComputeWorkflowShape } from "./src/compute-workflow-shape.js";
|
|
237
|
-
export type { ComputeWorkflowShapeInput } from "./src/compute-workflow-shape.js";
|
|
234
|
+
} from "./src/domains/compute/compute-profile.js";
|
|
235
|
+
export type { ComputeCapsInput, ComputeDomain, ComputeEffectiveProfile, ComputePreviewConfidence, ComputePreviewInput, ComputeProfileValidationInput, ComputeRequestedProfile } from "./src/domains/compute/compute-profile.js";
|
|
236
|
+
export { buildComputeWorkflowShape, validateComputeWorkflowShape } from "./src/domains/compute/compute-workflow-shape.js";
|
|
237
|
+
export type { ComputeWorkflowShapeInput } from "./src/domains/compute/compute-workflow-shape.js";
|
|
238
238
|
|
|
239
239
|
export {
|
|
240
240
|
buildProjectDnaFederatedQueryResult,
|
|
241
241
|
buildProjectDnaQueryResult,
|
|
242
242
|
buildProjectDnaReadinessAudit,
|
|
243
243
|
writeProjectDnaWritebackProposal,
|
|
244
|
-
} from "./src/project-dna.js";
|
|
245
|
-
export type { ProjectDnaFederatedQueryInput, ProjectDnaQueryInput, ProjectDnaWritebackProposalInput } from "./src/project-dna.js";
|
|
244
|
+
} from "./src/domains/project-dna/project-dna.js";
|
|
245
|
+
export type { ProjectDnaFederatedQueryInput, ProjectDnaQueryInput, ProjectDnaWritebackProposalInput } from "./src/domains/project-dna/project-dna.js";
|
|
246
246
|
|
|
247
247
|
export {
|
|
248
248
|
buildDelegationTelemetrySummary,
|
|
@@ -251,7 +251,7 @@ export {
|
|
|
251
251
|
writeFactoryTelemetrySummary,
|
|
252
252
|
buildDailyTelemetrySummary,
|
|
253
253
|
writeDailyTelemetrySummary,
|
|
254
|
-
} from "./src/telemetry.js";
|
|
254
|
+
} from "./src/domains/telemetry/telemetry.js";
|
|
255
255
|
|
|
256
256
|
export {
|
|
257
257
|
READ_ONLY_QUEUE_JOB_TYPES,
|
|
@@ -261,9 +261,9 @@ export {
|
|
|
261
261
|
writeQueueLifecycleEvent,
|
|
262
262
|
runQueueDaemonTick,
|
|
263
263
|
buildQueueDashboardSummary,
|
|
264
|
-
} from "./src/queue.js";
|
|
264
|
+
} from "./src/domains/telemetry/queue.js";
|
|
265
265
|
|
|
266
|
-
export { loadTeamDefinition, validateTeamDefinition } from "./src/topology/teams.js";
|
|
266
|
+
export { loadTeamDefinition, validateTeamDefinition } from "./src/domains/topology/teams.js";
|
|
267
267
|
|
|
268
268
|
export {
|
|
269
269
|
listOrchestrationProfiles,
|
|
@@ -271,7 +271,7 @@ export {
|
|
|
271
271
|
validateOrchestrationProfile,
|
|
272
272
|
teamDefinitionFromOrchestrationProfile,
|
|
273
273
|
validateOrchestrateRunInputs,
|
|
274
|
-
} from "./src/topology/orchestration-profiles.js";
|
|
274
|
+
} from "./src/domains/topology/orchestration-profiles.js";
|
|
275
275
|
|
|
276
276
|
export {
|
|
277
277
|
listChainDefinitions,
|
|
@@ -280,7 +280,7 @@ export {
|
|
|
280
280
|
validateChainRunInputs,
|
|
281
281
|
buildChainPlan,
|
|
282
282
|
runChainPlanOnly,
|
|
283
|
-
} from "./src/topology/chains.js";
|
|
283
|
+
} from "./src/domains/topology/chains.js";
|
|
284
284
|
|
|
285
285
|
export {
|
|
286
286
|
validateZobComsEdge,
|
|
@@ -293,7 +293,7 @@ export {
|
|
|
293
293
|
transitionZobComsStatus,
|
|
294
294
|
replyZobComsMessage,
|
|
295
295
|
awaitZobComsMessage,
|
|
296
|
-
} from "./src/topology/coms.js";
|
|
296
|
+
} from "./src/domains/topology/coms.js";
|
|
297
297
|
|
|
298
298
|
export {
|
|
299
299
|
MISSION_CONTROL_COMMANDS,
|
|
@@ -303,20 +303,20 @@ export {
|
|
|
303
303
|
buildZobComsTransportReadiness,
|
|
304
304
|
buildZobCommunicationReadinessAudit,
|
|
305
305
|
buildMissionControlSnapshot,
|
|
306
|
-
} from "./src/mission-control.js";
|
|
307
|
-
|
|
308
|
-
export { readZobComsV2Policy, zobComsRegistryEnabled } from "./src/coms-v2/policy.js";
|
|
309
|
-
export { buildZobComsProjectId, buildCurrentZobLivePeerCard } from "./src/coms-v2/identity.js";
|
|
310
|
-
export { registerCurrentZobLivePeer, touchCurrentZobLivePeer, unregisterCurrentZobLivePeer, writeZobLivePeerCard, readZobLiveRegistrySnapshot } from "./src/coms-v2/registry.js";
|
|
311
|
-
export { buildZobLivePresenceSummary, redactZobLivePeerForMissionControl } from "./src/coms-v2/presence.js";
|
|
312
|
-
export { buildZobLiveEnvelope, buildZobLiveAckEnvelope, buildZobLivePongEnvelope, buildZobLiveErrorEnvelope, validateZobLiveEnvelope, parseZobLiveEnvelopeLine } from "./src/coms-v2/envelope.js";
|
|
313
|
-
export { makeZobLocalEndpoint, bindZobLocalEndpoint, sendZobLocalEnvelope, pingZobLocalEndpoint, pruneZobLocalEndpoint } from "./src/coms-v2/local-transport.js";
|
|
314
|
-
export { ZobPendingReplies } from "./src/coms-v2/pending-replies.js";
|
|
315
|
-
export { buildZobLiveResponseCapture, buildZobLiveResponseEnvelope } from "./src/coms-v2/response-capture.js";
|
|
316
|
-
export { appendLiveSendRequestedRef, appendLiveDeliveredStatus, appendLiveRunningStatus, appendLiveCompletedRef, appendLiveErrorStatus, appendPeerStaleStatus } from "./src/coms-v2/ledger-bridge.js";
|
|
317
|
-
export { redactZobComsText, writeZobComsRedactedCapture } from "./src/coms-v2/transcript-capture.js";
|
|
318
|
-
export type { ZobLiveEnvelope, ZobLiveEnvelopeType } from "./src/coms-v2/envelope.js";
|
|
319
|
-
export type { ZobComsTranscriptCapturePolicy, ZobComsTranscriptMode, ZobComsTranscriptRetentionClass, ZobComsTransportMode, ZobComsV2Policy, ZobLivePeerCard, ZobLivePeerStatus, ZobLivePresenceSummary, ZobLiveRegistrySnapshot } from "./src/coms-v2/types.js";
|
|
306
|
+
} from "./src/domains/coms/mission-control.js";
|
|
307
|
+
|
|
308
|
+
export { readZobComsV2Policy, zobComsRegistryEnabled } from "./src/domains/coms/coms-v2/policy.js";
|
|
309
|
+
export { buildZobComsProjectId, buildCurrentZobLivePeerCard } from "./src/domains/coms/coms-v2/identity.js";
|
|
310
|
+
export { registerCurrentZobLivePeer, touchCurrentZobLivePeer, unregisterCurrentZobLivePeer, writeZobLivePeerCard, readZobLiveRegistrySnapshot } from "./src/domains/coms/coms-v2/registry.js";
|
|
311
|
+
export { buildZobLivePresenceSummary, redactZobLivePeerForMissionControl } from "./src/domains/coms/coms-v2/presence.js";
|
|
312
|
+
export { buildZobLiveEnvelope, buildZobLiveAckEnvelope, buildZobLivePongEnvelope, buildZobLiveErrorEnvelope, validateZobLiveEnvelope, parseZobLiveEnvelopeLine } from "./src/domains/coms/coms-v2/envelope.js";
|
|
313
|
+
export { makeZobLocalEndpoint, bindZobLocalEndpoint, sendZobLocalEnvelope, pingZobLocalEndpoint, pruneZobLocalEndpoint } from "./src/domains/coms/coms-v2/local-transport.js";
|
|
314
|
+
export { ZobPendingReplies } from "./src/domains/coms/coms-v2/pending-replies.js";
|
|
315
|
+
export { buildZobLiveResponseCapture, buildZobLiveResponseEnvelope } from "./src/domains/coms/coms-v2/response-capture.js";
|
|
316
|
+
export { appendLiveSendRequestedRef, appendLiveDeliveredStatus, appendLiveRunningStatus, appendLiveCompletedRef, appendLiveErrorStatus, appendPeerStaleStatus } from "./src/domains/coms/coms-v2/ledger-bridge.js";
|
|
317
|
+
export { redactZobComsText, writeZobComsRedactedCapture } from "./src/domains/coms/coms-v2/transcript-capture.js";
|
|
318
|
+
export type { ZobLiveEnvelope, ZobLiveEnvelopeType } from "./src/domains/coms/coms-v2/envelope.js";
|
|
319
|
+
export type { ZobComsTranscriptCapturePolicy, ZobComsTranscriptMode, ZobComsTranscriptRetentionClass, ZobComsTransportMode, ZobComsV2Policy, ZobLivePeerCard, ZobLivePeerStatus, ZobLivePresenceSummary, ZobLiveRegistrySnapshot } from "./src/domains/coms/coms-v2/types.js";
|
|
320
320
|
|
|
321
321
|
export {
|
|
322
322
|
buildContextBrainSourceRegistry,
|
|
@@ -331,9 +331,9 @@ export {
|
|
|
331
331
|
writeContextWritebackProposal,
|
|
332
332
|
buildContextGbrainReadinessAudit,
|
|
333
333
|
writeContextGbrainReadinessAuditReport,
|
|
334
|
-
} from "./src/context-gbrain.js";
|
|
334
|
+
} from "./src/domains/context/context-gbrain.js";
|
|
335
335
|
|
|
336
|
-
export { readLatestOrchestrationWidgetSummary, readHarnessReadinessWidgetSummary } from "./src/orchestration/widget-readers.js";
|
|
336
|
+
export { readLatestOrchestrationWidgetSummary, readHarnessReadinessWidgetSummary } from "./src/domains/orchestration/widget-readers.js";
|
|
337
337
|
|
|
338
338
|
export {
|
|
339
339
|
ADAPTIVE_DELEGATION_DEFAULT_MAX_TOTAL_AGENTS,
|
|
@@ -353,18 +353,18 @@ export {
|
|
|
353
353
|
validateAdaptiveDelegationEvidenceRefs,
|
|
354
354
|
validateAdaptiveDelegationPolicy,
|
|
355
355
|
validateDelegationRequestHardGates,
|
|
356
|
-
} from "./src/orchestration/adaptive-delegation.js";
|
|
356
|
+
} from "./src/domains/orchestration/adaptive-delegation.js";
|
|
357
357
|
|
|
358
|
-
export { extractLeadPlanWorkerContracts, redactLeadPlanWorkerContractsForPersistence, validateLeadPlanWorkerContracts } from "./src/orchestration/lead-plan.js";
|
|
358
|
+
export { extractLeadPlanWorkerContracts, redactLeadPlanWorkerContractsForPersistence, validateLeadPlanWorkerContracts } from "./src/domains/orchestration/lead-plan.js";
|
|
359
359
|
|
|
360
|
-
export { writeAdaptiveWorkflowArtifacts, validateAdaptiveWorkflowArtifacts } from "./src/orchestration/adaptive-workflow.js";
|
|
361
|
-
export type { AdaptiveWorkflowArtifactsInput, AdaptiveWorkflowArtifactsResult } from "./src/orchestration/adaptive-workflow.js";
|
|
360
|
+
export { writeAdaptiveWorkflowArtifacts, validateAdaptiveWorkflowArtifacts } from "./src/domains/orchestration/adaptive-workflow.js";
|
|
361
|
+
export type { AdaptiveWorkflowArtifactsInput, AdaptiveWorkflowArtifactsResult } from "./src/domains/orchestration/adaptive-workflow.js";
|
|
362
362
|
|
|
363
|
-
export { writeOrchestrationRoomArtifacts } from "./src/orchestration/room.js";
|
|
363
|
+
export { writeOrchestrationRoomArtifacts } from "./src/domains/orchestration/room.js";
|
|
364
364
|
|
|
365
|
-
export { runOrchestrateRun } from "./src/orchestration/run.js";
|
|
365
|
+
export { runOrchestrateRun } from "./src/domains/orchestration/run.js";
|
|
366
366
|
|
|
367
|
-
export { buildSupervisedReadonlyNoMockFinalGate, buildSupervisedReadonlyRuntimeInvariants, runSupervisedReadonlyOrchestration } from "./src/orchestration/supervised-readonly.js";
|
|
367
|
+
export { buildSupervisedReadonlyNoMockFinalGate, buildSupervisedReadonlyRuntimeInvariants, runSupervisedReadonlyOrchestration } from "./src/domains/orchestration/supervised-readonly.js";
|
|
368
368
|
|
|
369
369
|
export {
|
|
370
370
|
factoryPhaseSentinelForMode,
|
|
@@ -374,17 +374,17 @@ export {
|
|
|
374
374
|
normalizeFactoryAdaptiveDispatchGate,
|
|
375
375
|
validateFactoryAdaptiveDispatchGate,
|
|
376
376
|
validateFactoryRunInputs,
|
|
377
|
-
} from "./src/factory/validation.js";
|
|
377
|
+
} from "./src/domains/factory/validation.js";
|
|
378
378
|
|
|
379
|
-
export { buildFactoryAgenticPlan } from "./src/factory/agentic-plan.js";
|
|
379
|
+
export { buildFactoryAgenticPlan } from "./src/domains/factory/agentic-plan.js";
|
|
380
380
|
|
|
381
|
-
export { buildAgenticFactoryNoMockFinalGate, runFactoryRun } from "./src/factory/run.js";
|
|
381
|
+
export { buildAgenticFactoryNoMockFinalGate, runFactoryRun } from "./src/domains/factory/run.js";
|
|
382
382
|
|
|
383
383
|
export {
|
|
384
384
|
runFactoryQuarantineReview,
|
|
385
385
|
runFactoryQuarantineActivate,
|
|
386
386
|
runFactoryQuarantineVerifyActivation,
|
|
387
|
-
} from "./src/factory/quarantine.js";
|
|
387
|
+
} from "./src/domains/factory/quarantine.js";
|
|
388
388
|
|
|
389
389
|
export default function zobHarness(pi: ExtensionAPI): void {
|
|
390
390
|
return zobHarnessRuntime(pi);
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
- `src/**` reçoit les modules extraits de `.pi/extensions/zob-harness/index.ts`.
|
|
4
4
|
- Chaque module doit correspondre à une tranche claire du playbook de refactor.
|
|
5
5
|
- Ce dossier ne contient pas de nouvelle fonctionnalité produit.
|
|
6
|
+
- Architecture cible: `core/**` pour helpers/types bas niveau, `domains/**` pour logique métier, `runtime/**` pour adapters Pi tools/commands/events/widgets.
|
|
6
7
|
|
|
7
8
|
# Invariants
|
|
8
9
|
|
|
@@ -17,9 +18,12 @@
|
|
|
17
18
|
- `import type` pour les types.
|
|
18
19
|
- Interdit: importer depuis `../index.js`, `../../index.js` ou `index.ts`.
|
|
19
20
|
- Les modules bas niveau ne doivent pas dépendre de runtime Pi.
|
|
21
|
+
- Direction cible: `runtime -> domains -> core`; un fichier `domains/**` ne doit dépendre de `runtime/**` que comme compatibilité explicitement temporaire.
|
|
20
22
|
|
|
21
23
|
# Validation locale
|
|
22
24
|
|
|
25
|
+
- Lire `docs/ZOB_HARNESS_ARCHITECTURE.md` et les `AGENTS.md` locaux avant toute tranche de déplacement.
|
|
23
26
|
- `npm run check -- --pretty false` après chaque tranche.
|
|
24
27
|
- `npm run smoke:harness` après safety, output-contracts, queue, topology, orchestration, factory, child-runner ou runtime.
|
|
28
|
+
- `npm run pi:check` avant de déclarer un changement runtime complet.
|
|
25
29
|
- Oracle read-only avant de passer à la tranche suivante si une API publique est touchée.
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Core layer guardrail
|
|
2
|
+
|
|
3
|
+
## Scope
|
|
4
|
+
|
|
5
|
+
- Pure shared utilities, constants, and low-level types for the ZOB harness extension.
|
|
6
|
+
- This layer should be safe to import from any domain or runtime adapter.
|
|
7
|
+
|
|
8
|
+
## MUST DO
|
|
9
|
+
|
|
10
|
+
- Keep helpers deterministic unless the original helper was not deterministic.
|
|
11
|
+
- Preserve hashing, path matching, formatting, JSON parsing, and validation error behavior.
|
|
12
|
+
- Use NodeNext `.js` suffix for relative runtime imports.
|
|
13
|
+
- Prefer `import type` for type-only imports.
|
|
14
|
+
|
|
15
|
+
## MUST NOT
|
|
16
|
+
|
|
17
|
+
- Do not import from `../runtime/**`, `../domains/**`, `index.ts`, or `index.js`.
|
|
18
|
+
- Do not register Pi tools, commands, events, widgets, factories, or orchestration here.
|
|
19
|
+
- Do not read secrets or generated/vendor folders.
|
|
20
|
+
|
|
21
|
+
## Validation
|
|
22
|
+
|
|
23
|
+
- `npm run check -- --pretty false` after every core move.
|
|
24
|
+
- `npm run smoke:harness` if path, formatting, hashing, or body-free behavior changes location.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { DamageRules, ModeName } from "
|
|
1
|
+
import type { DamageRules, ModeName } from "../types.js";
|
|
2
2
|
|
|
3
3
|
const DEFAULT_RULES: DamageRules = {
|
|
4
4
|
bashToolPatterns: [
|
|
@@ -32,6 +32,15 @@ export const ZOB_COMPACTION_CONTINUITY_CONTRACT = [
|
|
|
32
32
|
"- Preserve blockers/no_ship/next action across compaction; if unclear, inspect live state or block instead of claiming done.",
|
|
33
33
|
].join("\n");
|
|
34
34
|
|
|
35
|
+
export const EXTERNAL_PACKAGE_TOOLS_CONTRACT = [
|
|
36
|
+
"ZOB EXTERNAL PACKAGE TOOLS CONTRACT",
|
|
37
|
+
"- Non-builtin tools registered by external Pi packages/extensions may be active automatically in governed ZOB modes.",
|
|
38
|
+
"- Follow each package tool's own promptSnippet/promptGuidelines and never use package tools to bypass ZOB safety gates.",
|
|
39
|
+
"- Do not send secrets, credentials, private code, proprietary raw data, or sensitive URLs to external/cloud tools.",
|
|
40
|
+
"- For external facts, cite source URLs or tool evidence and distinguish external facts from repo-local evidence.",
|
|
41
|
+
"- If a package tool requires private/authenticated data or sensitive payloads, stop and ask for an explicitly gated workflow instead.",
|
|
42
|
+
].join("\n");
|
|
43
|
+
|
|
35
44
|
export const SUPERVISED_SMOKE_CHILD_TOOLS = ["read", "grep", "find", "ls"] as const;
|
|
36
45
|
export const SUPERVISED_READONLY_CHILD_TOOLS = ["read", "grep", "find", "ls"] as const;
|
|
37
46
|
export const READ_ONLY_CHAIN_TOOLS = ["read", "grep", "find", "ls"] as const;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Core utils guardrail
|
|
2
|
+
|
|
3
|
+
## Scope
|
|
4
|
+
|
|
5
|
+
- Pure reusable helpers: records, paths, JSON, hashing, formatting, and resource path display.
|
|
6
|
+
- This folder contains the canonical helper implementations; `src/utils/**` may remain as compatibility wrappers during migration.
|
|
7
|
+
|
|
8
|
+
## Invariants
|
|
9
|
+
|
|
10
|
+
- Preserve error messages, sanitization rules, hashing, path matching, and bounded output behavior.
|
|
11
|
+
- Do not modify `pathMatches`, `safeRunId`, `safeFileStem`, or child-output formatting semantics during structural moves.
|
|
12
|
+
- Keep helpers deterministic unless the original source was not deterministic.
|
|
13
|
+
|
|
14
|
+
## Imports
|
|
15
|
+
|
|
16
|
+
- Allowed: minimal Node modules needed by each helper (`node:fs`, `node:path`, `node:crypto`, `node:os`).
|
|
17
|
+
- Forbidden: `ExtensionAPI`, Pi runtime, tools, commands, factories, orchestration, `index.ts`/`index.js`.
|
|
18
|
+
- Use `.js` suffix for relative imports.
|
|
19
|
+
|
|
20
|
+
## Validation
|
|
21
|
+
|
|
22
|
+
- `npm run check -- --pretty false`.
|
|
23
|
+
- `npm run smoke:harness` if path matching or child-output formatting paths move.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AssistantLikeMessage, JsonEvent, TextBlock } from "
|
|
1
|
+
import type { AssistantLikeMessage, JsonEvent, TextBlock } from "../../types.js";
|
|
2
2
|
|
|
3
3
|
function isRecord(value: unknown): value is Record<string, unknown> {
|
|
4
4
|
return typeof value === "object" && value !== null;
|
|
@@ -2,7 +2,7 @@ import { existsSync, readdirSync } from "node:fs";
|
|
|
2
2
|
import { dirname, join, resolve } from "node:path";
|
|
3
3
|
import { fileURLToPath } from "node:url";
|
|
4
4
|
|
|
5
|
-
const BUNDLED_ZOB_ROOT = resolve(dirname(fileURLToPath(import.meta.url)), "..", "..", "..", "..", "..");
|
|
5
|
+
const BUNDLED_ZOB_ROOT = resolve(dirname(fileURLToPath(import.meta.url)), "..", "..", "..", "..", "..", "..");
|
|
6
6
|
|
|
7
7
|
export function bundledZobRoot(): string {
|
|
8
8
|
return BUNDLED_ZOB_ROOT;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Domains layer guardrail
|
|
2
|
+
|
|
3
|
+
## Scope
|
|
4
|
+
|
|
5
|
+
- Domain behavior for goals, delegation, governance, autonomy, coms, context, factory, git, models, orchestration, ProjectDNA, and telemetry.
|
|
6
|
+
- Domains should expose typed functions and records; runtime adapters register Pi tools/commands/events.
|
|
7
|
+
|
|
8
|
+
## MUST DO
|
|
9
|
+
|
|
10
|
+
- Preserve public names, statuses, artifact refs, schemas, hashes, sentinels, and validation messages.
|
|
11
|
+
- Keep domain modules importable by runtime with stable behavior.
|
|
12
|
+
- Depend downward on `src/core/**` and sideways only when a domain relationship already exists.
|
|
13
|
+
|
|
14
|
+
## MUST NOT
|
|
15
|
+
|
|
16
|
+
- Do not import from `src/runtime/**` unless a file is explicitly marked as a temporary compatibility adapter.
|
|
17
|
+
- Do not import from `index.ts` or `index.js`.
|
|
18
|
+
- Do not introduce direct production apply, hidden transport, secret reads, or body persistence.
|
|
19
|
+
|
|
20
|
+
## Validation
|
|
21
|
+
|
|
22
|
+
- `npm run check -- --pretty false` after every domain move.
|
|
23
|
+
- `npm run smoke:harness` after goal, governance, delegation, factory, orchestration, coms, or runtime-facing moves.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Autonomy domain guardrail
|
|
2
|
+
|
|
3
|
+
## Scope
|
|
4
|
+
|
|
5
|
+
- Interactive autonomy readiness, autonomous runtime dry-runs, daemon policy/readiness/runtime, and launch authorization metadata.
|
|
6
|
+
|
|
7
|
+
## MUST DO
|
|
8
|
+
|
|
9
|
+
- Preserve clarify/block thresholds, no-ship conditions, readonly/dry-run posture, budget/oracle gates, and launch authorization semantics.
|
|
10
|
+
- Treat autonomous smokes as evidence only, not production readiness.
|
|
11
|
+
|
|
12
|
+
## MUST NOT
|
|
13
|
+
|
|
14
|
+
- Do not claim global autonomy completion without fresh proof and oracle PASS/no_ship=false.
|
|
15
|
+
- Do not enable unsupervised daemon/autonomy behavior by moving files.
|
|
16
|
+
- Do not import from `index.ts` or `index.js`.
|
|
17
|
+
|
|
18
|
+
## Validation
|
|
19
|
+
|
|
20
|
+
- `npm run check -- --pretty false`.
|
|
21
|
+
- Run relevant autonomy smoke/validation scripts when autonomy behavior moves.
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { existsSync, mkdirSync, readFileSync, writeFileSync } from "node:fs";
|
|
2
2
|
import { join } from "node:path";
|
|
3
3
|
|
|
4
|
-
import { buildCapabilityIndex, buildReuseScoutReport } from "
|
|
5
|
-
import { runFactoryRun } from "
|
|
6
|
-
import { selectFactoryForDemands } from "
|
|
7
|
-
import { evaluateStrictBudgetDispatchGate } from "
|
|
8
|
-
import { evaluateBudgetPreflightDryRun } from "
|
|
9
|
-
import { buildBrainLookupResult, buildContextPack, buildDefaultContextScope, validateContextPack, validateContextScope } from "
|
|
4
|
+
import { buildCapabilityIndex, buildReuseScoutReport } from "../delegation/capabilities.js";
|
|
5
|
+
import { runFactoryRun } from "../factory/run.js";
|
|
6
|
+
import { selectFactoryForDemands } from "../factory/factory-selector.js";
|
|
7
|
+
import { evaluateStrictBudgetDispatchGate } from "../governance/budget-policy.js";
|
|
8
|
+
import { evaluateBudgetPreflightDryRun } from "../telemetry/chronicle.js";
|
|
9
|
+
import { buildBrainLookupResult, buildContextPack, buildDefaultContextScope, validateContextPack, validateContextScope } from "../context/context-gbrain.js";
|
|
10
10
|
import { validateDaemonPolicyConfig } from "./daemon-policy.js";
|
|
11
|
-
import { MISSION_CONTROL_COMMANDS, buildMissionControlCommandProposal, buildMissionControlSnapshot, buildZobComsTransportReadiness, buildZobCommunicationReadinessAudit } from "
|
|
12
|
-
import { evaluateModelRoutingDispatchGate, evaluateModelRoutingDryRun } from "
|
|
13
|
-
import { loadTeamDefinition, validateTeamDefinition } from "
|
|
14
|
-
import { sha256 } from "
|
|
15
|
-
import { safeFileStem } from "
|
|
16
|
-
import { isRecord } from "
|
|
11
|
+
import { MISSION_CONTROL_COMMANDS, buildMissionControlCommandProposal, buildMissionControlSnapshot, buildZobComsTransportReadiness, buildZobCommunicationReadinessAudit } from "../coms/mission-control.js";
|
|
12
|
+
import { evaluateModelRoutingDispatchGate, evaluateModelRoutingDryRun } from "../models/model-routing.js";
|
|
13
|
+
import { loadTeamDefinition, validateTeamDefinition } from "../topology/teams.js";
|
|
14
|
+
import { sha256 } from "../../core/utils/hashing.js";
|
|
15
|
+
import { safeFileStem } from "../../core/utils/paths.js";
|
|
16
|
+
import { isRecord } from "../../core/utils/records.js";
|
|
17
17
|
|
|
18
18
|
export type AutonomousApplyPolicy = "no_apply" | "sandbox_simulation" | "manual_apply_only" | "auto_apply_in_scope";
|
|
19
19
|
export type AutonomousBudgetProfile = "advisory" | "strict_requested";
|
|
@@ -59,16 +59,16 @@ const AUTONOMOUS_CURRENT_SOURCE_FINGERPRINT_FILES = [
|
|
|
59
59
|
".pi/daemon-policy.json",
|
|
60
60
|
".pi/teams/zob-core.json",
|
|
61
61
|
".pi/extensions/zob-harness/index.ts",
|
|
62
|
-
".pi/extensions/zob-harness/src/autonomous-runtime.ts",
|
|
63
|
-
".pi/extensions/zob-harness/src/autonomy-readiness.ts",
|
|
62
|
+
".pi/extensions/zob-harness/src/domains/autonomy/autonomous-runtime.ts",
|
|
63
|
+
".pi/extensions/zob-harness/src/domains/autonomy/autonomy-readiness.ts",
|
|
64
64
|
".pi/extensions/zob-harness/src/runtime/tools-autonomous.ts",
|
|
65
|
-
".pi/extensions/zob-harness/src/schemas.ts",
|
|
66
|
-
".pi/extensions/zob-harness/src/factory/run.ts",
|
|
67
|
-
".pi/extensions/zob-harness/src/model-routing.ts",
|
|
68
|
-
".pi/extensions/zob-harness/src/budget-policy.ts",
|
|
69
|
-
".pi/extensions/zob-harness/src/daemon-policy.ts",
|
|
70
|
-
".pi/extensions/zob-harness/src/mission-control.ts",
|
|
71
|
-
".pi/extensions/zob-harness/src/sandbox.ts",
|
|
65
|
+
".pi/extensions/zob-harness/src/runtime/schemas.ts",
|
|
66
|
+
".pi/extensions/zob-harness/src/domains/factory/run.ts",
|
|
67
|
+
".pi/extensions/zob-harness/src/domains/models/model-routing.ts",
|
|
68
|
+
".pi/extensions/zob-harness/src/domains/governance/budget-policy.ts",
|
|
69
|
+
".pi/extensions/zob-harness/src/domains/autonomy/daemon-policy.ts",
|
|
70
|
+
".pi/extensions/zob-harness/src/domains/coms/mission-control.ts",
|
|
71
|
+
".pi/extensions/zob-harness/src/domains/governance/sandbox.ts",
|
|
72
72
|
];
|
|
73
73
|
|
|
74
74
|
function hasForbiddenBodyKeys(value: unknown): boolean {
|
|
@@ -288,7 +288,7 @@ function buildAutonomousContextArtifacts(repoRoot: string, scope: Record<string,
|
|
|
288
288
|
}));
|
|
289
289
|
}
|
|
290
290
|
if (lookupResults.length === 0 && allowedSources.includes("zob-harness-src")) {
|
|
291
|
-
const citation = "harness-system:zob-harness-src:.pi/extensions/zob-harness/src/autonomous-runtime.ts";
|
|
291
|
+
const citation = "harness-system:zob-harness-src:.pi/extensions/zob-harness/src/domains/autonomy/autonomous-runtime.ts";
|
|
292
292
|
lookupResults.push(buildBrainLookupResult(repoRoot, {
|
|
293
293
|
scope,
|
|
294
294
|
brainId: "harness-system",
|