text
stringlengths
3
8.33k
repo
stringclasses
52 values
path
stringlengths
6
141
language
stringclasses
35 values
sha
stringlengths
64
64
chunk_index
int32
0
273
n_tokens
int32
1
896
import { describe, expect, test } from "vitest"; import type { Evidence, GeneratedRepositoryEvidenceOutputDescriptorRecord, VerificationAcceptanceCriterionLinkRecord, VerificationCheckRecord, VerificationRunRecord, } from "../../db/schema"; import { generatedRepositoryFixtureIds, generatedRepositoryFixtur...
diplomarbeit-os
apps/studio/src/domain/verification/read-model.test.ts
TypeScript
ff8c3e8b0f19df6cce331e35094d4d180b45b5f5d1244209b5b718c40c4f364c
0
896
check) => check.checkKind === "test")).toEqual( expect.objectContaining({ status: "failed", evidenceStatus: "failed", evidenceValidity: "invalid", }), ); expect(summary.checks.find((check) => check.checkKind === "type-check")).toEqual( expect.objectContaining({ ...
diplomarbeit-os
apps/studio/src/domain/verification/read-model.test.ts
TypeScript
4fbaeddf886b046cff6630ae201bb4db1d4e4b4905a4e35b3f90d32603026fa9
1
896
, metadata: { revisionKey: currentRevisionKey, taskAttemptId: previousTaskAttemptId, }, }), verificationRunRecord({ verificationRunKey: "verification-run-current-revision:attempt:current", metadata: { revisionK...
diplomarbeit-os
apps/studio/src/domain/verification/read-model.test.ts
TypeScript
b5d4ef25ac270f89e2d3fd05ed7937942a42a268476be97a034b816bafc528d4
2
896
|SECRET_TOKEN|raw log|C:\/Users|\.env\.local/i, ); }); }); function verificationRecordsFor( checks: readonly VerificationCheckRecord[], ): VerificationRecordsForRun { return { runId: generatedRepositoryFixtureIds.run, verificationRuns: [verificationRunRecord()], verificationChecks: checks, ac...
diplomarbeit-os
apps/studio/src/domain/verification/read-model.test.ts
TypeScript
f30d983de94bd1b5155539e2f328de49f443903ab25fdb4006879c399c114abc
3
896
`, artifactId: null, evidenceId: evidenceId(checkKind), description: `${checkKind} verification output.`, metadata: {}, createdAt: timestamp, updatedAt: timestamp, }; } function criterionLinkRecord( check: VerificationCheckRecord, index: number, ): VerificationAcceptanceCriterionLinkRecor...
diplomarbeit-os
apps/studio/src/domain/verification/read-model.test.ts
TypeScript
6700060bc373c55abc279cae6ee525c2e0cf45c77a46c6c3d43df93d72ed7373
4
688
import type { VerificationCheckRecord } from "../../db/schema"; import type { EvidenceStatus, ValidityState } from "../state/types"; import { evaluateGeneratedRepositoryVerificationCompletion, type GeneratedRepositoryVerificationCompletionInput, } from "./completion"; import type { VerificationCheckKind, Verificati...
diplomarbeit-os
apps/studio/src/domain/verification/read-model.ts
TypeScript
f4d22b2795761bc4b2963eebb5d676eb933c35cf29766d1dbb09c6e17bc39edc
0
896
[], status: VerificationCheckOutcomeStatus, ): number { return checks.filter((check) => check.status === status).length; } function readSandboxExecutionId(record: VerificationCheckRecord | undefined): string | null { return record?.sandboxExecutionId ?? null; } function findSelectedCheckRecord(input: { readon...
diplomarbeit-os
apps/studio/src/domain/verification/read-model.ts
TypeScript
dc8d90421029568ba7920aa2fc4b20a7ec4e932595f5949975bd62d3a3fbdea3
1
327
import { describe, expect, test } from "vitest"; import type { Database } from "../../db/client"; import { type Evidence, type GeneratedRepositoryCommandSpecRecord, type GeneratedRepositoryEvidenceOutputDescriptorRecord, type GeneratedRepositoryRecord, type GeneratedRepositoryRevisionRecord, type ProjectSpe...
diplomarbeit-os
apps/studio/src/domain/verification/repository.test.ts
TypeScript
8fe18a91423caa5d3f0a9055b8431430e6efb6305898e63aed82ea29aee37419
0
896
environmentMetadata: { allowedVariableNames: ["CI"], policyKey: "generated-repository-env-policy", }, sandboxExecutionLogIds: [verificationFixtureIds.sandboxLog], evidenceOutputDescriptorId: verificationFixtureIds.buildOutputDescriptor, evidenceId: verificationFixtureIds.buildEvi...
diplomarbeit-os
apps/studio/src/domain/verification/repository.test.ts
TypeScript
5c9b33f704eef8c057f334a4fd2af3c6dd48ded683a250882db2cdf0a1cbeb74
1
896
["CI"], values: { SECRET_TOKEN: "top-secret-value", }, }, }, }), match: /environment metadata.*values/i, }, { name: "host path in environment metadata", input: verificationRunInput({ checkOverrides: {...
diplomarbeit-os
apps/studio/src/domain/verification/repository.test.ts
TypeScript
16447491d84cddc3120c976b4dcede8461bc92b06d3ce5f8c18ad77deec4d003
2
896
, "verification_runs", ]); expect(await readVerificationRecordsForRun(db, generatedRepositoryFixtureIds.run)).toEqual({ runId: generatedRepositoryFixtureIds.run, verificationRuns: [], verificationChecks: [], acceptanceCriterionLinks: [], }); }); }); function verificationRunI...
diplomarbeit-os
apps/studio/src/domain/verification/repository.test.ts
TypeScript
c8975243caded1cc256a85210cfa4d5ac5033add18c827871187ee992c673a0f
3
896
const stored: VerificationRecordingStore = { runs: [runRecord(generatedRepositoryFixtureIds.run), runRecord(crossRunId)], tasks: [ { id: generatedRepositoryFixtureIds.task, runId: options.taskRunId ?? generatedRepositoryFixtureIds.run, taskKey: "verification-aggregate-task", ...
diplomarbeit-os
apps/studio/src/domain/verification/repository.test.ts
TypeScript
f534bc6cabc5ab4ab2de6f955e4357c03168d3b1e147a6432bf684040e24d667
4
896
: "disposable-workspace-copy", workspaceDescriptor: "sandbox-workspaces/verification-build", workspaceSnapshotDescriptor: "generated/reference-app", teardownStatus: "completed", teardownRemoveContainer: true, teardownRemoveWorkspace: true, teardownKillOnTimeout: true, ...
diplomarbeit-os
apps/studio/src/domain/verification/repository.test.ts
TypeScript
5377fab6b4cfe4d30020b3aba464b0308fa6c59636c31eca362718609e004517
5
896
; if (table === verificationRuns) return [...stored.verificationRuns]; if (table === verificationChecks) return [...stored.verificationChecks]; if (table === verificationAcceptanceCriterionLinks) return [...stored.criterionLinks]; return []; } function deleteRows(table: unknown, stored: VerificationRecordingS...
diplomarbeit-os
apps/studio/src/domain/verification/repository.test.ts
TypeScript
8100b62e1922a7146bbacb2708b5e65607ffb3873bbf89e5c1c8a38757f0653c
6
896
output", descriptorState: "captured", pathDescriptor: `generated/reference-app/evidence/${commandKey}.json`, artifactId: null, evidenceId, description: "Captured verification output descriptor.", metadata: {}, createdAt: timestamp, updatedAt: timestamp, }; } function persistedVerifica...
diplomarbeit-os
apps/studio/src/domain/verification/repository.test.ts
TypeScript
3df39d4cadf0c1f91684ba0f45f568fcea74028f9a03db0902bdb977dfda5f4a
7
896
"00000000-0000-4000-8000-000000001911", sandboxExecution: "00000000-0000-4000-8000-000000001920", sandboxLog: "00000000-0000-4000-8000-000000001921", buildEvidence: "00000000-0000-4000-8000-000000001930", testEvidence: "00000000-0000-4000-8000-000000001931", buildOutputDescriptor: "00000000-0000-4000-8000-000...
diplomarbeit-os
apps/studio/src/domain/verification/repository.test.ts
TypeScript
6b87c791fa23e6dc0c23b5a5d12fa03a6213430cf76b53c6c45b8aee26cbb115
8
100
import { createHash } from "node:crypto"; import { asc, eq } from "drizzle-orm"; import type { Database } from "../../db/client"; import { type Evidence, type GeneratedRepositoryCommandSpecRecord, type GeneratedRepositoryEvidenceOutputDescriptorRecord, type GeneratedRepositoryRecord, type GeneratedRepositoryR...
diplomarbeit-os
apps/studio/src/domain/verification/repository.ts
TypeScript
cb11f14a2149da315875361674bf3a437172ae389917c10effc8a3e01429699f
0
896
`\.env\.local`, String.raw`[A-Za-z]:[\\/]`, String.raw`\/(?:Users|home|tmp|var|private|mnt|Volumes)\/`, `(?:${unsafeEnvironmentMetadataLogTerms.join("|")})`, String.raw`(?:SECRET|TOKEN|PASSWORD|PRIVATE_KEY|API_KEY|DATABASE_URL|CREDENTIAL)\s*[:=]`, ].join("|"), "i", ); export async function createVe...
diplomarbeit-os
apps/studio/src/domain/verification/repository.ts
TypeScript
79113f22ce384b812cbd6923cc8c6d2899e4d9ec5a2782b936216082b4dfae70
1
896
) { throw new Error(`Run ${runId} does not exist`); } const taskRows = (await db .select() .from(tasks) .where(eq(tasks.runId, runId)) .orderBy(asc(tasks.taskKey))) as Task[]; const projectSpecRows = (await db .select() .from(projectSpecs) .where(eq(projectSpecs.id, run.projectSpe...
diplomarbeit-os
apps/studio/src/domain/verification/repository.ts
TypeScript
96d3969aef0e252dbb26853c59ec2c62c72b3f491e3a8e91b1dd93313cdf3627
2
896
policy hash must be a sha256 digest"); } if (!verificationRunStatusSet.has(input.status)) { throw new Error(`Verification run status is not supported: ${input.status}`); } validateOptionalDuration(input.durationMs, "verification run duration"); validateOptionalDate(input.startedAtIso, "verification run st...
diplomarbeit-os
apps/studio/src/domain/verification/repository.ts
TypeScript
16597071fe7288619e99a1d52444b6d2192ca2f6302d4f06a3f2af2bead19dcd
3
896
command spec ${commandSpec.id} does not belong to revision ${revision.id}`); } if (commandSpec.commandKey !== check.commandKey) { throw new Error(`command spec ${commandSpec.id} does not match command ${check.commandKey}`); } if (commandSpec.commandKind !== check.commandKind) { throw new Err...
diplomarbeit-os
apps/studio/src/domain/verification/repository.ts
TypeScript
edb8d9a1c205d43e087024ddcccd48800db5f9d287dcb738889593f9e5d92f6c
4
896
"ProjectSpecPayloadV1.acceptanceCriteria", }, }; }); } function resolveProjectSpec(context: VerificationLinkContext, projectSpecId: string): ProjectSpec { const projectSpec = context.projectSpecsById.get(projectSpecId); if (projectSpec === undefined || context.run.projectSpecId !== projectSpecId) { ...
diplomarbeit-os
apps/studio/src/domain/verification/repository.ts
TypeScript
f7a3b93932e8ede5932d2391295d3e23a74d1faa71a00d02f9725e1c8d37bd78
5
896
(record === undefined || record.runId !== runId) { throw new Error(`${label} ${id} does not belong to run ${runId}`); } return record; } function hashAcceptanceCriterionText(value: string): string { return `sha256:${createHash("sha256").update(value, "utf8").digest("hex")}`; } function compareVerificationR...
diplomarbeit-os
apps/studio/src/domain/verification/repository.ts
TypeScript
6123cd21c0601673a2b84b80955c8f9d378ec9a8598ec94434a15aecfbf845dc
6
891
import { readFile } from "node:fs/promises"; import { describe, expect, test } from "vitest"; import type { Database } from "../../db/client"; import type { GeneratedRepositoryCommandSpecRecord } from "../../db/schema"; import type { GeneratedRepositoryContractRecords } from "../generated-repository/repository"; import...
diplomarbeit-os
apps/studio/src/domain/verification/runner.test.ts
TypeScript
a995546bbffef36552876a92bd5438b442adf35abc54c205b520146e854b534c
0
896
}), ]); expect(testCheck).toMatchObject({ checkKey: "test-required-check", commandKey: "test-command", generatedRepositoryCommandSpecId: runnerFixtureIds.testCommandSpec, sandboxExecutionId: "sandbox-test-fail", status: "failed", validity: "invalid", exitCode: 2, ...
diplomarbeit-os
apps/studio/src/domain/verification/runner.test.ts
TypeScript
49a73e309d4fb9854dc6408ef08f396bd87baa64652bb8e077a423383ea3bdf6
1
896
1]); expect(workspaceKeys.every((key) => /^verification-runner-[a-f0-9]{32}$/.test(key ?? ""))).toBe( true, ); expect(verificationRunKeys).toHaveLength(2); expect(verificationRunKeys[0]).toContain(`:attempt:${runnerFixtureIds.taskAttempt}`); expect(verificationRunKeys[1]).toContain(`:attempt:$...
diplomarbeit-os
apps/studio/src/domain/verification/runner.test.ts
TypeScript
c41d745e1774c45c0723a52af8abff7c058f7c2a7c382326040994cad9950d41
2
896
({ policyHash: persisted.policyHash, revisionKey: "rev-2026-06-24-contract", }); expect(check.acceptanceCriteria.length).toBeGreaterThan(0); } }); test("filters cross-run command specs and records unknown required checks without provider calls", async () => { const runner = awai...
diplomarbeit-os
apps/studio/src/domain/verification/runner.test.ts
TypeScript
87a23be079f2ecacf924f5c66115bb8792cbdb848e0f8525379f925762fe2013
3
896
test fixture"], manifestVersion: "generated-repository.manifest.v1", contractStatus: "contract present", validity: "valid", setupNotes: [], metadata: {}, createdAt: timestamp, updatedAt: timestamp, }, ], revisions: [ { id: generatedRepo...
diplomarbeit-os
apps/studio/src/domain/verification/runner.test.ts
TypeScript
ee4409d971106d7678a7fb0275a23a9cbd14cd9774337ba9349609372a589ea5
4
896
generatedRepositoryFixtureIds.currentRevision, commandKey, evidenceOutputKey: `${commandKey}-output`, descriptorState: "expected", pathDescriptor: `generated/reference-app/evidence/${commandKey}.json`, artifactId: null, evidenceId: null, description: `${commandKey} evidence output descriptor...
diplomarbeit-os
apps/studio/src/domain/verification/runner.test.ts
TypeScript
85148fe8f9866b7f28053ce5b26aa0b3625e7f88e84883a6d20a21e10ce56bfc
5
896
(input: { readonly checkKind: CreateVerificationRunForGeneratedRepositoryInput["checks"][number]["checkKind"]; readonly criterionIndex: number; }) { return { projectSpecId: runnerFixtureIds.projectSpec, criterionIndex: input.criterionIndex, generatedRepositoryRevisionId: generatedRepositoryFixtureIds....
diplomarbeit-os
apps/studio/src/domain/verification/runner.test.ts
TypeScript
f55b8e689489d67d411fde22724e8e6d6b9198003ebd16af080c71469de59b4c
6
896
", typeCheckCommandSpec: "00000000-0000-4000-8000-000000003103", testCommandSpec: "00000000-0000-4000-8000-000000003104", buildCommandSpec: "00000000-0000-4000-8000-000000003105", smokeCommandSpec: "00000000-0000-4000-8000-000000003106", unknownCommandSpec: "00000000-0000-4000-8000-000000003199", crossRun: ...
diplomarbeit-os
apps/studio/src/domain/verification/runner.test.ts
TypeScript
7d534575860ba37485e61552ed18289c5aa6468c63eb1026bff58cb3157108e5
7
90
import { createHash } from "node:crypto"; import type { Database } from "../../db/client"; import type { GeneratedRepositoryCommandSpecRecord, GeneratedRepositoryEvidenceOutputDescriptorRecord, GeneratedRepositoryRecord, GeneratedRepositoryRevisionRecord, } from "../../db/schema"; import { readGeneratedReposi...
diplomarbeit-os
apps/studio/src/domain/verification/runner.ts
TypeScript
05f857a01de9357badd747daecb73955022dab15f8e349fe97078aa2e2cffab0
0
896
); } else { checks.push( nonExecutedOutcomeToCheck({ outcome, policyHash, revision: scoped.revision, command: findScopedCommand(scoped.scopedCommands, outcome), outOfScopeCommand: scoped.outOfScopeCommandsByKind.get(outcome.checkKind), runner...
diplomarbeit-os
apps/studio/src/domain/verification/runner.ts
TypeScript
dbbd9900d3166f869964214417ac40dee250e113f052e50ff98d7675b4c0472b
1
896
.policyHash, revision: input.scoped.revision, reason: result.rejectionReason, runnerInput: input.input, }); } return sandboxResultToCheck({ outcome: input.outcome, command, descriptor: findEvidenceOutputDescriptor(input.scoped.records, command, input.scoped.revision), policyHa...
diplomarbeit-os
apps/studio/src/domain/verification/runner.ts
TypeScript
84de86c198553d39f150f791e2b49ceafe72f5ae2f3b5b6b27500265541fcfe9
2
896
}`, ); const checkKey = checkKeyForKind(input.outcome.checkKind); return { checkKey, checkKind: input.outcome.checkKind, commandKey: input.command.commandKey, commandKind: input.outcome.commandKind, generatedRepositoryCommandSpecId: input.command.id, sandboxExecutionId: null, evidence...
diplomarbeit-os
apps/studio/src/domain/verification/runner.ts
TypeScript
803a44d7b361238a9b24bf0a173fbc6668396b813c1f6434740c9181eb61b37b
3
896
if (result.status === "unavailable") { return "unavailable"; } return "failed"; } function validityForStatus(status: VerificationCheckOutcomeStatus): ValidityState { switch (status) { case "passed": return "valid"; case "stale": return "stale"; case "unsupported": case "deferred":...
diplomarbeit-os
apps/studio/src/domain/verification/runner.ts
TypeScript
f11761c7b53e1037504086951f231e7e76cc04d3e3762792e12e82e355131afd
4
896
, commandSupportState: input.outcome.commandSupportState, providerStatus: input.providerStatus, failureClass: input.failureClass, unavailableReason: input.unavailableReason, sandboxExecutionId: input.sandboxExecutionId, previousPolicyHash: input.outcome.previousPolicyHash, previousRevisionKe...
diplomarbeit-os
apps/studio/src/domain/verification/runner.ts
TypeScript
ca399fa81eaf68df95601fa923fc71ff69815b81a8488927e66e44c06ed35258
5
896
= null || typeof value !== "object" || !Array.isArray((value as JsonObject)[key])) { return []; } return ((value as JsonObject)[key] as readonly unknown[]).filter( (item): item is string => typeof item === "string", ); } function readStringValue(value: unknown, key: string): string | null { if (value ...
diplomarbeit-os
apps/studio/src/domain/verification/runner.ts
TypeScript
25916df53690714f838f85c862e76371167ada58a22c1c129825e4fb687e8db2
6
289
import { getTableConfig } from "drizzle-orm/pg-core"; import { describe, expect, test } from "vitest"; import { evidence, generatedRepositories, generatedRepositoryCommandSpecs, generatedRepositoryEvidenceOutputDescriptors, generatedRepositoryRevisions, projectSpecs, runs, sandboxExecutions, tasks, ...
diplomarbeit-os
apps/studio/src/domain/verification/schema.test.ts
TypeScript
c9bdddfcbdab4c8dcbaacd6cc85cfde633e7e04e55ee0eb35cfa41da81147ac0
0
896
, "stale_reason", "metadata", "started_at", "completed_at", "created_at", "updated_at", ]); expect(config.foreignKeys.map((foreignKey) => foreignKey.getName()).sort()).toEqual([ "verification_checks_evidence_id_evidence_id_fk", "verification_checks_evidence_output...
diplomarbeit-os
apps/studio/src/domain/verification/schema.test.ts
TypeScript
4ca696e7b30c2e9f72542b5531f271ded9aeac7b9aabfa2ee2615219cfcc24e2
1
678
import type { CommandSupportState, GeneratedRepositoryCommandKind, } from "../generated-repository/types"; import type { JsonObject, ValidityState } from "../state/types"; export const verificationCheckKindValues = [ "format", "lint", "type-check", "test", "build", "smoke verification", ] as const sati...
diplomarbeit-os
apps/studio/src/domain/verification/types.ts
TypeScript
6bd0d3aaf5423acacaa04a93b92bd4dfaf8f5282f025678ee75cf3f3b640cf2c
0
415
import type { CommandSupportState } from "../generated-repository/types"; import { commandSupportStateValues, generatedRepositoryCommandKindValues, } from "../generated-repository/types"; import { validityStateValues } from "../state/types"; import { verificationCheckKindValues, verificationCheckOutcomeStatusVa...
diplomarbeit-os
apps/studio/src/domain/verification/validators.ts
TypeScript
1f3b5b96d5096b65890d34010507352f23113120e6df832090f80087cd09e925
0
806
import { describe, expect, test } from "vitest"; import { buildFirstWalkingSliceFixture, evaluateWalkingSliceCompleteness, walkingSliceRequiredStepCategories, type WalkingSliceSummary, } from "."; function cloneFixture(): WalkingSliceSummary { return structuredClone(buildFirstWalkingSliceFixture()) as Walkin...
diplomarbeit-os
apps/studio/src/domain/walking-slice/completeness.test.ts
TypeScript
b56962543b528e2f827309e6b209585193e9d8a219d4d1f7f919ea2165487736
0
896
: "unsafe-descriptor", stepKey: "workspace-display", message: "Step workspace-display contains an unsafe descriptor.", }); }); test("fails when workspace display is absent from the slice", () => { const summary = cloneFixture(); const withoutWorkspace = { ...summary, steps: summ...
diplomarbeit-os
apps/studio/src/domain/walking-slice/completeness.test.ts
TypeScript
f04def24cab57f93a603931e0df6e6f603c349de5351508ea26664df9c4a09dc
1
194
import { walkingSliceRequiredStepCategories, type WalkingSliceCompleteness, type WalkingSliceCompletenessFinding, type WalkingSliceStep, type WalkingSliceStepCategory, type WalkingSliceSummary, } from "./types"; const unsafeDescriptorMarkers = [ ".env.local", ".planning", "gsd-core", "reference-cor...
diplomarbeit-os
apps/studio/src/domain/walking-slice/completeness.ts
TypeScript
9efbfd427fe0395ec32fb2b820800b72967c604e7d2127e3f6780c832b12ba3c
0
896
limitationKeys.length === 0) { findings.push({ code: "missing-limitation", stepKey: step.key, message: `Step ${step.key} is ${step.status} but has no explicit limitation key.`, }); } for (const limitationKey of step.limitationKeys) { if (!knownLimitationKeys.has(limitationKey)) { ...
diplomarbeit-os
apps/studio/src/domain/walking-slice/completeness.ts
TypeScript
1e639026f4dbd6dedcafd6cac324ce91722157affd9ae67531b7acdf9a495ae5
1
561
import type { WalkingSliceStep, WalkingSliceSummary } from "./types"; const firstSliceRevisionKey = "rev-2026-06-26-walking-slice"; export function buildFirstWalkingSliceFixture(): WalkingSliceSummary { return { sliceKey: "first-walking-slice", title: "First walking slice workspace", requestSummary: ...
diplomarbeit-os
apps/studio/src/domain/walking-slice/fixtures.ts
TypeScript
ecfe7a63e228935853234cc08edb90ab8fe28b956047a5073565349115addee2
0
896
, upstreamStepKeys: ["sandbox-execution"], outputKeys: ["verification-summary-first-walking-slice"], evidenceKeys: ["evidence-verification-build"], generatedRepositoryRevisionKey: firstSliceRevisionKey, requiresCurrentRevision: true, }), buildStep({ key: "brow...
diplomarbeit-os
apps/studio/src/domain/walking-slice/fixtures.ts
TypeScript
b8bd0596f67a18649a3618b22bcb5999d6826b2d6892cfd28696765306f2a160
1
896
> & Pick<WalkingSliceStep, "key" | "category">, ): WalkingSliceStep { return { title: input.title ?? input.key, summary: input.summary ?? input.key, status: input.status ?? "complete", productRecordIds: input.productRecordIds ?? [], upstreamStepKeys: input.upstreamStepKeys ?? [], outputKeys: i...
diplomarbeit-os
apps/studio/src/domain/walking-slice/fixtures.ts
TypeScript
793bae9092f5e24ffd53ae389d9c334a65d9305cd037b9b2070b672051fd0961
2
184
export { evaluateWalkingSliceCompleteness } from "./completeness"; export { buildFirstWalkingSliceFixture } from "./fixtures"; export { buildFirstWalkingSliceWorkspaceModel, type BuildFirstWalkingSliceWorkspaceModelOptions, type FirstWalkingSliceChangedFile, type FirstWalkingSliceSoftwareWorkerSummary, type F...
diplomarbeit-os
apps/studio/src/domain/walking-slice/index.ts
TypeScript
65a3a25facb2eb342a3d2db42b4d45a67ecfcbadc33f9e8c5a7aa864d607860a
0
90
export const walkingSliceRequiredStepCategories = [ "project-spec", "cited-retrieval", "task-graph", "software-worker", "generated-repository", "sandbox-execution", "verification", "browser-evidence", "limitation-report", "workspace-display", ] as const; export type WalkingSliceStepCategory = (type...
diplomarbeit-os
apps/studio/src/domain/walking-slice/types.ts
TypeScript
871894b325a8d177499230b552059dd5dedc744870f776be8129131488165a2f
0
612
import { describe, expect, test } from "vitest"; import { buildFirstWalkingSliceWorkspaceModel, type FirstWalkingSliceWorkspaceModel, type WalkingSliceSummary, } from "."; function replaceStep( summary: WalkingSliceSummary, stepKey: string, update: Partial<WalkingSliceSummary["steps"][number]>, ): WalkingS...
diplomarbeit-os
apps/studio/src/domain/walking-slice/workspace.test.ts
TypeScript
5ae17255dc85f09ae8b3260eafd4b64932ee41d064c9b9198b5596fa4e219681
0
896
id, sandboxExecutionId: model.sandboxRecords.executions[0]?.id, verificationRunId: model.verificationRecords.verificationRuns[0]?.id, }); }); test("includes citation, limitation, and workspace evidence in the composed view", () => { const model = buildFirstWalkingSliceWorkspaceModel(); cons...
diplomarbeit-os
apps/studio/src/domain/walking-slice/workspace.test.ts
TypeScript
09e81ce17e193ec96647d321b6f8f4df4d5faaf0d2112c08f1a08c689a75eb10
1
467
import type { Artifact, BrowserSmokeArtifactRecord, BrowserSmokeRunRecord, Citation, Decision, Event, Evidence, GeneratedRepositoryCommandLogDescriptorRecord, GeneratedRepositoryCommandSpecRecord, GeneratedRepositoryDependencyLockRecord, GeneratedRepositoryEvidenceOutputDescriptorRecord, Generat...
diplomarbeit-os
apps/studio/src/domain/walking-slice/workspace.ts
TypeScript
2d9586c9f5a4cdff67772be2e46d0fba62767ca4e97f548ce40701b81ca3e04b
0
896
.disposable-copy", "command"), capabilityRequirement(`${commandKey}-env`, "env.allow-list", "command"), capabilityRequirement(`${commandKey}-timeout`, "resource.timeout", "command"), capabilityRequirement(`${commandKey}-logs`, "logs.bounded-sanitized", "command"), ]; } const ids = { project: id(1401), ...
diplomarbeit-os
apps/studio/src/domain/walking-slice/workspace.ts
TypeScript
69442b44be3428582d5e4bf0c66c90d811e2aaac6ccaea57ee7f6174f5a8c07a
1
896
: ids.projectSpec, projectId: ids.project, version: 1, title: "HTL timetable planning workspace", scope: "Generate one inspectable timetable planning workspace with evidence-linked checks and browser smoke proof.", status: "approved", validity: "valid", payload: { acceptanceCrite...
diplomarbeit-os
apps/studio/src/domain/walking-slice/workspace.ts
TypeScript
0a73f248186e70ac6ddc8768b4701316a39d92e29a8aa574d12aab0f5b188f7d
2
896
ids.verificationTask, "verification-plan-contract"], ] as const; const evidenceCaptureEvents = buildEvidenceRecords().map((record, index) => buildEvent({ id: id(1530 + index), sequence: 7 + index, eventType: "evidence.captured", evidenceId: record.id, payload: { status: "ca...
diplomarbeit-os
apps/studio/src/domain/walking-slice/workspace.ts
TypeScript
33af02d08e0c428b6d52139c4ce947a0bca904bc04b4135edc85a66c0ec59744
3
896
: "project-spec", title: "Approved ProjectSpec", uri: "urn:diplomarbeit-os:artifact:first-slice:project-spec", }), buildArtifact({ id: id(1481), taskId: ids.softwareWorkerTask, artifactKey: "generated-app-source", kind: "generated-source-descriptor", title: "Generated a...
diplomarbeit-os
apps/studio/src/domain/walking-slice/workspace.ts
TypeScript
4e76af5439c9aee609efec8a766c42917bbf6fb5eb9f0b1b9138a2731606a04a
4
896
urn:diplomarbeit-os:evidence:first-slice:software-worker-result", }), buildEvidence({ id: id(1464), taskId: ids.softwareWorkerTask, artifactId: id(1481), evidenceKey: "evidence-generated-repository-revision", kind: "generated-repository", summary: "Generated repository has a ...
diplomarbeit-os
apps/studio/src/domain/walking-slice/workspace.ts
TypeScript
3ba4e5543a49d82a02ecaa7b6595a12296e57900b077a34e558614190f50e6be
5
896
ids.projectSpecAttempt, ids.projectSpecTask, 1, 2), buildAttempt(ids.citedRetrievalAttempt, ids.citedRetrievalTask, 1, 2), buildAttempt(ids.softwarePlanAttempt, ids.softwarePlanTask, 1, 3), buildAttempt(ids.softwareWorkerAttempt, ids.softwareWorkerTask, 1, 3), buildAttempt(ids.verificationAttemp...
diplomarbeit-os
apps/studio/src/domain/walking-slice/workspace.ts
TypeScript
7015e0aa316e55cfab6f5c2556774a56209a000369dd262e5596c15dc6fc3e9b
6
896
through sandbox and verification records.", ], metadata, createdAt: at(0), updatedAt: at(0), } as GeneratedRepositoryRecord; } function buildGeneratedRepositoryRevision(current: boolean): GeneratedRepositoryRevisionRecord { return { id: current ? ids.currentRevision : ids.parentRevision, ru...
diplomarbeit-os
apps/studio/src/domain/walking-slice/workspace.ts
TypeScript
02d9a7e83d98a17cb0fe8175ce7af1ebf8bf025c53ea17eb48fe881b8cdaa730
7
896
web-http/health", descriptorState: "expected", reason: null, metadata: capabilityMetadata( [ capabilityRequirement("first-slice-service-http", "service.single-http", "runtime-service"), capabilityRequirement("first-slice-service-health", "service.health", "runtime-service"), ], ...
diplomarbeit-os
apps/studio/src/domain/walking-slice/workspace.ts
TypeScript
2bfb6a41aead93f9003372a3bea9adfb7b67d5f36e83cf1c8f02ab820028c9a9
8
896
: SandboxExecutionRecordsForRun { return { runId: ids.run, executions: [ { id: ids.sandboxExecution, runId: ids.run, taskId: ids.softwareWorkerTask, taskAttemptId: ids.softwareWorkerAttempt, generatedRepositoryId: ids.repository, generatedRepositoryRevisio...
diplomarbeit-os
apps/studio/src/domain/walking-slice/workspace.ts
TypeScript
a7f44c614faa6c19f309e69d86c39c7789a4cdecec62a04469144416a1c7d222
9
896
: verificationPolicyHash, status: "passed", validity: "valid", exitCode: 0, durationMs: isBuild ? 1_200 : 100, environmentMetadata: { allowedVariableNames: ["CI"], deniedVariableNames: ["DATABASE_URL", "MODEL_CREDENTIAL", "SECRET_TOKEN"], environmentValueStorage: "names-only", ...
diplomarbeit-os
apps/studio/src/domain/walking-slice/workspace.ts
TypeScript
7de7495796077e65c420b1e9c4da7d2113be3db71b33af2043d3e8bc55d273c1
10
896
, updatedAt: at(61), } as BrowserSmokeArtifactRecord; } function environmentPolicy(): JsonObject { return { policyKey: "phase-14-first-slice-env-policy", requiredVariableNames: ["CI"], secretVariableNames: [], summary: "Stores environment variable names only; values are never included.", }; }...
diplomarbeit-os
apps/studio/src/domain/walking-slice/workspace.ts
TypeScript
42a0eadca90e9b2d653d27efb8e1c4d7d2168cb48195107746acd4561cc13b2a
11
478
# Artifact Source Model Phase 17 adds the minimum source-backed academic artifact model for ART-01 and ART-02. It does not render final documents. It records deterministic artifact source versions and dependency rows that later renderers can consume after they add their own export, coherence, and review gates. ## Sco...
diplomarbeit-os
docs/artifact-source-model.md
Markdown
257aef391447d21055d31e1ec2e851468a76944afc240a102fb3d2e376886d1f
0
896
rows, reconstructs current run state, and passes `artifactSourceSummary` into `buildWorkspaceShellModel`. The workspace remains read-only. It can show artifact source metadata and metrics, but it must not expose controls to render, download, rerun, repair, package, open host folders, inspect raw logs, or live-generate...
diplomarbeit-os
docs/artifact-source-model.md
Markdown
3546ebef790096588de3fdefc1e44067149f5ad36efcf0291f9767cef312472b
1
396
# Browser Evidence Contract Phase 13 defines product-owned browser smoke verification and visual evidence for generated web applications. It connects a sandbox-owned generated app target to browser automation, runs a typed smoke flow with runtime and visual checks, records safe evidence descriptors, and exposes a read...
diplomarbeit-os
docs/browser-evidence.md
Markdown
6710512ee7968154bf1fe084607fe33de61724f784180dc3f566205e27f08ec2
0
896
protected runtime markers, or unsafe descriptors The browser layer must not start generated-project processes on the host. It must not call package managers, parse `commandLine` into a launch command, import Docker providers directly, or use a host fallback when sandbox service metadata is absent. Unavailable live bro...
diplomarbeit-os
docs/browser-evidence.md
Markdown
f90c3823d5e40687f7bacb94870e9ac5b3a36a1d08da580c9cc1a97b50f5802f
1
896
for Phase 13. ## Cross-Subsystem Boundaries - Generated repository records provide revision identity, runtime service descriptors, and evidence-output linkage. They do not execute browser verification by themselves. See [generated-repository-contract.md](generated-repository-contract.md). - Sandbox records provide th...
diplomarbeit-os
docs/browser-evidence.md
Markdown
76a6140475f868595a58e65afcc0ad887cdd06e39bc340e37c2f91504edebf6d
2
629
# Cited Retrieval Baseline Phase 6 closes the first deterministic cited retrieval and anti-regurgitation baseline for Diplomarbeit OS. It proves RET-01 through RET-04 over a deliberately small Phase 5 derived-knowledge fixture, not over the full retained source corpus. Read this with [Derived Knowledge Store](derived...
diplomarbeit-os
docs/cited-retrieval-baseline.md
Markdown
2d0cc95415911d939816b69e9321e418c03d9b3def0c14d23251fbd30b6309e3
0
896
Regurgitation Gate Phase 6 uses a deterministic LCS/ROUGE-L-style token overlap check through `checkAntiRegurgitation`. It is a Phase 06 fixture policy, not a legal plagiarism threshold, not an academic misconduct detector, and not a substitute for later artifact review. The exact policy is: - Block when `lcsTokenCo...
diplomarbeit-os
docs/cited-retrieval-baseline.md
Markdown
eb82185f7e98b5bb61f256657be02931b1886e2ecdcae733243a0977e5720458
1
267
# Coherence Review Phase 20 adds a deterministic cross-artifact coherence review for the first walking-slice workspace. It checks whether code, evidence, generated documents, visual artifacts, run instructions, evaluation descriptors, and showcase descriptors agree with the same product records. ## Scope The Phase 2...
diplomarbeit-os
docs/coherence-review.md
Markdown
3c07c0db5d0acb8664a80e0fcdf03dcb90fda3ca70d4ca35d5971a9294f9f3cf
0
751
# Derived Knowledge Store Phase 5 defines the protected-corpus and derived-knowledge boundary for Diplomarbeit OS. It stores source-grounded metadata and validated fixture records in product-owned tables without making `reference-corpus/`, `.planning/`, or pre-reset files writable runtime state. Read this with [Produ...
diplomarbeit-os
docs/derived-knowledge-store.md
Markdown
678952c72eaa25be27581e912c9550a0ad588b0cac3b19eeeccaa8d8b520c9e7
0
896
migration artifacts, Drizzle metadata, schema exports, guard files and tests, fixture/readback tests, integration-test env gating, documentation, and the pre-reset compatibility note. It does not read `.env.local`, open a network connection, and does not require a live database. `bun run check:retrieval:evidence` is d...
diplomarbeit-os
docs/derived-knowledge-store.md
Markdown
e7c7c6ce8b2b234c90f24dc16fcf4f2227f3867d5590c659ce788cf844dde143
1
292
# Product Deterministic Verification Phase 12 closes VER-01 through VER-04 with deterministic generated-project checks, product Evidence capture, completion gating, and acceptance-criteria traceability. The implementation lives under `apps/studio/src/domain/verification` and is checked by `bun run check:verification:e...
diplomarbeit-os
docs/deterministic-verification.md
Markdown
bf9fccd0c25cbf9686a12f03130d214a10187f5a48b2bf825ca8da3e8f49db4b
0
896
| D-07 | Completion is computed from the required-check policy; incomplete required checks keep generated work incomplete. | | D-08 | Generated repository descriptor states remain distinct: expected, missing, unsupported, stale, and captured. | | D-09 | revision and policy staleness are both blocking. Old revision IDs ...
diplomarbeit-os
docs/deterministic-verification.md
Markdown
6dca3949b613b4fb76e17796f50f50e77c211ce1eca153f29861578fe59d2943
1
896
run verification run/check links for browser smoke evidence. Verification checks remain command and product Evidence records; browser smoke flows, screenshots, traces, viewport metadata, console/page/network diagnostics, and BROW-04 categories belong to the browser evidence domain. The boundary stays one-way: determin...
diplomarbeit-os
docs/deterministic-verification.md
Markdown
2fe01b30b6e97af28f74954f057b0f0ce88266da29bd3ab70e1321916b838b21
2
255
# Directional Evaluation Phase 21 closes EVAL-01 through EVAL-04 with a deterministic, criterion-level `Einschaetzung` over product records. The implementation lives under `apps/studio/src/domain/evaluation` and is checked by `bun run check:evaluation:evidence`. ## Scope The directional evaluation report is product...
diplomarbeit-os
docs/directional-evaluation.md
Markdown
f6246f233dceb2bd316a0c40c99028751e572b938df0489c45fa9969bfe456ea
0
687
# Document Rendering Pipeline Phase 18 closes ART-03 and ART-04 for editable academic document sources and descriptor-safe exports. It builds full document records from product-owned artifact source records, not from GSD planning files, renderer output, raw protected text, or prompt-only prose. ## Scope ART-03 is im...
diplomarbeit-os
docs/document-rendering-pipeline.md
Markdown
e4a0af80fc49eb460b0829683ef9096b5622c36847d5cfbbb3627f7ced8a0973
0
896
gate proves source, tests, workspace exposure, documentation, package wiring, and product-boundary negatives. It runs after `bun run check:artifact-source:evidence` and before `bun run check:docs` and `bun run check:secrets` in the root `bun run check` chain. The gate does not claim live DOCX/PDF/HTML export execution...
diplomarbeit-os
docs/document-rendering-pipeline.md
Markdown
14ed8587948776ad817e3d815e45a5f98c7d39e3913a72c66e3dc70d1a5f8a45
1
113
# Durable State Evidence Phase 2 defines the first product-owned durable-state contract for Diplomarbeit OS. It stores inspectable product records for an autonomous run, but it does not make GSD planning files part of the product runtime. Read this with [Product Runtime Boundary](product-runtime-boundary.md) and [Tec...
diplomarbeit-os
docs/durable-state.md
Markdown
6eaa7d3c03d37135df5347516fe04d7d16d1dbbeb4fe3cd14c9c1cc269b13435
0
896
-----------|------------------| | `bun run db:migrate` | `DIPLOMARBEIT_DATABASE_URL` | Applies the product migration to the configured runtime database. | | `bun run db:migrate:test` | `DIPLOMARBEIT_TEST_DATABASE_URL` | Applies the product migration to the configured test database. | | `bun run db:test` | `DIPLOMARBEIT...
diplomarbeit-os
docs/durable-state.md
Markdown
911376f73ef47843673ecbb6219ffb085033ece93c165fb4faa836e0291f13af
1
266
# Final Showcase and Packaging Phase 24 adds a read-only final showcase package manifest for the first walking slice. The surface packages product records as descriptors, hashes, evidence keys, limitations, and risks so the handoff can be inspected without claiming live archive creation. ## Acceptance Evidence SHOW-...
diplomarbeit-os
docs/final-showcase-packaging.md
Markdown
d6cb74e975bfea7a5c90de0586b8de03d1f57b671ba95162b1f0537f50459185
0
414
# Generated Repository Contract Evidence Diplomarbeit OS Phase 9 defines the product-owned generated repository contract. It proves GEN-01 through GEN-04 with stack-neutral repository records, required command manifest descriptors, revision-linked evidence-output descriptors, limitation reports, and a read-only worksp...
diplomarbeit-os
docs/generated-repository-contract.md
Markdown
0a56eba4c782c31f7d2464a7b04f65be71c13a4bfdf9ad895d84daa1db9e77ba
0
896
, or treat these fields as proof that install, test, build, run, smoke verification, or package commands succeeded. Unsupported and missing command specs may omit both `commandLine` and `argv` only when they include an explicit support state and reason. That keeps unsupported generated-project capabilities visible wit...
diplomarbeit-os
docs/generated-repository-contract.md
Markdown
b5237c6d2b55cd69fdb16118c36207f7d8ae46721347193eddb1431141565b89
1
896
](deterministic-verification.md). The verification runner reads required command specs for format, lint, type-check, test, build, and smoke verification, executes only described `argv` specs through `executeGeneratedRepositoryCommandInSandbox`, and persists explicit outcomes for missing, unsupported, stale, unavailable...
diplomarbeit-os
docs/generated-repository-contract.md
Markdown
4a944ac1e9ad13ff993a89fc6d205700a085e35bc8382882131be12ff61d8dca
2
841
# Knowledge Base Scale-Up and Retrieval Quality Phase 16 extends the Phase 5 derived knowledge store and the Phase 6 cited retrieval baseline toward RET-05. It does this with staged, deterministic evidence first: German chunking, source-backed concept resolution, retrieval quality fixtures, anti-regurgitation readines...
diplomarbeit-os
docs/knowledge-scale-up.md
Markdown
83e485125fa4a35ba84238d00285bf3ae35d44e90ffd594437e21e254becb602
0
896
, German display terms, normalized keys, source-link IDs, bridge IDs, status, and reason. It does not invent concept links from lexical or semantic similarity. ## Retrieval Quality Fixtures `evaluateRetrievalQualityFixture` runs German query cases for: - prior-project retrieval - SYP concept retrieval - `verwendeteK...
diplomarbeit-os
docs/knowledge-scale-up.md
Markdown
e038b41162a0b24a1eecd106478c18f3ab0d53391ae483c077c140d37c5fd185
1
896
`` `bun run check:knowledge-scale:evidence` is the Phase 16 deterministic closure gate. It checks the German chunking and scale fixture contracts, source-backed concept resolution, retrieval quality fixture signals, scaled anti-regurgitation coverage, deferred embedding migration policy, documentation references, pack...
diplomarbeit-os
docs/knowledge-scale-up.md
Markdown
d6a5ebe6ef2fd8dca66dec3fa7a5c6377befbed595ca0570e92c434cdb9018eb
2
268
# Model and Tool Adapter Evidence Diplomarbeit OS Phase 8 defines the first product-owned model and tool adapter boundary. It proves AI-01 through AI-05 with a narrow Vercel AI SDK adapter, deterministic structured-output validation, sanitized model-call metadata, durable failure classes, closed tool permissions, and ...
diplomarbeit-os
docs/model-and-tool-adapter.md
Markdown
a6ac22336d938dc71bc663372a5294dc93967b1c9827ea774e6a80fec46a2846
0
896
Use these root commands for Phase 8 closure: ```bash bun run check:orchestration:evidence bun run check:ai-adapter:evidence bun run check:docs bun run check:secrets bun run check ``` `bun run check:ai-adapter:evidence` is the deterministic AI-01 through AI-05 closure gate. It checks the adapter allow-list, package bo...
diplomarbeit-os
docs/model-and-tool-adapter.md
Markdown
fd74048797f5b0d438c9b80f5bc4aad69a0f22dd6e0fa9a8f56a69c2b9b0dda9
1
209
# Multi-Worker Orchestration Phase 22 adds deterministic multi-worker orchestration planning for ORCH-05 and WORKER-04. The feature is a product-owned role and scheduling model. It does not run workers concurrently, adopt a workflow service, call a model, launch a sandbox, or execute generated-project commands. ## S...
diplomarbeit-os
docs/multi-worker-orchestration.md
Markdown
6997cf2886b8768a71b6e0a67ea0467693b533878ed48507d2abf71c6fd9bfeb
0
896
raw screenshots, or raw recordings as multi-worker runtime state. ## Verification Use: ```bash bun --cwd apps/studio vitest run --config ../../vitest.config.ts src/domain/orchestration/worker-roles.test.ts src/domain/orchestration/parallel-scheduler.test.ts src/domain/orchestration/parallel-view.test.ts src/workspac...
diplomarbeit-os
docs/multi-worker-orchestration.md
Markdown
238168d95dad461bd63761475176817deb37e5a4041e3955fb6fefacec38a05f
1
164
# Product Runtime Boundary Diplomarbeit OS product runtime code is separate from the GSD development harness. The visible Phase 1 baseline must truthfully show: Product runtime separate from GSD harness. ## Runtime Rules - The product runtime has no GSD runtime dependency. - `.planning/` files are development artif...
diplomarbeit-os
docs/product-runtime-boundary.md
Markdown
4ccac9fda9849925d95df97a164a72b1eef8fcb2c92fc823cd6bfaafb207dfe5
0
896
without executing it. `commandLine` and `argv` are inert command-spec descriptor fields, not executable commands. Phase 9 has no generated-project execution, no sandbox backend, no worker dispatch, no browser evidence, no package creation, no live verification, and no repair loop. Expected, missing, unsupported, and s...
diplomarbeit-os
docs/product-runtime-boundary.md
Markdown
da3fb674dbc89aa1b0d89fb2b89530da7f24e413aa52d5bcb78860baea56d1a5
1
896
and package-wiring gate for VER-01 through VER-04. It does not claim browser evidence, screenshots, traces, repair loops, multi-worker orchestration, packaging, real generated-project tooling adoption, or live host execution. Verification Evidence must store bounded sanitized logs, sandbox log references, exit codes, ...
diplomarbeit-os
docs/product-runtime-boundary.md
Markdown
e7de148b3c04c0a032ac0bc429326b508f1b2573cf59643a51fb9938861e4650
2
896
dependency coverage, citation and evidence counts, export descriptors, source format, language, section count, validity, and stale reason. It must not expose render, download, rerun, repair, package, host-folder, raw-log, raw-trace, raw-screenshot, `.planning/`, `.env.local`, GSD runtime, protected corpus, or live arti...
diplomarbeit-os
docs/product-runtime-boundary.md
Markdown
508aa234ed3106b59cc01ff3d1a54b40b70d69afee4b932580f099b18ae5b2d6
3
896
showcase packaging. ## Product Coherence Review Phase 20 coherence review records are product runtime state when composed through the coherence domain. The contract is documented in [coherence-review.md](coherence-review.md). The coherence review evaluates descriptor-backed product records with deterministic rules f...
diplomarbeit-os
docs/product-runtime-boundary.md
Markdown
a6b518833ed68d95b42cb33bb32bca03903e3f976ba85316d3e51271df8e8680
4
896
`, `.env.local`, GSD runtime, protected corpus, host-path, or generated-project execution controls. `bun run check:multi-worker:evidence` is the deterministic source, test, documentation, package-wiring, workspace, E2E, and product-boundary gate for ORCH-05 and WORKER-04. It does not claim live concurrent execution, w...
diplomarbeit-os
docs/product-runtime-boundary.md
Markdown
54bc374064e97c3775b04426b57465a831d234e6d51da48ef5e98201f5343002
5
896