Backfill test/story fixtures for user-secret contract fields

The user-specific secret contracts (9346994b2) added required fields
without updating fixtures. Add safe defaults so `tsc -b` is green:
- CompanySecret: scope: "company", ownerUserId: null, userSecretDefinitionId: null
- Issue / HeartbeatRun / Routine / RoutineDetail: responsibleUserId: null
- SecretAccessEvent: userSecretDefinitionId, secretScope: "company",
  responsibleUserId, credentialOwnerUserId, credentialSubjectType,
  credentialSubjectId

Fixture-only; no assertions or logic changed.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
DottaandPaperclip committed 2026-07-01 18:23:38 +00:00
1 parent 34076590d7
commit 8d10c84ed2
30 files changed
+89

No files matched your search

@@ -38,6 +38,7 @@ function createRun(overrides: Partial<HeartbeatRun> = {}): HeartbeatRun {
id: "run-1",
companyId: "company-1",
agentId: "agent-1",
responsibleUserId: null,
invocationSource: "on_demand",
triggerDetail: "manual",
status: "succeeded",
@@ -238,6 +238,7 @@ function createIssue(): Issue {
priority: "medium",
assigneeAgentId: null,
assigneeUserId: null,
responsibleUserId: null,
createdByAgentId: null,
createdByUserId: "user-1",
issueNumber: 807,
@@ -34,6 +34,7 @@ function createIssue(overrides: Partial<Issue> = {}): Issue {
priority: "medium",
assigneeAgentId: null,
assigneeUserId: null,
responsibleUserId: null,
createdByAgentId: null,
createdByUserId: null,
issueNumber: 1,
@@ -23,6 +23,7 @@ function createIssue(overrides: Partial<Issue> = {}): Issue {
priority: "medium",
assigneeAgentId: "agent-1",
assigneeUserId: null,
responsibleUserId: null,
checkoutRunId: null,
executionRunId: null,
executionAgentNameKey: null,
@@ -178,6 +178,7 @@ function createIssue(overrides: Partial<Issue> = {}): Issue {
priority: "medium",
assigneeAgentId: null,
assigneeUserId: null,
responsibleUserId: null,
checkoutRunId: null,
executionRunId: null,
executionAgentNameKey: null,
+1
View File
@@ -43,6 +43,7 @@ function createIssue(overrides: Partial<Issue> = {}): Issue {
priority: "medium",
assigneeAgentId: null,
assigneeUserId: null,
responsibleUserId: null,
createdByAgentId: null,
createdByUserId: null,
issueNumber: 1,
@@ -93,6 +93,7 @@ function createIssue(overrides: Partial<Issue> = {}): Issue {
priority: "medium",
assigneeAgentId: null,
assigneeUserId: null,
responsibleUserId: null,
checkoutRunId: null,
executionRunId: null,
executionAgentNameKey: null,
@@ -92,6 +92,7 @@ function createIssue(overrides: Partial<Issue> = {}): Issue {
priority: "medium",
assigneeAgentId: "agent-1",
assigneeUserId: null,
responsibleUserId: null,
createdByAgentId: null,
createdByUserId: null,
issueNumber: 81,
+1
View File
@@ -176,6 +176,7 @@ function createIssue(overrides: Partial<Issue> = {}): Issue {
priority: "medium",
assigneeAgentId: null,
assigneeUserId: null,
responsibleUserId: null,
createdByAgentId: null,
createdByUserId: null,
issueNumber: 1,
+1
View File
@@ -45,6 +45,7 @@ function createIssue(index: number, status: IssueStatus): Issue {
priority: "medium",
assigneeAgentId: index === 1 ? "agent-1" : null,
assigneeUserId: null,
responsibleUserId: null,
createdByAgentId: null,
createdByUserId: null,
issueNumber: index,
@@ -89,6 +89,7 @@ function snapshotV1(overrides?: Partial<RoutineRevisionSnapshotV1["routine"]>):
projectId: null,
goalId: null,
parentIssueId: null,
responsibleUserId: null,
title: "Daily standup digest",
description: "Summarize standup notes",
assigneeAgentId: null,
@@ -130,6 +131,7 @@ function createRoutine(overrides: Partial<Routine> = {}): Routine {
projectId: null,
goalId: null,
parentIssueId: null,
responsibleUserId: null,
title: "Daily standup digest",
description: "Summarize standup notes",
assigneeAgentId: null,
@@ -346,6 +348,9 @@ describe("RoutineHistoryTab", () => {
{
id: "secret-1",
companyId: "company-1",
scope: "company",
ownerUserId: null,
userSecretDefinitionId: null,
key: "gh_token",
name: "github-bot",
provider: "local_encrypted",
@@ -408,6 +413,9 @@ describe("RoutineHistoryTab", () => {
{
id: "secret-1",
companyId: "company-1",
scope: "company",
ownerUserId: null,
userSecretDefinitionId: null,
key: "old_token",
name: "old-token",
provider: "local_encrypted",
@@ -429,6 +437,9 @@ describe("RoutineHistoryTab", () => {
{
id: "secret-2",
companyId: "company-1",
scope: "company",
ownerUserId: null,
userSecretDefinitionId: null,
key: "new_token",
name: "new-token",
provider: "local_encrypted",
+2
View File
@@ -133,6 +133,7 @@ function makeRun(id: string, status: HeartbeatRun["status"], createdAt: string,
id,
companyId: "company-1",
agentId,
responsibleUserId: null,
invocationSource: "assignment",
triggerDetail: null,
status,
@@ -190,6 +191,7 @@ function makeIssue(id: string, isUnreadForMe: boolean): Issue {
priority: "medium",
assigneeAgentId: null,
assigneeUserId: null,
responsibleUserId: null,
createdByAgentId: null,
createdByUserId: null,
issueNumber: 1,
+1
View File
@@ -24,6 +24,7 @@ function makeIssue(overrides: Partial<Issue> = {}): Issue {
priority: "medium",
assigneeAgentId: null,
assigneeUserId: null,
responsibleUserId: null,
checkoutRunId: null,
executionRunId: null,
executionAgentNameKey: null,
+1
View File
@@ -18,6 +18,7 @@ function makeIssue(id: string, parentId: string | null = null): Issue {
priority: "medium",
assigneeAgentId: null,
assigneeUserId: null,
responsibleUserId: null,
createdByAgentId: null,
createdByUserId: null,
issueNumber: 1,
+1
View File
@@ -46,6 +46,7 @@ describe("issueDetailBreadcrumb", () => {
priority: "medium",
assigneeAgentId: null,
assigneeUserId: null,
responsibleUserId: null,
checkoutRunId: null,
executionRunId: null,
executionAgentNameKey: null,
+1
View File
@@ -31,6 +31,7 @@ function createIssue(overrides: Partial<Issue> = {}): Issue {
priority: "medium",
assigneeAgentId: null,
assigneeUserId: null,
responsibleUserId: null,
createdByAgentId: null,
createdByUserId: null,
issueNumber: 1,
+1
View File
@@ -33,6 +33,7 @@ function makeIssue(overrides: Partial<Issue> = {}): Issue {
priority: "medium",
assigneeAgentId: null,
assigneeUserId: null,
responsibleUserId: null,
checkoutRunId: null,
executionRunId: null,
executionAgentNameKey: null,
@@ -450,6 +450,7 @@ describe("optimistic issue comments", () => {
priority: "medium",
assigneeAgentId: "agent-1",
assigneeUserId: null,
responsibleUserId: null,
checkoutRunId: null,
executionRunId: null,
executionAgentNameKey: null,
@@ -520,6 +521,7 @@ describe("optimistic issue comments", () => {
priority: "medium",
assigneeAgentId: "agent-1",
assigneeUserId: null,
responsibleUserId: null,
checkoutRunId: null,
executionRunId: null,
executionAgentNameKey: null,
@@ -694,6 +696,7 @@ describe("optimistic issue comments", () => {
priority: "medium",
assigneeAgentId: "agent-1",
assigneeUserId: null,
responsibleUserId: null,
checkoutRunId: null,
executionRunId: null,
executionAgentNameKey: null,
@@ -736,6 +739,7 @@ describe("optimistic issue comments", () => {
priority: "medium",
assigneeAgentId: "agent-2",
assigneeUserId: null,
responsibleUserId: null,
checkoutRunId: null,
executionRunId: null,
executionAgentNameKey: null,
+1
View File
@@ -48,6 +48,7 @@ function makeIssue(overrides: Partial<Issue> = {}): Issue {
priority: "medium",
assigneeAgentId: null,
assigneeUserId: null,
responsibleUserId: null,
checkoutRunId: null,
executionRunId: null,
executionAgentNameKey: null,
+1
View File
@@ -13,6 +13,7 @@ function createRoutine(overrides: Partial<RoutineListItem> = {}): RoutineListIte
projectId: "project-1",
goalId: null,
parentIssueId: null,
responsibleUserId: null,
title: "Routine title",
description: null,
assigneeAgentId: "agent-1",
+2
View File
@@ -158,6 +158,7 @@ function createIssue(overrides: Partial<Issue> = {}): Issue {
priority: "medium",
assigneeAgentId: null,
assigneeUserId: null,
responsibleUserId: null,
createdByAgentId: null,
createdByUserId: null,
issueNumber: 904,
@@ -398,6 +399,7 @@ describe("FailedRunInboxRow", () => {
id: "run-1",
companyId: "company-1",
agentId: "agent-1",
responsibleUserId: null,
invocationSource: "assignment",
triggerDetail: null,
status: "failed",
+2
View File
@@ -253,6 +253,7 @@ function createRoutine(overrides: Partial<RoutineListItem>): RoutineListItem {
projectId: "project-1",
goalId: null,
parentIssueId: null,
responsibleUserId: null,
title: "Routine title",
description: null,
assigneeAgentId: "agent-1",
@@ -293,6 +294,7 @@ function createIssue(overrides: Partial<Issue> = {}): Issue {
priority: "medium",
assigneeAgentId: "agent-1",
assigneeUserId: null,
responsibleUserId: null,
createdByAgentId: null,
createdByUserId: null,
issueNumber: 1000,
@@ -286,6 +286,9 @@ describe("ImportFromVaultDialog", () => {
{
id: "secret-existing",
companyId: "company-1",
scope: "company",
ownerUserId: null,
userSecretDefinitionId: null,
key: "openai_api_key",
name: "OPENAI_API_KEY",
provider: "aws_secrets_manager",
+31
View File
@@ -712,6 +712,7 @@ export function createIssue(overrides: Partial<Issue> = {}): Issue {
priority: "high",
assigneeAgentId: "agent-codex",
assigneeUserId: null,
responsibleUserId: null,
checkoutRunId: "run-storybook",
executionRunId: "run-storybook",
executionAgentNameKey: "codexcoder",
@@ -1452,6 +1453,9 @@ export const storybookSecrets: CompanySecret[] = [
{
id: "secret-openai",
companyId: "company-storybook",
scope: "company",
ownerUserId: null,
userSecretDefinitionId: null,
key: "openai_api_key",
name: "OPENAI_API_KEY",
provider: "local_encrypted",
@@ -1473,6 +1477,9 @@ export const storybookSecrets: CompanySecret[] = [
{
id: "secret-aws-prod",
companyId: "company-storybook",
scope: "company",
ownerUserId: null,
userSecretDefinitionId: null,
key: "prod_aws_deploy",
name: "PROD_AWS_DEPLOY_KEY",
provider: "aws_secrets_manager",
@@ -1494,6 +1501,9 @@ export const storybookSecrets: CompanySecret[] = [
{
id: "secret-github",
companyId: "company-storybook",
scope: "company",
ownerUserId: null,
userSecretDefinitionId: null,
key: "github_app_pem",
name: "GITHUB_APP_PEM",
provider: "local_encrypted",
@@ -1515,6 +1525,9 @@ export const storybookSecrets: CompanySecret[] = [
{
id: "secret-stripe-archived",
companyId: "company-storybook",
scope: "company",
ownerUserId: null,
userSecretDefinitionId: null,
key: "stripe_legacy",
name: "STRIPE_LEGACY",
provider: "vault",
@@ -1582,6 +1595,12 @@ export const storybookSecretAccessEvents: SecretAccessEvent[] = [
id: "evt-1",
companyId: "company-storybook",
secretId: "secret-openai",
userSecretDefinitionId: null,
secretScope: "company",
responsibleUserId: null,
credentialOwnerUserId: null,
credentialSubjectType: null,
credentialSubjectId: null,
version: 3,
provider: "local_encrypted",
actorType: "agent",
@@ -1600,6 +1619,12 @@ export const storybookSecretAccessEvents: SecretAccessEvent[] = [
id: "evt-2",
companyId: "company-storybook",
secretId: "secret-openai",
userSecretDefinitionId: null,
secretScope: "company",
responsibleUserId: null,
credentialOwnerUserId: null,
credentialSubjectType: null,
credentialSubjectId: null,
version: 3,
provider: "local_encrypted",
actorType: "system",
@@ -1618,6 +1643,12 @@ export const storybookSecretAccessEvents: SecretAccessEvent[] = [
id: "evt-3",
companyId: "company-storybook",
secretId: "secret-openai",
userSecretDefinitionId: null,
secretScope: "company",
responsibleUserId: null,
credentialOwnerUserId: null,
credentialSubjectType: null,
credentialSubjectId: null,
version: null,
provider: "local_encrypted",
actorType: "agent",
@@ -254,6 +254,9 @@ const storybookSecrets: CompanySecret[] = [
{
id: "secret-openai",
companyId: COMPANY_ID,
scope: "company",
ownerUserId: null,
userSecretDefinitionId: null,
key: "openai-api-key",
name: "OPENAI_API_KEY",
provider: "local_encrypted",
@@ -275,6 +278,9 @@ const storybookSecrets: CompanySecret[] = [
{
id: "secret-ops-webhook",
companyId: COMPANY_ID,
scope: "company",
ownerUserId: null,
userSecretDefinitionId: null,
key: "ops-webhook-token",
name: "OPS_WEBHOOK_TOKEN",
provider: "local_encrypted",
@@ -96,6 +96,7 @@ function makeHeartbeatRun(overrides: Partial<HeartbeatRun>): HeartbeatRun {
id: "run-fixture",
companyId,
agentId: "agent-codex",
responsibleUserId: null,
invocationSource: "on_demand",
triggerDetail: "manual",
status: "succeeded",
@@ -238,6 +238,7 @@ function makeIntegratedIssue(): Issue {
priority: "medium",
assigneeAgentId: null,
assigneeUserId: null,
responsibleUserId: null,
checkoutRunId: null,
executionRunId: null,
executionAgentNameKey: null,
@@ -202,6 +202,9 @@ const storybookSecrets: CompanySecret[] = [
{
id: "secret-openai",
companyId: "company-storybook",
scope: "company",
ownerUserId: null,
userSecretDefinitionId: null,
key: "openai-api-key",
name: "OPENAI_API_KEY",
provider: "local_encrypted",
@@ -223,6 +226,9 @@ const storybookSecrets: CompanySecret[] = [
{
id: "secret-github",
companyId: "company-storybook",
scope: "company",
ownerUserId: null,
userSecretDefinitionId: null,
key: "github-token",
name: "GITHUB_TOKEN",
provider: "local_encrypted",
@@ -78,6 +78,7 @@ const routine: RoutineDetailType = {
projectId: storybookProjects[0]?.id ?? null,
goalId: null,
parentIssueId: null,
responsibleUserId: null,
title: "Send the weekly digest to {{customer_name}}",
description:
"Compile last week's shipped work and email a digest to {{customer_name}} by {{deadline}}.\n\nKeep it to five bullets.",
@@ -149,6 +149,7 @@ function makeSnapshot(env: RoutineEnvConfig | null): RoutineRevisionSnapshotV1 {
projectId: null,
goalId: null,
parentIssueId: null,
responsibleUserId: null,
title: "Nightly digest",
description: "Summarize agent activity each night.",
assigneeAgentId: null,
@@ -170,6 +171,7 @@ function makeRoutine(latestRevisionId: string, latestRevisionNumber: number): Ro
projectId: null,
goalId: null,
parentIssueId: null,
responsibleUserId: null,
title: "Nightly digest",
description: "Summarize agent activity each night.",
assigneeAgentId: null,