@attalabs/vinaya 0.42.1 → 0.42.2

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.
Files changed (41) hide show
  1. package/dist/checks/bin/check-evidence-fresh.js +169 -147
  2. package/dist/checks/bin/check-registry-gates.js +10 -3
  3. package/dist/index.js +292 -168
  4. package/dist/lib/pre-push-cache-test-run.js +142 -143
  5. package/dist/lib/pre-push-changed-files.js +10 -3
  6. package/dist/lib/pre-push-progress-dir.js +169 -147
  7. package/dist/lib/pre-push-select-tests.js +16 -4
  8. package/dist/lib/push-progress-observer.js +169 -147
  9. package/dist/programs/archive.js +169 -147
  10. package/dist/programs/audit.js +169 -147
  11. package/dist/programs/check.js +169 -147
  12. package/dist/programs/commit-msg.js +169 -147
  13. package/dist/programs/dev-review-loop.js +291 -170
  14. package/dist/programs/dispatch.js +1902 -1876
  15. package/dist/programs/log-emit.js +169 -147
  16. package/dist/programs/log-selftest.js +169 -147
  17. package/dist/programs/log-send.js +169 -147
  18. package/dist/programs/pr-report.js +169 -147
  19. package/dist/programs/pr-snapshot.js +169 -147
  20. package/dist/programs/pr-verify-evidence.js +169 -147
  21. package/dist/programs/pr.js +169 -147
  22. package/dist/programs/review-post.js +169 -147
  23. package/dist/programs/review-status.js +177 -147
  24. package/dist/programs/sync.js +60 -38
  25. package/dist/programs/task-brief.js +169 -147
  26. package/dist/programs/task-sweep.js +241 -150
  27. package/dist/programs/task-tools-serve.js +249 -154
  28. package/dist/programs/tokens.js +169 -147
  29. package/dist/programs/waiver.js +169 -147
  30. package/package.json +1 -1
  31. package/studio-standalone/apps/vinaya-studio/.next/BUILD_ID +1 -1
  32. package/studio-standalone/apps/vinaya-studio/.next/build-manifest.json +2 -2
  33. package/studio-standalone/apps/vinaya-studio/.next/server/app/_global-error.html +1 -1
  34. package/studio-standalone/apps/vinaya-studio/.next/server/app/_global-error.rsc +1 -1
  35. package/studio-standalone/apps/vinaya-studio/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  36. package/studio-standalone/apps/vinaya-studio/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  37. package/studio-standalone/apps/vinaya-studio/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  38. package/studio-standalone/apps/vinaya-studio/.next/server/middleware-build-manifest.js +1 -1
  39. package/studio-standalone/apps/vinaya-studio/.next/server/pages/500.html +1 -1
  40. /package/studio-standalone/apps/vinaya-studio/.next/static/{yFfoujElgbwPk-7KNS-kw → Q_xjhiWztjosXWbMSJ0Yp}/_buildManifest.js +0 -0
  41. /package/studio-standalone/apps/vinaya-studio/.next/static/{yFfoujElgbwPk-7KNS-kw → Q_xjhiWztjosXWbMSJ0Yp}/_ssgManifest.js +0 -0
@@ -150,6 +150,138 @@ var init_resolve_repo = __esm(() => {
150
150
  };
151
151
  });
152
152
 
153
+ // ../../harness/kernel/log/roles.ts
154
+ function registerRole(name, role) {
155
+ roles.set(name, role);
156
+ }
157
+ function registerTitle(name, title) {
158
+ titles.set(name, title);
159
+ }
160
+ function isRole(value) {
161
+ return value !== undefined && roles.has(value);
162
+ }
163
+ function lookupRole(name) {
164
+ return roles.get(name);
165
+ }
166
+ function lookupTitle(name) {
167
+ return roles.get(name)?.title ?? titles.get(name);
168
+ }
169
+ var roles, titles;
170
+ var init_roles = __esm(() => {
171
+ roles = new Map;
172
+ titles = new Map;
173
+ });
174
+
175
+ // ../../harness/kernel/log/envelope.ts
176
+ import { createHash } from "node:crypto";
177
+ function actorIdFromEnv(role) {
178
+ return role === undefined || role === "" ? null : role;
179
+ }
180
+ function lineageFieldFromEnv(value) {
181
+ return value === undefined || value === "" ? null : value;
182
+ }
183
+ function attemptFromEnv(value) {
184
+ if (value === undefined || value === "")
185
+ return null;
186
+ const n = Number(value);
187
+ return Number.isInteger(n) ? n : null;
188
+ }
189
+ function provenanceFor(input) {
190
+ if (input.provenance)
191
+ return input.provenance;
192
+ if (issueFromTask(input.env.task) === null && (input.branchIssue ?? null) !== null)
193
+ return "unavailable";
194
+ if (input.env.role || input.env.task)
195
+ return "env_correlated";
196
+ return "unavailable";
197
+ }
198
+ function issueFromTask(task) {
199
+ if (task === undefined || task === "")
200
+ return null;
201
+ const n = Number(task);
202
+ return Number.isInteger(n) ? n : null;
203
+ }
204
+ function roundFromEnv(round) {
205
+ if (round === undefined || round === "")
206
+ return;
207
+ const n = Number(round);
208
+ return Number.isInteger(n) ? n : undefined;
209
+ }
210
+ function prFromEnv(pr) {
211
+ if (pr === undefined || pr === "")
212
+ return;
213
+ const n = Number(pr);
214
+ return Number.isInteger(n) && n > 0 ? n : undefined;
215
+ }
216
+ function buildHeader(input) {
217
+ const role = isRole(input.env.role) ? input.env.role : "unattributed";
218
+ const round = roundFromEnv(input.env.round);
219
+ const pr = prFromEnv(input.env.pr);
220
+ const subject = {
221
+ issue: issueFromTask(input.env.task) ?? input.branchIssue ?? null,
222
+ role,
223
+ ...round !== undefined ? { round } : {},
224
+ ...pr !== undefined ? { pr } : {},
225
+ ...input.subject ?? {}
226
+ };
227
+ const issue = subject.issue;
228
+ return {
229
+ meta: {
230
+ schema: 4,
231
+ ts: input.now.toISOString(),
232
+ run_id: input.runId,
233
+ seq: input.seq,
234
+ repo: input.repo,
235
+ vinaya: input.vinaya,
236
+ doctrine: input.doctrine,
237
+ host: input.host,
238
+ machine: createHash("sha256").update(input.hostname).digest("hex"),
239
+ event_id: input.eventId,
240
+ process_id: input.processId,
241
+ actor_id: actorIdFromEnv(input.env.role),
242
+ lineage: {
243
+ run: lineageFieldFromEnv(input.env.run),
244
+ attempt: attemptFromEnv(input.env.attempt),
245
+ parent: lineageFieldFromEnv(input.env.parent)
246
+ },
247
+ input_versions: {
248
+ manifest_version: input.inputVersions?.manifestVersion ?? null,
249
+ objectives_version: input.inputVersions?.objectivesVersion ?? null,
250
+ brief_hash: input.inputVersions?.briefHash ?? null,
251
+ ruling_ordinal: input.inputVersions?.rulingOrdinal ?? null,
252
+ pause_bound_ruling: input.inputVersions?.pauseBoundRuling ?? null,
253
+ policy_digest: input.inputVersions?.policyDigest ?? null
254
+ },
255
+ provenance: provenanceFor(input),
256
+ work: {
257
+ ref: lineageFieldFromEnv(input.env.workRef) ?? (issue === null ? null : String(issue)),
258
+ repo: input.repo,
259
+ change: pr === undefined ? null : String(pr),
260
+ revision: input.revision ?? null
261
+ },
262
+ flow: {
263
+ id: lineageFieldFromEnv(input.env.flow) ?? "vinaya",
264
+ version: lineageFieldFromEnv(input.env.flowVersion)
265
+ },
266
+ runtime: lineageFieldFromEnv(input.env.runtime),
267
+ process: {
268
+ id: lineageFieldFromEnv(input.env.processId) ?? "vinaya",
269
+ version: lineageFieldFromEnv(input.env.processVersion),
270
+ digest: lineageFieldFromEnv(input.env.processDigest)
271
+ },
272
+ runner: {
273
+ id: lineageFieldFromEnv(input.env.runnerId) ?? "standalone",
274
+ version: lineageFieldFromEnv(input.env.runnerVersion)
275
+ },
276
+ source: lineageFieldFromEnv(input.env.source)
277
+ },
278
+ subject
279
+ };
280
+ }
281
+ var init_envelope = __esm(() => {
282
+ init_roles();
283
+ });
284
+
153
285
  // ../../harness/kernel/log/custom.ts
154
286
  import { z } from "zod";
155
287
  var CUSTOM_EVENT_NAME_PATTERN, CUSTOM_EVENT_NAME_MAX_LENGTH = 64, CUSTOM_EVENT_RESERVED_NAMESPACE = "vinaya", CUSTOM_EVENT_MAX_FIELDS = 20, CUSTOM_FIELD_NAME_PATTERN, CUSTOM_FIELD_NAME_MAX_LENGTH = 64, CUSTOM_TEXT_MAX_LENGTH = 500, CUSTOM_WORD_PATTERN, CUSTOM_WORD_MAX_LENGTH = 64, CUSTOM_FIELD_MAX_WORDS = 50, CustomFieldTypeSchema, CustomEventDeclarationsSchema;
@@ -207,19 +339,11 @@ var init_custom = __esm(() => {
207
339
 
208
340
  // ../../harness/kernel/log/schema.ts
209
341
  import { z as z2 } from "zod";
210
- var CONFIDENCE_REASON_MAX_LENGTH = 280, REVIEW_FINDING_DESCRIPTION_MAX_LENGTH = 1000, ROLE_VALUES, RoleSchema, HOST_VALUES, HostSchema, RUN_ID_PATTERN, headerMetaCore, HeaderMetaV1Schema, LineageSchema, InputVersionsSchema, ProvenanceSchema, HeaderMetaV2Schema, WorkSchema, FlowSchema, HeaderMetaV3Schema, HeaderMetaV4Schema, HeaderMetaSchema, SubjectSchema, HeaderSchema, envelopeTail, ReviewFindingSchema, DispatchOutcomeSchema, dispatchShared, dispatchUsageField, DispatchEventSchema, CODE_TOKEN_PATTERN, CodeTokenSchema, ReviewerVerdictSchema, loopShared, DevReviewLoopEventSchema, ForgeOpSchema, ForgeWriteTargetSchema, forgeWriteShared, ForgeWriteEventSchema, GateOutcomeSchema, gateShared, GateEventSchema, OperationResultSchema, operationShared, OperationEventSchema, UsageUnitsSchema, usageShared, UsageEventSchema, RoleAttemptOutcomeSchema, roleAttemptShared, RoleAttemptEventSchema, handoffShared, HandoffEventSchema, EffectTargetSchema, effectShared, EffectEventSchema, CustomFieldValueSchema, customShared, CustomEventSchema, LogEventSchema;
342
+ var CONFIDENCE_REASON_MAX_LENGTH = 280, REVIEW_FINDING_DESCRIPTION_MAX_LENGTH = 1000, ROLE_NAME_PATTERN, RoleSchema, HOST_VALUES, HostSchema, RUN_ID_PATTERN, headerMetaCore, HeaderMetaV1Schema, LineageSchema, InputVersionsSchema, ProvenanceSchema, HeaderMetaV2Schema, WorkSchema, FlowSchema, HeaderMetaV3Schema, HeaderMetaV4Schema, HeaderMetaSchema, SubjectSchema, HeaderSchema, envelopeTail, ReviewFindingSchema, DispatchOutcomeSchema, dispatchShared, dispatchUsageField, DispatchEventSchema, CODE_TOKEN_PATTERN, CodeTokenSchema, ReviewerVerdictSchema, loopShared, DevReviewLoopEventSchema, ForgeOpSchema, ForgeWriteTargetSchema, forgeWriteShared, ForgeWriteEventSchema, GateOutcomeSchema, gateShared, GateEventSchema, OperationResultSchema, operationShared, OperationEventSchema, UsageUnitsSchema, usageShared, UsageEventSchema, RoleAttemptOutcomeSchema, roleAttemptShared, RoleAttemptEventSchema, handoffShared, HandoffEventSchema, EffectTargetSchema, effectShared, EffectEventSchema, CustomFieldValueSchema, customShared, CustomEventSchema, LogEventSchema;
211
343
  var init_schema = __esm(() => {
212
344
  init_custom();
213
- ROLE_VALUES = [
214
- "planner",
215
- "developer",
216
- "code-reviewer",
217
- "security",
218
- "principal",
219
- "archivist",
220
- "architect"
221
- ];
222
- RoleSchema = z2.enum(ROLE_VALUES);
345
+ ROLE_NAME_PATTERN = /^[a-z0-9-]+$/;
346
+ RoleSchema = z2.string().regex(ROLE_NAME_PATTERN);
223
347
  HOST_VALUES = ["hook", "ci", "cli", "loop"];
224
348
  HostSchema = z2.enum(HOST_VALUES);
225
349
  RUN_ID_PATTERN = /^[A-Za-z0-9_.-]{1,128}$/;
@@ -801,119 +925,6 @@ var init_schema = __esm(() => {
801
925
  ]);
802
926
  });
803
927
 
804
- // ../../harness/kernel/log/envelope.ts
805
- import { createHash } from "node:crypto";
806
- function isRole(value) {
807
- return value !== undefined && ROLE_VALUES.includes(value);
808
- }
809
- function actorIdFromEnv(role) {
810
- return role === undefined || role === "" ? null : role;
811
- }
812
- function lineageFieldFromEnv(value) {
813
- return value === undefined || value === "" ? null : value;
814
- }
815
- function attemptFromEnv(value) {
816
- if (value === undefined || value === "")
817
- return null;
818
- const n = Number(value);
819
- return Number.isInteger(n) ? n : null;
820
- }
821
- function provenanceFor(input) {
822
- if (input.provenance)
823
- return input.provenance;
824
- if (issueFromTask(input.env.task) === null && (input.branchIssue ?? null) !== null)
825
- return "unavailable";
826
- if (input.env.role || input.env.task)
827
- return "env_correlated";
828
- return "unavailable";
829
- }
830
- function issueFromTask(task) {
831
- if (task === undefined || task === "")
832
- return null;
833
- const n = Number(task);
834
- return Number.isInteger(n) ? n : null;
835
- }
836
- function roundFromEnv(round) {
837
- if (round === undefined || round === "")
838
- return;
839
- const n = Number(round);
840
- return Number.isInteger(n) ? n : undefined;
841
- }
842
- function prFromEnv(pr) {
843
- if (pr === undefined || pr === "")
844
- return;
845
- const n = Number(pr);
846
- return Number.isInteger(n) && n > 0 ? n : undefined;
847
- }
848
- function buildHeader(input) {
849
- const role = isRole(input.env.role) ? input.env.role : "unattributed";
850
- const round = roundFromEnv(input.env.round);
851
- const pr = prFromEnv(input.env.pr);
852
- const subject = {
853
- issue: issueFromTask(input.env.task) ?? input.branchIssue ?? null,
854
- role,
855
- ...round !== undefined ? { round } : {},
856
- ...pr !== undefined ? { pr } : {},
857
- ...input.subject ?? {}
858
- };
859
- const issue = subject.issue;
860
- return {
861
- meta: {
862
- schema: 4,
863
- ts: input.now.toISOString(),
864
- run_id: input.runId,
865
- seq: input.seq,
866
- repo: input.repo,
867
- vinaya: input.vinaya,
868
- doctrine: input.doctrine,
869
- host: input.host,
870
- machine: createHash("sha256").update(input.hostname).digest("hex"),
871
- event_id: input.eventId,
872
- process_id: input.processId,
873
- actor_id: actorIdFromEnv(input.env.role),
874
- lineage: {
875
- run: lineageFieldFromEnv(input.env.run),
876
- attempt: attemptFromEnv(input.env.attempt),
877
- parent: lineageFieldFromEnv(input.env.parent)
878
- },
879
- input_versions: {
880
- manifest_version: input.inputVersions?.manifestVersion ?? null,
881
- objectives_version: input.inputVersions?.objectivesVersion ?? null,
882
- brief_hash: input.inputVersions?.briefHash ?? null,
883
- ruling_ordinal: input.inputVersions?.rulingOrdinal ?? null,
884
- pause_bound_ruling: input.inputVersions?.pauseBoundRuling ?? null,
885
- policy_digest: input.inputVersions?.policyDigest ?? null
886
- },
887
- provenance: provenanceFor(input),
888
- work: {
889
- ref: lineageFieldFromEnv(input.env.workRef) ?? (issue === null ? null : String(issue)),
890
- repo: input.repo,
891
- change: pr === undefined ? null : String(pr),
892
- revision: input.revision ?? null
893
- },
894
- flow: {
895
- id: lineageFieldFromEnv(input.env.flow) ?? "vinaya",
896
- version: lineageFieldFromEnv(input.env.flowVersion)
897
- },
898
- runtime: lineageFieldFromEnv(input.env.runtime),
899
- process: {
900
- id: lineageFieldFromEnv(input.env.processId) ?? "vinaya",
901
- version: lineageFieldFromEnv(input.env.processVersion),
902
- digest: lineageFieldFromEnv(input.env.processDigest)
903
- },
904
- runner: {
905
- id: lineageFieldFromEnv(input.env.runnerId) ?? "standalone",
906
- version: lineageFieldFromEnv(input.env.runnerVersion)
907
- },
908
- source: lineageFieldFromEnv(input.env.source)
909
- },
910
- subject
911
- };
912
- }
913
- var init_envelope = __esm(() => {
914
- init_schema();
915
- });
916
-
917
928
  // ../../harness/kernel/log/redact.ts
918
929
  function redactString(value, home) {
919
930
  let out = value.replace(GITHUB_TOKEN_PATTERN, "<redacted>").replace(CLASSIC_GITHUB_PAT_PATTERN, "$1<redacted>").replace(BEARER_TOKEN_PATTERN, "<redacted>").replace(AWS_ACCESS_KEY_PATTERN, "<redacted>").replace(SLACK_TOKEN_PATTERN, "<redacted>").replace(STRIPE_KEY_PATTERN, "<redacted>").replace(ANTHROPIC_KEY_PATTERN, "<redacted>").replace(OPENAI_KEY_PATTERN, "<redacted>").replace(NPM_TOKEN_PATTERN, "<redacted>").replace(JWT_PATTERN, "<redacted>").replace(PEM_BLOCK_PATTERN, "<redacted>").replace(BASIC_AUTH_URL_PATTERN, "$1<redacted>@").replace(GENERIC_SECRET_ASSIGNMENT_PATTERN, "$1<redacted>");
@@ -1581,7 +1592,8 @@ function code(value) {
1581
1592
  return typeof value === "string" && CODE_TOKEN_PATTERN.test(value) ? value : null;
1582
1593
  }
1583
1594
  function roleSubject(value, sentenceStart = true) {
1584
- const name = typeof value === "string" && ROLE_VALUES.includes(value) ? `the ${value === "security" ? "security reviewer" : value.replace(/-/g, " ")}` : "a role";
1595
+ const known = typeof value === "string" ? lookupRole(value) : undefined;
1596
+ const name = known ? `the ${known.reading}` : "a role";
1585
1597
  return sentenceStart ? `${name[0]?.toUpperCase()}${name.slice(1)}` : name;
1586
1598
  }
1587
1599
  function roundLabel(record) {
@@ -1700,7 +1712,7 @@ function conflictReentry(record) {
1700
1712
  function dispatched(record) {
1701
1713
  const role = text(record.target_role);
1702
1714
  const who = roleSubject(role);
1703
- const reviewing = role === "code-reviewer" || role === "security";
1715
+ const reviewing = role !== null && (lookupRole(role)?.reviews ?? false);
1704
1716
  const round = whole(record.round);
1705
1717
  return {
1706
1718
  kind: "working",
@@ -1759,6 +1771,7 @@ function narrate(record, earlier = []) {
1759
1771
  }
1760
1772
  var REASONS, PAUSE_WITHOUT_CODE;
1761
1773
  var init_narration = __esm(() => {
1774
+ init_roles();
1762
1775
  init_schema();
1763
1776
  REASONS = {
1764
1777
  escalation: { words: "a role escalated a question", person: true },
@@ -1791,13 +1804,7 @@ var init_narration = __esm(() => {
1791
1804
 
1792
1805
  // ../../harness/kernel/adapters/agents/agent-line.ts
1793
1806
  function roleLabel(role) {
1794
- if (role in roleLabels)
1795
- return roleLabels[role];
1796
- if (role === "dev-review-loop")
1797
- return "Loop";
1798
- if (role === "operator")
1799
- return "Operator";
1800
- return role.replace(/-/g, " ").replace(/\b\w/g, (letter) => letter.toUpperCase());
1807
+ return lookupTitle(role) ?? role.replace(/-/g, " ").replace(/\b\w/g, (letter) => letter.toUpperCase());
1801
1808
  }
1802
1809
  function formatLineMeta(meta) {
1803
1810
  if (meta === undefined)
@@ -1811,17 +1818,9 @@ function formatAgentLine(role, words, options = {}) {
1811
1818
  const mark = options.unicode ?? true ? unicodeMarks[options.mark ?? "working"] : asciiMarks[options.mark ?? "working"];
1812
1819
  return `${time} ${mark} ${roleLabel(role)} ${words}`;
1813
1820
  }
1814
- var roleLabels, unicodeMarks, asciiMarks, META_KEY, META_VALUE;
1821
+ var unicodeMarks, asciiMarks, META_KEY, META_VALUE;
1815
1822
  var init_agent_line = __esm(() => {
1816
- roleLabels = {
1817
- planner: "Planner",
1818
- developer: "Developer",
1819
- "code-reviewer": "Code review",
1820
- security: "Security",
1821
- principal: "Principal",
1822
- archivist: "Archivist",
1823
- architect: "Architect"
1824
- };
1823
+ init_roles();
1825
1824
  unicodeMarks = { working: "▸", done: "✓", failed: "✕", waiting: "◌", round: "◆" };
1826
1825
  asciiMarks = { working: ">", done: "+", failed: "x", waiting: "~", round: "#" };
1827
1826
  META_KEY = /^[a-z]+$/;
@@ -6159,6 +6158,28 @@ var init_registry = __esm(() => {
6159
6158
  CORE_CHECK_RING = Object.fromEntries(REGISTRY.map(([spec, ring]) => [spec.name, ring]));
6160
6159
  });
6161
6160
 
6161
+ // ../../harness/processes/vinaya-strict/integration/log/log-roles.ts
6162
+ function registerVinayaLogRoles() {
6163
+ for (const { name, reading, title, reviews } of VINAYA_LOG_ROLES)
6164
+ registerRole(name, { reading, title, reviews });
6165
+ registerTitle("dev-review-loop", "Loop");
6166
+ }
6167
+ var VINAYA_LOG_ROLES, VINAYA_LOG_ROLE_NAMES;
6168
+ var init_log_roles = __esm(() => {
6169
+ init_roles();
6170
+ VINAYA_LOG_ROLES = [
6171
+ { name: "planner", reading: "planner", title: "Planner", reviews: false },
6172
+ { name: "developer", reading: "developer", title: "Developer", reviews: false },
6173
+ { name: "code-reviewer", reading: "code reviewer", title: "Code review", reviews: true },
6174
+ { name: "security", reading: "security reviewer", title: "Security", reviews: true },
6175
+ { name: "principal", reading: "principal", title: "Principal", reviews: false },
6176
+ { name: "archivist", reading: "archivist", title: "Archivist", reviews: false },
6177
+ { name: "architect", reading: "architect", title: "Architect", reviews: false }
6178
+ ];
6179
+ VINAYA_LOG_ROLE_NAMES = VINAYA_LOG_ROLES.map((role) => role.name);
6180
+ registerVinayaLogRoles();
6181
+ });
6182
+
6162
6183
  // ../../harness/processes/vinaya-strict/integration/log/branch-issue.ts
6163
6184
  import { execFile as execFile5 } from "node:child_process";
6164
6185
  import { promisify as promisify5 } from "node:util";
@@ -6361,6 +6382,7 @@ function installVinayaLogSinkFactory() {
6361
6382
  var init_log_sink_factory = __esm(() => {
6362
6383
  init_log_sink();
6363
6384
  init_package_root();
6385
+ init_log_roles();
6364
6386
  init_branch_issue();
6365
6387
  init_doctrine_version();
6366
6388
  });
@@ -6763,8 +6785,8 @@ var init_protected_paths2 = __esm(() => {
6763
6785
 
6764
6786
  // ../../harness/processes/vinaya-strict/integration/policies/roles.ts
6765
6787
  var GRANTED_ROLES, ROLE_TOOL_GRANTS, VINAYA_TOOL_GRANTS, VINAYA_BROKER_ROLES, VINAYA_BOUNDARY_ROLES, OPERATOR_TOOL_GRANT, VINAYA_ROUTER_ROLES;
6766
- var init_roles = __esm(() => {
6767
- init_schema();
6788
+ var init_roles2 = __esm(() => {
6789
+ init_log_roles();
6768
6790
  GRANTED_ROLES = ["developer", "code-reviewer", "security", "controller"];
6769
6791
  ROLE_TOOL_GRANTS = {
6770
6792
  developer: [
@@ -6783,7 +6805,7 @@ var init_roles = __esm(() => {
6783
6805
  };
6784
6806
  VINAYA_TOOL_GRANTS = { roles: GRANTED_ROLES, grants: ROLE_TOOL_GRANTS };
6785
6807
  VINAYA_BROKER_ROLES = {
6786
- recognizedRoles: ROLE_VALUES,
6808
+ recognizedRoles: VINAYA_LOG_ROLE_NAMES,
6787
6809
  workerRoles: ["developer"],
6788
6810
  surfaceOwner: "the Planner"
6789
6811
  };
@@ -6867,7 +6889,7 @@ function vinayaRouterPolicies() {
6867
6889
  var init_vinaya_policies = __esm(() => {
6868
6890
  init_launch_records();
6869
6891
  init_protected_paths2();
6870
- init_roles();
6892
+ init_roles2();
6871
6893
  init_scratch_names();
6872
6894
  });
6873
6895