@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
@@ -103,6 +103,138 @@ var init_resolve_repo = __esm(() => {
103
103
  };
104
104
  });
105
105
 
106
+ // ../../harness/kernel/log/roles.ts
107
+ function registerRole(name, role) {
108
+ roles.set(name, role);
109
+ }
110
+ function registerTitle(name, title) {
111
+ titles.set(name, title);
112
+ }
113
+ function isRole(value) {
114
+ return value !== undefined && roles.has(value);
115
+ }
116
+ function lookupRole(name) {
117
+ return roles.get(name);
118
+ }
119
+ function lookupTitle(name) {
120
+ return roles.get(name)?.title ?? titles.get(name);
121
+ }
122
+ var roles, titles;
123
+ var init_roles = __esm(() => {
124
+ roles = new Map;
125
+ titles = new Map;
126
+ });
127
+
128
+ // ../../harness/kernel/log/envelope.ts
129
+ import { createHash } from "node:crypto";
130
+ function actorIdFromEnv(role) {
131
+ return role === undefined || role === "" ? null : role;
132
+ }
133
+ function lineageFieldFromEnv(value) {
134
+ return value === undefined || value === "" ? null : value;
135
+ }
136
+ function attemptFromEnv(value) {
137
+ if (value === undefined || value === "")
138
+ return null;
139
+ const n = Number(value);
140
+ return Number.isInteger(n) ? n : null;
141
+ }
142
+ function provenanceFor(input) {
143
+ if (input.provenance)
144
+ return input.provenance;
145
+ if (issueFromTask(input.env.task) === null && (input.branchIssue ?? null) !== null)
146
+ return "unavailable";
147
+ if (input.env.role || input.env.task)
148
+ return "env_correlated";
149
+ return "unavailable";
150
+ }
151
+ function issueFromTask(task) {
152
+ if (task === undefined || task === "")
153
+ return null;
154
+ const n = Number(task);
155
+ return Number.isInteger(n) ? n : null;
156
+ }
157
+ function roundFromEnv(round) {
158
+ if (round === undefined || round === "")
159
+ return;
160
+ const n = Number(round);
161
+ return Number.isInteger(n) ? n : undefined;
162
+ }
163
+ function prFromEnv(pr) {
164
+ if (pr === undefined || pr === "")
165
+ return;
166
+ const n = Number(pr);
167
+ return Number.isInteger(n) && n > 0 ? n : undefined;
168
+ }
169
+ function buildHeader(input) {
170
+ const role = isRole(input.env.role) ? input.env.role : "unattributed";
171
+ const round = roundFromEnv(input.env.round);
172
+ const pr = prFromEnv(input.env.pr);
173
+ const subject = {
174
+ issue: issueFromTask(input.env.task) ?? input.branchIssue ?? null,
175
+ role,
176
+ ...round !== undefined ? { round } : {},
177
+ ...pr !== undefined ? { pr } : {},
178
+ ...input.subject ?? {}
179
+ };
180
+ const issue = subject.issue;
181
+ return {
182
+ meta: {
183
+ schema: 4,
184
+ ts: input.now.toISOString(),
185
+ run_id: input.runId,
186
+ seq: input.seq,
187
+ repo: input.repo,
188
+ vinaya: input.vinaya,
189
+ doctrine: input.doctrine,
190
+ host: input.host,
191
+ machine: createHash("sha256").update(input.hostname).digest("hex"),
192
+ event_id: input.eventId,
193
+ process_id: input.processId,
194
+ actor_id: actorIdFromEnv(input.env.role),
195
+ lineage: {
196
+ run: lineageFieldFromEnv(input.env.run),
197
+ attempt: attemptFromEnv(input.env.attempt),
198
+ parent: lineageFieldFromEnv(input.env.parent)
199
+ },
200
+ input_versions: {
201
+ manifest_version: input.inputVersions?.manifestVersion ?? null,
202
+ objectives_version: input.inputVersions?.objectivesVersion ?? null,
203
+ brief_hash: input.inputVersions?.briefHash ?? null,
204
+ ruling_ordinal: input.inputVersions?.rulingOrdinal ?? null,
205
+ pause_bound_ruling: input.inputVersions?.pauseBoundRuling ?? null,
206
+ policy_digest: input.inputVersions?.policyDigest ?? null
207
+ },
208
+ provenance: provenanceFor(input),
209
+ work: {
210
+ ref: lineageFieldFromEnv(input.env.workRef) ?? (issue === null ? null : String(issue)),
211
+ repo: input.repo,
212
+ change: pr === undefined ? null : String(pr),
213
+ revision: input.revision ?? null
214
+ },
215
+ flow: {
216
+ id: lineageFieldFromEnv(input.env.flow) ?? "vinaya",
217
+ version: lineageFieldFromEnv(input.env.flowVersion)
218
+ },
219
+ runtime: lineageFieldFromEnv(input.env.runtime),
220
+ process: {
221
+ id: lineageFieldFromEnv(input.env.processId) ?? "vinaya",
222
+ version: lineageFieldFromEnv(input.env.processVersion),
223
+ digest: lineageFieldFromEnv(input.env.processDigest)
224
+ },
225
+ runner: {
226
+ id: lineageFieldFromEnv(input.env.runnerId) ?? "standalone",
227
+ version: lineageFieldFromEnv(input.env.runnerVersion)
228
+ },
229
+ source: lineageFieldFromEnv(input.env.source)
230
+ },
231
+ subject
232
+ };
233
+ }
234
+ var init_envelope = __esm(() => {
235
+ init_roles();
236
+ });
237
+
106
238
  // ../../harness/kernel/log/custom.ts
107
239
  import { z } from "zod";
108
240
  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;
@@ -160,19 +292,11 @@ var init_custom = __esm(() => {
160
292
 
161
293
  // ../../harness/kernel/log/schema.ts
162
294
  import { z as z2 } from "zod";
163
- 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;
295
+ 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;
164
296
  var init_schema = __esm(() => {
165
297
  init_custom();
166
- ROLE_VALUES = [
167
- "planner",
168
- "developer",
169
- "code-reviewer",
170
- "security",
171
- "principal",
172
- "archivist",
173
- "architect"
174
- ];
175
- RoleSchema = z2.enum(ROLE_VALUES);
298
+ ROLE_NAME_PATTERN = /^[a-z0-9-]+$/;
299
+ RoleSchema = z2.string().regex(ROLE_NAME_PATTERN);
176
300
  HOST_VALUES = ["hook", "ci", "cli", "loop"];
177
301
  HostSchema = z2.enum(HOST_VALUES);
178
302
  RUN_ID_PATTERN = /^[A-Za-z0-9_.-]{1,128}$/;
@@ -754,119 +878,6 @@ var init_schema = __esm(() => {
754
878
  ]);
755
879
  });
756
880
 
757
- // ../../harness/kernel/log/envelope.ts
758
- import { createHash } from "node:crypto";
759
- function isRole(value) {
760
- return value !== undefined && ROLE_VALUES.includes(value);
761
- }
762
- function actorIdFromEnv(role) {
763
- return role === undefined || role === "" ? null : role;
764
- }
765
- function lineageFieldFromEnv(value) {
766
- return value === undefined || value === "" ? null : value;
767
- }
768
- function attemptFromEnv(value) {
769
- if (value === undefined || value === "")
770
- return null;
771
- const n = Number(value);
772
- return Number.isInteger(n) ? n : null;
773
- }
774
- function provenanceFor(input) {
775
- if (input.provenance)
776
- return input.provenance;
777
- if (issueFromTask(input.env.task) === null && (input.branchIssue ?? null) !== null)
778
- return "unavailable";
779
- if (input.env.role || input.env.task)
780
- return "env_correlated";
781
- return "unavailable";
782
- }
783
- function issueFromTask(task) {
784
- if (task === undefined || task === "")
785
- return null;
786
- const n = Number(task);
787
- return Number.isInteger(n) ? n : null;
788
- }
789
- function roundFromEnv(round) {
790
- if (round === undefined || round === "")
791
- return;
792
- const n = Number(round);
793
- return Number.isInteger(n) ? n : undefined;
794
- }
795
- function prFromEnv(pr) {
796
- if (pr === undefined || pr === "")
797
- return;
798
- const n = Number(pr);
799
- return Number.isInteger(n) && n > 0 ? n : undefined;
800
- }
801
- function buildHeader(input) {
802
- const role = isRole(input.env.role) ? input.env.role : "unattributed";
803
- const round = roundFromEnv(input.env.round);
804
- const pr = prFromEnv(input.env.pr);
805
- const subject = {
806
- issue: issueFromTask(input.env.task) ?? input.branchIssue ?? null,
807
- role,
808
- ...round !== undefined ? { round } : {},
809
- ...pr !== undefined ? { pr } : {},
810
- ...input.subject ?? {}
811
- };
812
- const issue = subject.issue;
813
- return {
814
- meta: {
815
- schema: 4,
816
- ts: input.now.toISOString(),
817
- run_id: input.runId,
818
- seq: input.seq,
819
- repo: input.repo,
820
- vinaya: input.vinaya,
821
- doctrine: input.doctrine,
822
- host: input.host,
823
- machine: createHash("sha256").update(input.hostname).digest("hex"),
824
- event_id: input.eventId,
825
- process_id: input.processId,
826
- actor_id: actorIdFromEnv(input.env.role),
827
- lineage: {
828
- run: lineageFieldFromEnv(input.env.run),
829
- attempt: attemptFromEnv(input.env.attempt),
830
- parent: lineageFieldFromEnv(input.env.parent)
831
- },
832
- input_versions: {
833
- manifest_version: input.inputVersions?.manifestVersion ?? null,
834
- objectives_version: input.inputVersions?.objectivesVersion ?? null,
835
- brief_hash: input.inputVersions?.briefHash ?? null,
836
- ruling_ordinal: input.inputVersions?.rulingOrdinal ?? null,
837
- pause_bound_ruling: input.inputVersions?.pauseBoundRuling ?? null,
838
- policy_digest: input.inputVersions?.policyDigest ?? null
839
- },
840
- provenance: provenanceFor(input),
841
- work: {
842
- ref: lineageFieldFromEnv(input.env.workRef) ?? (issue === null ? null : String(issue)),
843
- repo: input.repo,
844
- change: pr === undefined ? null : String(pr),
845
- revision: input.revision ?? null
846
- },
847
- flow: {
848
- id: lineageFieldFromEnv(input.env.flow) ?? "vinaya",
849
- version: lineageFieldFromEnv(input.env.flowVersion)
850
- },
851
- runtime: lineageFieldFromEnv(input.env.runtime),
852
- process: {
853
- id: lineageFieldFromEnv(input.env.processId) ?? "vinaya",
854
- version: lineageFieldFromEnv(input.env.processVersion),
855
- digest: lineageFieldFromEnv(input.env.processDigest)
856
- },
857
- runner: {
858
- id: lineageFieldFromEnv(input.env.runnerId) ?? "standalone",
859
- version: lineageFieldFromEnv(input.env.runnerVersion)
860
- },
861
- source: lineageFieldFromEnv(input.env.source)
862
- },
863
- subject
864
- };
865
- }
866
- var init_envelope = __esm(() => {
867
- init_schema();
868
- });
869
-
870
881
  // ../../harness/kernel/log/redact.ts
871
882
  function redactString(value, home) {
872
883
  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>");
@@ -1534,7 +1545,8 @@ function code(value) {
1534
1545
  return typeof value === "string" && CODE_TOKEN_PATTERN.test(value) ? value : null;
1535
1546
  }
1536
1547
  function roleSubject(value, sentenceStart = true) {
1537
- const name = typeof value === "string" && ROLE_VALUES.includes(value) ? `the ${value === "security" ? "security reviewer" : value.replace(/-/g, " ")}` : "a role";
1548
+ const known = typeof value === "string" ? lookupRole(value) : undefined;
1549
+ const name = known ? `the ${known.reading}` : "a role";
1538
1550
  return sentenceStart ? `${name[0]?.toUpperCase()}${name.slice(1)}` : name;
1539
1551
  }
1540
1552
  function roundLabel(record) {
@@ -1653,7 +1665,7 @@ function conflictReentry(record) {
1653
1665
  function dispatched(record) {
1654
1666
  const role = text(record.target_role);
1655
1667
  const who = roleSubject(role);
1656
- const reviewing = role === "code-reviewer" || role === "security";
1668
+ const reviewing = role !== null && (lookupRole(role)?.reviews ?? false);
1657
1669
  const round = whole(record.round);
1658
1670
  return {
1659
1671
  kind: "working",
@@ -1712,6 +1724,7 @@ function narrate(record, earlier = []) {
1712
1724
  }
1713
1725
  var REASONS, PAUSE_WITHOUT_CODE;
1714
1726
  var init_narration = __esm(() => {
1727
+ init_roles();
1715
1728
  init_schema();
1716
1729
  REASONS = {
1717
1730
  escalation: { words: "a role escalated a question", person: true },
@@ -1744,13 +1757,7 @@ var init_narration = __esm(() => {
1744
1757
 
1745
1758
  // ../../harness/kernel/adapters/agents/agent-line.ts
1746
1759
  function roleLabel(role) {
1747
- if (role in roleLabels)
1748
- return roleLabels[role];
1749
- if (role === "dev-review-loop")
1750
- return "Loop";
1751
- if (role === "operator")
1752
- return "Operator";
1753
- return role.replace(/-/g, " ").replace(/\b\w/g, (letter) => letter.toUpperCase());
1760
+ return lookupTitle(role) ?? role.replace(/-/g, " ").replace(/\b\w/g, (letter) => letter.toUpperCase());
1754
1761
  }
1755
1762
  function formatLineMeta(meta) {
1756
1763
  if (meta === undefined)
@@ -1764,17 +1771,9 @@ function formatAgentLine(role, words, options = {}) {
1764
1771
  const mark = options.unicode ?? true ? unicodeMarks[options.mark ?? "working"] : asciiMarks[options.mark ?? "working"];
1765
1772
  return `${time} ${mark} ${roleLabel(role)} ${words}`;
1766
1773
  }
1767
- var roleLabels, unicodeMarks, asciiMarks, META_KEY, META_VALUE;
1774
+ var unicodeMarks, asciiMarks, META_KEY, META_VALUE;
1768
1775
  var init_agent_line = __esm(() => {
1769
- roleLabels = {
1770
- planner: "Planner",
1771
- developer: "Developer",
1772
- "code-reviewer": "Code review",
1773
- security: "Security",
1774
- principal: "Principal",
1775
- archivist: "Archivist",
1776
- architect: "Architect"
1777
- };
1776
+ init_roles();
1778
1777
  unicodeMarks = { working: "▸", done: "✓", failed: "✕", waiting: "◌", round: "◆" };
1779
1778
  asciiMarks = { working: ">", done: "+", failed: "x", waiting: "~", round: "#" };
1780
1779
  META_KEY = /^[a-z]+$/;
@@ -5956,6 +5955,28 @@ var init_compose = __esm(() => {
5956
5955
  installVinayaConfigProvider();
5957
5956
  });
5958
5957
 
5958
+ // ../../harness/processes/vinaya-strict/integration/log/log-roles.ts
5959
+ function registerVinayaLogRoles() {
5960
+ for (const { name, reading, title, reviews } of VINAYA_LOG_ROLES)
5961
+ registerRole(name, { reading, title, reviews });
5962
+ registerTitle("dev-review-loop", "Loop");
5963
+ }
5964
+ var VINAYA_LOG_ROLES, VINAYA_LOG_ROLE_NAMES;
5965
+ var init_log_roles = __esm(() => {
5966
+ init_roles();
5967
+ VINAYA_LOG_ROLES = [
5968
+ { name: "planner", reading: "planner", title: "Planner", reviews: false },
5969
+ { name: "developer", reading: "developer", title: "Developer", reviews: false },
5970
+ { name: "code-reviewer", reading: "code reviewer", title: "Code review", reviews: true },
5971
+ { name: "security", reading: "security reviewer", title: "Security", reviews: true },
5972
+ { name: "principal", reading: "principal", title: "Principal", reviews: false },
5973
+ { name: "archivist", reading: "archivist", title: "Archivist", reviews: false },
5974
+ { name: "architect", reading: "architect", title: "Architect", reviews: false }
5975
+ ];
5976
+ VINAYA_LOG_ROLE_NAMES = VINAYA_LOG_ROLES.map((role) => role.name);
5977
+ registerVinayaLogRoles();
5978
+ });
5979
+
5959
5980
  // ../../harness/processes/vinaya-strict/integration/log/branch-issue.ts
5960
5981
  import { execFile as execFile5 } from "node:child_process";
5961
5982
  import { promisify as promisify5 } from "node:util";
@@ -6158,6 +6179,7 @@ function installVinayaLogSinkFactory() {
6158
6179
  var init_log_sink_factory = __esm(() => {
6159
6180
  init_log_sink();
6160
6181
  init_package_root();
6182
+ init_log_roles();
6161
6183
  init_branch_issue();
6162
6184
  init_doctrine_version();
6163
6185
  });
@@ -6563,8 +6585,8 @@ var init_protected_paths2 = __esm(() => {
6563
6585
 
6564
6586
  // ../../harness/processes/vinaya-strict/integration/policies/roles.ts
6565
6587
  var GRANTED_ROLES, ROLE_TOOL_GRANTS, VINAYA_TOOL_GRANTS, VINAYA_BROKER_ROLES, VINAYA_BOUNDARY_ROLES, OPERATOR_TOOL_GRANT, VINAYA_ROUTER_ROLES;
6566
- var init_roles = __esm(() => {
6567
- init_schema();
6588
+ var init_roles2 = __esm(() => {
6589
+ init_log_roles();
6568
6590
  GRANTED_ROLES = ["developer", "code-reviewer", "security", "controller"];
6569
6591
  ROLE_TOOL_GRANTS = {
6570
6592
  developer: [
@@ -6583,7 +6605,7 @@ var init_roles = __esm(() => {
6583
6605
  };
6584
6606
  VINAYA_TOOL_GRANTS = { roles: GRANTED_ROLES, grants: ROLE_TOOL_GRANTS };
6585
6607
  VINAYA_BROKER_ROLES = {
6586
- recognizedRoles: ROLE_VALUES,
6608
+ recognizedRoles: VINAYA_LOG_ROLE_NAMES,
6587
6609
  workerRoles: ["developer"],
6588
6610
  surfaceOwner: "the Planner"
6589
6611
  };
@@ -6667,7 +6689,7 @@ function vinayaRouterPolicies() {
6667
6689
  var init_vinaya_policies = __esm(() => {
6668
6690
  init_launch_records();
6669
6691
  init_protected_paths2();
6670
- init_roles();
6692
+ init_roles2();
6671
6693
  init_scratch_names();
6672
6694
  });
6673
6695