@akagilnc/pi-workflow-roles 0.1.3644 → 0.1.3652
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/dist/acp-host/production-host.js +3089 -2187
- package/dist/activation-ledger-session.js +105 -0
- package/dist/activation-ledger.js +139 -0
- package/dist/activation-trace.js +33 -0
- package/dist/agent-start-materials.js +11 -0
- package/dist/audit-escalation.js +5 -5
- package/dist/auditor-role.js +12 -0
- package/dist/canonical-skill-binding.js +64 -0
- package/dist/collector-identity.js +151 -0
- package/dist/collector-receipt.js +95 -0
- package/dist/collector-role.js +441 -0
- package/dist/compliance-transport.js +11 -57
- package/dist/countersign-role.js +28 -0
- package/dist/diarist-contracts.js +0 -12
- package/dist/diarist-role.js +29 -0
- package/dist/doctor-contracts.js +0 -2
- package/dist/doctor-role.js +74 -0
- package/dist/fixer-bash-seatbelt.js +13 -0
- package/dist/gatekeeper-pass-envelope.js +72 -0
- package/dist/gleaner-left-contracts.js +0 -7
- package/dist/gleaner-left-role.js +26 -0
- package/dist/inspector-contracts.js +0 -4
- package/dist/inspector-role.js +29 -0
- package/dist/judge-role.js +106 -0
- package/dist/merger-role.js +66 -0
- package/dist/navigator-public-session.js +1 -5
- package/dist/navigator-role.js +12 -0
- package/dist/notary-contracts.js +0 -18
- package/dist/notary-role.js +137 -0
- package/dist/oauth-keepalive.js +158 -0
- package/dist/package-contracts/auditor-output.js +0 -13
- package/dist/package-contracts/gatekeeper-output.js +0 -10
- package/dist/package-contracts/judge-output.js +0 -2
- package/dist/package-contracts/navigator-output.js +0 -4
- package/dist/package-contracts/terminating-tools.js +2 -16
- package/dist/packaged-role-registry.js +1 -18
- package/dist/pi/adapter.js +211 -0
- package/dist/pi/role-turn-host.js +0 -2
- package/dist/public-cli/instruction-seat-run.js +2 -6
- package/dist/public-cli/invocation.js +0 -7
- package/dist/public-cli/main.js +138 -735
- package/dist/public-cli/option-definitions.js +0 -14
- package/dist/public-cli/registry.js +1 -2
- package/dist/public-cli/run-lifecycle.js +1 -3
- package/dist/public-cli/settlement.js +66 -537
- package/dist/public-role-summons.js +0 -14
- package/dist/reviewer-child-executor.js +163 -70
- package/dist/reviewer-construction.js +2 -2
- package/dist/reviewer-role.js +159 -0
- package/dist/reviewer-settlement.js +66 -0
- package/dist/role-runtime.js +1394 -0
- package/dist/stderr-jsonl.js +26 -0
- package/dist/tool-execution-observation.js +141 -0
- package/dist/worker-role.js +343 -0
- package/dist/worker-submission-gates.js +305 -0
- package/extensions/role-runtime.ts +1 -2
- package/package.json +1 -1
- package/src/acp-host/production-host.ts +0 -1
- package/src/audit-escalation.ts +9 -9
- package/src/compliance-transport.ts +28 -94
- package/src/diarist-contracts.ts +0 -12
- package/src/doctor-contracts.ts +0 -1
- package/src/doctor-role.ts +2 -2
- package/src/gleaner-left-contracts.ts +0 -9
- package/src/host-contracts.ts +0 -2
- package/src/inspector-contracts.ts +0 -8
- package/src/judge-role.ts +4 -5
- package/src/navigator-public-session.ts +4 -5
- package/src/notary-contracts.ts +0 -18
- package/src/package-contracts/auditor-output.ts +0 -11
- package/src/package-contracts/gatekeeper-output.ts +0 -11
- package/src/package-contracts/judge-output.ts +0 -1
- package/src/package-contracts/navigator-output.ts +0 -3
- package/src/package-contracts/terminating-tools.ts +1 -19
- package/src/packaged-role-registry.ts +1 -19
- package/src/pi/role-turn-host.ts +0 -2
- package/src/public-cli/cli.ts +1 -5
- package/src/public-cli/instruction-seat-run.ts +5 -14
- package/src/public-cli/invocation.ts +3 -21
- package/src/public-cli/option-definitions.ts +0 -16
- package/src/public-cli/registry.ts +1 -2
- package/src/public-cli/run-lifecycle.ts +0 -6
- package/src/public-cli/settlement.ts +58 -572
- package/src/public-cli/terminal.ts +0 -1
- package/src/public-role-summons.ts +0 -15
- package/src/reviewer-child-executor.ts +199 -98
- package/src/reviewer-construction.ts +3 -3
- package/src/role-runtime.ts +1 -33
- package/dist/package-contracts/evidence-child-output.js +0 -34
- package/souls/evidence-child.md +0 -1
- package/src/evidence-child-role.ts +0 -22
- package/src/package-contracts/evidence-child-output.ts +0 -51
|
@@ -347,10 +347,6 @@ const AUDITOR_OPTIONS = [
|
|
|
347
347
|
},
|
|
348
348
|
},
|
|
349
349
|
];
|
|
350
|
-
const EVIDENCE_CHILD_OPTIONS = [
|
|
351
|
-
bindOwner("evidence-child", SHARED_PROJECT_SEMANTICS),
|
|
352
|
-
bindOwner("evidence-child", SHARED_ATTACH_SEMANTICS),
|
|
353
|
-
];
|
|
354
350
|
const COUNTERSIGN_OPTIONS = [
|
|
355
351
|
bindOwner("countersign", SHARED_PROJECT_SEMANTICS),
|
|
356
352
|
bindOwner("countersign", SHARED_ATTACH_SEMANTICS),
|
|
@@ -709,7 +705,6 @@ export const PUBLIC_OPTION_TABLE = {
|
|
|
709
705
|
gatekeeper: GATEKEEPER_OPTIONS,
|
|
710
706
|
navigator: NAVIGATOR_OPTIONS,
|
|
711
707
|
auditor: AUDITOR_OPTIONS,
|
|
712
|
-
"evidence-child": EVIDENCE_CHILD_OPTIONS,
|
|
713
708
|
diarist: DIARIST_OPTIONS,
|
|
714
709
|
analyst: ANALYST_OPTIONS,
|
|
715
710
|
};
|
|
@@ -729,7 +724,6 @@ export const PUBLIC_ROLE_OPTION_OWNERS = [
|
|
|
729
724
|
"gatekeeper",
|
|
730
725
|
"navigator",
|
|
731
726
|
"auditor",
|
|
732
|
-
"evidence-child",
|
|
733
727
|
"diarist",
|
|
734
728
|
"analyst",
|
|
735
729
|
];
|
|
@@ -1032,14 +1026,6 @@ const ROLE_COMMAND_HELP = {
|
|
|
1032
1026
|
'ak-role auditor --subject doctor --source-run 01abc…@doctor "审:太医候选是否合规。"',
|
|
1033
1027
|
],
|
|
1034
1028
|
},
|
|
1035
|
-
"evidence-child": {
|
|
1036
|
-
command: "evidence-child",
|
|
1037
|
-
summary: "Direct evidence-child fact gathering; submit one report.",
|
|
1038
|
-
usage: ["ak-role evidence-child [options] [instruction]"],
|
|
1039
|
-
examples: [
|
|
1040
|
-
'ak-role evidence-child "查:本工作树 diff 与票面是否一致。"',
|
|
1041
|
-
],
|
|
1042
|
-
},
|
|
1043
1029
|
diarist: {
|
|
1044
1030
|
command: "diarist",
|
|
1045
1031
|
summary: "Direct Diarist (起居郎) pass: gather and organize this case's decision basis into its 起居录.",
|
|
@@ -66,9 +66,8 @@ const STARTUP_CANDIDATES = {
|
|
|
66
66
|
{ provider: "openai-codex", model: "gpt-5.6-luna", thinking: "medium" },
|
|
67
67
|
{ provider: "xai", model: "grok-4.5", thinking: "high" }
|
|
68
68
|
],
|
|
69
|
-
// #675: auditor
|
|
69
|
+
// #675: auditor public seat — no package startup; caller configures.
|
|
70
70
|
auditor: [],
|
|
71
|
-
"evidence-child": [],
|
|
72
71
|
// #708 `diarist-seat-default`: owner-set initial value; changed in the seat
|
|
73
72
|
// table like any other seat. No engine axis, package-default host.
|
|
74
73
|
diarist: [{ provider: "xai", model: "grok-4.5", thinking: "medium" }]
|
|
@@ -191,7 +191,6 @@ async function readRoleRunStateDisk(runDirectory) {
|
|
|
191
191
|
record.role !== "gatekeeper" &&
|
|
192
192
|
record.role !== "navigator" &&
|
|
193
193
|
record.role !== "auditor" &&
|
|
194
|
-
record.role !== "evidence-child" &&
|
|
195
194
|
record.role !== "diarist") {
|
|
196
195
|
return undefined;
|
|
197
196
|
}
|
|
@@ -1251,8 +1250,7 @@ export async function loadResumableInstructionSeatRun(home, runId, authority) {
|
|
|
1251
1250
|
const loaded = await loadResumableRunRecord(home, runId, authority);
|
|
1252
1251
|
if (loaded.run.role !== "gatekeeper"
|
|
1253
1252
|
&& loaded.run.role !== "navigator"
|
|
1254
|
-
&& loaded.run.role !== "auditor"
|
|
1255
|
-
&& loaded.run.role !== "evidence-child") {
|
|
1253
|
+
&& loaded.run.role !== "auditor") {
|
|
1256
1254
|
throw new CliUsageError(`role run ${runId} belongs to ${loaded.run.role}, not an instruction seat`);
|
|
1257
1255
|
}
|
|
1258
1256
|
const admitted = {
|