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 { access } from "node:fs/promises"; import { readJsonLines } from "./corpus-io"; import { tokenizeSparse } from "./sparse"; import type { CorpusChunk, RetrievalFilters, RetrievalResult } from "./types"; const defaultLocalChunksPath = ".planning/corpus/index/chunks.jsonl"; async function fileExists(path: string...
diplomarbeit-ideen
lib/retrieval/local.ts
TypeScript
74954c5b087879b6c5678194fc4354446dda74df18447745d5d9f2e916bf2d8e
0
896
: number; chunksPath?: string; }): Promise<RetrievalResult[]> { const chunks = await loadLocalChunks(options.chunksPath); const selected = chunks.filter((chunk) => { if (chunk.payload.source_path !== options.sourcePath) { return false; } if (options.thesisId && chunk.payload.thesis_id !== optio...
diplomarbeit-ideen
lib/retrieval/local.ts
TypeScript
b31e7d8739e897d8191807f27c65453ecea1faf4a0e8878f6dc6334e3df03b8f
1
166
import { QdrantClient } from "@qdrant/js-client-rest"; import type { CorpusChunk, DenseVector, RetrievalFilters, RetrievalResult, SparseVector, } from "./types"; export const qdrantVectorNames = { dense: "text_dense", sparse: "text_sparse", } as const; export const qdrantPayloadIndexes = [ { field_na...
diplomarbeit-ideen
lib/retrieval/qdrant.ts
TypeScript
bcb0a7b8d5685e57c6b77a3f2831e671895033b7689080e1c72bc2d900c89c67
0
896
> { const batchSize = options.batchSize ?? 64; for (let offset = 0; offset < options.chunks.length; offset += batchSize) { const chunks = options.chunks.slice(offset, offset + batchSize); const points = chunks.map((chunk, index) => toQdrantPoint( chunk, options.denseVectors[offset + i...
diplomarbeit-ideen
lib/retrieval/qdrant.ts
TypeScript
8fada8913f40cb771e89667be4411193b04c947649bfb63d59e270b19503b030
1
896
right) => (left.payload.chunk_index ?? 0) - (right.payload.chunk_index ?? 0) ); } export async function countCollectionPoints( client: QdrantLikeClient, collectionName: string ): Promise<number> { const result = await client.count(collectionName, { exact: true }); return result.count; }
diplomarbeit-ideen
lib/retrieval/qdrant.ts
TypeScript
1b4ed53a9618fa12a3f5802bd7dc13dce362e10ec9ed1e8cbe5b3adab903f049
2
70
import { validateProjectEnv } from "../env/project"; import { GeminiEmbeddingProvider } from "./embeddings"; import { getLocalSourceContext, getLocalThesisContext, searchLocalChunks, } from "./local"; import { createQdrantClientFromEnv, queryHybridPriorWork, scrollPriorWorkByFilter, } from "./qdrant"; impor...
diplomarbeit-ideen
lib/retrieval/service.ts
TypeScript
c782a573a1449cc8426a623a9e8cc0835d7d4723a6906e8f02aad48e5e50bbe0
0
896
; if (canUseCloudRetrieval(env)) { const validation = validateProjectEnv(env); if (validation.env) { const client = createQdrantClientFromEnv(env); return { source: "qdrant", results: await scrollPriorWorkByFilter(client, { collectionName: validation.env.QDRANT_COLLECTIO...
diplomarbeit-ideen
lib/retrieval/service.ts
TypeScript
e994975a66182e75ebe1f54585f5cabd269b2cadbc069431e06d017810d85ca1
1
252
import type { CorpusChunk, SparseVector } from "./types"; export type SparseCorpusStats = { documentCount: number; averageDocumentLength: number; documentFrequencies: Record<string, number>; }; const tokenPattern = /[\p{L}\p{N}][\p{L}\p{N}_-]{1,}/gu; const splitPattern = /[_-]+/g; const camelBoundaryPattern = ...
diplomarbeit-ideen
lib/retrieval/sparse.ts
TypeScript
1a8d57b639256856627f2c38118b136aed83d256a38f5104a3b2eb5a5911eb05
0
896
: chunks.length, averageDocumentLength: chunks.length === 0 ? 0 : totalTokens / chunks.length, documentFrequencies, }; } export function encodeSparseText( text: string, stats?: SparseCorpusStats ): SparseVector { const tokens = tokenizeSparse(text); const counts = new Map<string, number>(); ...
diplomarbeit-ideen
lib/retrieval/sparse.ts
TypeScript
dabd506052fe3c8b3ac16ebd89006bc868b3bdb472fd1f070be53cee7ef658a8
1
410
export type DocumentType = | "thesis" | "report" | "planning" | "proposal" | "presentation" | "poster" | "idea" | "pdf-other" | "word-document" | "image" | "video" | "logo" | string; export type TextYield = "none" | "low" | "medium" | "high" | "unknown"; export type ExtractedCorpusPage = { ...
diplomarbeit-ideen
lib/retrieval/types.ts
TypeScript
30c468e2d2f753e49b755a08fd4210345211269d416d2553a095e966aaf62a6a
0
391
{ "name": "Diplomarbeit Ideen", "short_name": "DA Ideen", "description": "KI-gestuetzte Themenfindung fuer HTL-Diplomarbeiten mit Archivbelegen.", "lang": "de-AT", "start_url": "/", "display": "standalone", "background_color": "#ffffff", "theme_color": "#ffffff", "icons": [ { "src": "/images...
diplomarbeit-ideen
public/manifest.webmanifest
Web Manifest
6e9958b90fd915279858fd52af9b4f66cd01c0761c89f339f3b38420c04485e8
0
134
#!/usr/bin/env python3 """Corpus discovery workflow for Thesis Idea Engine. This script intentionally uses the Python standard library for archive handling and optional local inspection libraries when available. It does not index the corpus or commit schema decisions; it produces evidence for approval. """ from __fut...
diplomarbeit-ideen
scripts/corpus_discovery.py
Python
283166911f748e9e72bba5182f53e12eb5f2fcb617c649847700f06d72117bd2
0
896
) or "<none>" for entry in entries if not entry.is_dir() ) top_level = collections.Counter( pathlib.PurePosixPath(entry.filename).parts[0] if pathlib.PurePosixPath(entry.filename).parts else "<root>" for entry in entries ) return { ...
diplomarbeit-ideen
scripts/corpus_discovery.py
Python
6d5904985601d217f37b5d278986df39355ed878f7a33c0510195b86353510a4
1
896
= [part.lower() for part in parts] if "syp-projekte" in lowered: idx = lowered.index("syp-projekte") if len(parts) > idx + 1: return parts[idx + 1] if len(parts) >= 2: return parts[-2] return None def build_inventory(raw_root: pathlib.Path) -> list[dict[str, Any]]: ...
diplomarbeit-ideen
scripts/corpus_discovery.py
Python
1c08167f85d130ea4af59fa6e0e11b64b3a931495648cb1918952a8e8fbe81a3
2
896
" elif chars_per_page >= 350: text_yield = "medium" elif chars_per_page > 0: text_yield = "low" else: text_yield = "none" result.update( { "page_count": page_count, "sampled_pages": sampled, "...
diplomarbeit-ideen
scripts/corpus_discovery.py
Python
2c7193199b0ebb9d6594212f6fb535bb58dbd2d8d5321d36f0168b6e7debc541
3
896
height"] = streams[0].get("height") if fmt.get("duration"): result["duration_seconds"] = round(float(fmt["duration"]), 2) except Exception as exc: # noqa: BLE001 result["error"] = f"{type(exc).__name__}: {exc}" return result def summarize_inventory(records: list[dict[str, Any]]) -...
diplomarbeit-ideen
scripts/corpus_discovery.py
Python
0ce9770db4ce3e88fab0464a59033d26474a7d0cf2f3a9fcdef8615806bd6c68
4
896
", }, "metadata_schema": [ "thesis_id", "project_slug", "title", "document_type", "source_path", "file_name", "file_ext", "year", "language", "authors", "advisor", ...
diplomarbeit-ideen
scripts/corpus_discovery.py
Python
ca77e711b5775a7ac5890662fd7c5e3be9eee4430d036cf55ac9e040446c6ee4
5
896
, and videos. This phase does **not** approve indexing. The downstream ingestion and Qdrant schema remain blocked until the approval manifest is accepted or revised. ## Archive Evidence - Archive type: `{archive_info['archive_type']}` - Archive size: {archive_info['size_bytes']} bytes - ZIP entries: {archive_info['e...
diplomarbeit-ideen
scripts/corpus_discovery.py
Python
059670ca2c61d504f15217a899006f497c3e94b749b3584b6d4d7dd84b856540
6
896
help="Raw extraction directory.") parser.add_argument("--force-extract", action="store_true", help="Extract again even if the completion marker exists.") parser.add_argument("--pdf-pages", type=int, default=5, help="Number of leading PDF pages to sample.") args = parser.parse_args(argv) root = pathlib....
diplomarbeit-ideen
scripts/corpus_discovery.py
Python
cdc568fc3c3b268004178712357c79c6bc22f2a57ba89d894f07dfd10f826b07
7
896
"status": "pending_user_approval", "phase": 1, "blocked_downstream": True, "approval_required_for": recommendations["blocked_until_approval"], "proposed_choices": recommendations, "evidence_files": [ ".planning/corpus/archive-inspection.json", ".planning/c...
diplomarbeit-ideen
scripts/corpus_discovery.py
Python
7c4435252398a0c22489dcb0f0882ad47e2a10bc31f20444c0d421cdbe3c73ce
8
285
import { readFile } from "node:fs/promises"; import { evaluateProposalMarkdown } from "../lib/quality/idea-quality"; function readArg(name: string): string | undefined { const index = process.argv.indexOf(name); if (index === -1) { return undefined; } return process.argv[index + 1]; } async function main(...
diplomarbeit-ideen
scripts/evaluate-idea-quality.ts
TypeScript
e4b04288a648b19a87793333d6cf1ef52e9a4ba1bb482baadfbabf5c834b9664
0
255
from __future__ import annotations import argparse import json import re import sys import zipfile from collections import Counter from datetime import datetime, timezone from pathlib import Path from typing import Any from xml.etree import ElementTree as ET try: import fitz # PyMuPDF except Exception: # pragma...
diplomarbeit-ideen
scripts/extract-corpus-text.py
Python
d2ab922a19314794615d77729d27518999e528d9e53a9ee70afb0d642efe3ac1
0
896
str, Any]], str]: if fitz is None: raise RuntimeError("PyMuPDF (fitz) is required for PDF extraction.") pages: list[dict[str, Any]] = [] with fitz.open(path) as document: for index, page in enumerate(document, start=1): pages.append({"page_number": index, "text": normalize_text(p...
diplomarbeit-ideen
scripts/extract-corpus-text.py
Python
f8c90dcb374966024d4f156cdfe03264e15eb1c67cd05cd269022f80c3137f4b
1
896
add_argument("--out", default=".planning/corpus/extracted/documents.jsonl") parser.add_argument("--summary", default=".planning/corpus/extracted/summary.json") parser.add_argument("--limit", type=int, default=None) args = parser.parse_args() manifest_path = Path(args.manifest) raw_root = Path(args....
diplomarbeit-ideen
scripts/extract-corpus-text.py
Python
161c686344519f0f845770aa9d2eefb32525a91b6d3010805dfe8a8147714d17
2
449
import { existsSync } from "node:fs"; import { mkdir, writeFile } from "node:fs/promises"; import path from "node:path"; import { config } from "dotenv"; import { validateProjectEnv } from "../lib/env/project"; import { chunkExtractedDocuments } from "../lib/retrieval/chunking"; import { loadExtractedDocuments, wri...
diplomarbeit-ideen
scripts/ingest-corpus.ts
TypeScript
6bb0f13f432bdcbdccef6737058960f80bab36ed2e1e55aa5d1f027c5fe5cd3f
0
896
offset += batchSize) { const batch = chunks.slice(offset, offset + batchSize); vectors.push( ...(await provider.embedTexts(batch.map((chunk) => chunk.text))) ); } return vectors; } async function main() { const options = parseOptions(); const documents = (await loadExtractedDocuments(options...
diplomarbeit-ideen
scripts/ingest-corpus.ts
TypeScript
fa2463bbdb51eeafe95161f2b907f4a35d4cd4c8d72ab9d785fa8583396a38ed
1
464
import { existsSync } from "node:fs"; import { config } from "dotenv"; import postgres from "postgres"; import { validateProjectEnv } from "../lib/env/project"; import { countCollectionPoints, createQdrantClientFromEnv, } from "../lib/retrieval/qdrant"; import { searchPriorWorkRecords } from "../lib/retrieval/servi...
diplomarbeit-ideen
scripts/prod-check.ts
TypeScript
d9dce281d482cdd94dd2e948e8fd481d7ad2e013fc0021395f1a6091a6a60f4e
0
625
import { existsSync } from "node:fs"; import path from "node:path"; import { config } from "dotenv"; import { isPlaceholderValue, projectEnvKeys, validateProjectEnv, } from "../lib/env/project"; function readArg(name: string): string | undefined { const index = process.argv.indexOf(name); if (index === -1) ...
diplomarbeit-ideen
scripts/validate-env.ts
TypeScript
32b6add44298d9b72cc8e488bf242da8bab8e8797bc24d365929fb047823d9bc
0
652
import { expect as baseExpect, test as baseTest } from "@playwright/test"; import { ChatPage } from "./pages/chat"; type Fixtures = { chatPage: ChatPage; }; export const test = baseTest.extend<Fixtures>({ chatPage: async ({ page }, use) => { const chatPage = new ChatPage(page); await use(chatPage); }, }...
diplomarbeit-ideen
tests/fixtures.ts
TypeScript
8b700e74dd4a61997881ce4dc458369d4ef3cc5a18cb99031e4a7b01b8aef91f
0
92
import { generateId } from "ai"; import { getUnixTime } from "date-fns"; export function generateRandomTestUser() { const email = `test-${getUnixTime(new Date())}@playwright.com`; const password = generateId(); return { email, password, }; } export function generateTestMessage() { return `Test mess...
diplomarbeit-ideen
tests/helpers.ts
TypeScript
4ce59e905707ee106590c014437877f5b6c67cbb75e5419a00552ebdd20ec890
0
85
import { expect, test } from "@playwright/test"; const CHAT_URL_REGEX = /\/chat\/[\w-]+/; const ERROR_TEXT_REGEX = /error|failed|trouble/i; test.describe("Chat API Integration", () => { test("sends message and receives AI response", async ({ page }) => { await page.goto("/"); const input = page.getByTestId...
diplomarbeit-ideen
tests/e2e/api.test.ts
TypeScript
f6ce47513e496895964892d3faec9f77c951a4d00e292167a1dc34fe429d8da7
0
830
import { expect, test } from "@playwright/test"; test.describe("Authentication Pages", () => { test("login page renders correctly", async ({ page }) => { await page.goto("/login"); await expect(page.getByPlaceholder("user@acme.com")).toBeVisible(); await expect(page.getByLabel("Password")).toBeVisible();...
diplomarbeit-ideen
tests/e2e/auth.test.ts
TypeScript
6650b471c151daa1c7b0d06c823af7a1ae7cbed1b96bcf159cb2ac82a2c86774
0
409
import { expect, test } from "@playwright/test"; test.describe("Chat Page", () => { test("home page loads with input field", async ({ page }) => { await page.goto("/"); await expect(page.getByTestId("multimodal-input")).toBeVisible(); }); test("can type in the input field", async ({ page }) => { awa...
diplomarbeit-ideen
tests/e2e/chat.test.ts
TypeScript
5a8dc34773b1c4fb920216afdd06b65392ab581fe1cedef0466c1f1b3cc601c8
0
608
import { expect, test } from "@playwright/test"; const MODEL_BUTTON_REGEX = /Kimi|Codestral|Mistral|DeepSeek|GPT|Grok/i; test.describe("Model Selector", () => { test.beforeEach(async ({ page }) => { await page.goto("/"); }); test("displays a model button", async ({ page }) => { const modelButton = page...
diplomarbeit-ideen
tests/e2e/model-selector.test.ts
TypeScript
31a4b1d10ce5239a85bea8af04388edba526341a33f71b6a6d566fc86759a624
0
636
import { expect, test } from "@playwright/test"; const requiresCloud = process.env.E2E_FULL_CLOUD !== "1"; test.describe("thesis ideation flows", () => { // biome-ignore lint/suspicious/noSkippedTests: Full thesis flows require cloud credentials and live model access. test.skip( requiresCloud, "Requires c...
diplomarbeit-ideen
tests/e2e/thesis-flows.test.ts
TypeScript
97f50ee365cf47cfa6f4a49b349917641626d27841c1cd0868a2c26bb575cd56
0
567
import type { Page } from "@playwright/test"; const MODEL_BUTTON_REGEX = /Kimi|Codestral|Mistral|DeepSeek|GPT|Grok/i; export class ChatPage { page: Page; constructor(page: Page) { this.page = page; } async goto() { await this.page.goto("/"); } async createNewChat() { await this.page.goto("/...
diplomarbeit-ideen
tests/pages/chat.ts
TypeScript
a0dc4ce710a057d5e3e024e16ed53954051fc874d2ce77f5e5f682a4d3e1ffdd
0
400
import type { LanguageModelV3StreamPart } from "@ai-sdk/provider"; const mockUsage = { inputTokens: { total: 10, noCache: 10, cacheRead: 0, cacheWrite: 0 }, outputTokens: { total: 20, text: 20, reasoning: 0 }, }; export function getResponseChunksByPrompt( _prompt: unknown, includeReasoning = false ): Language...
diplomarbeit-ideen
tests/prompts/utils.ts
TypeScript
573b736f277e8d3131c1f4fcbd9ca31153d9302da6b8511667d0de7a0d7e1748
0
249
import { describe, expect, it } from "vitest"; import { DEFAULT_CHAT_MODEL, GATEWAY_GEMINI_CHAT_MODEL, GATEWAY_SONNET_CHAT_MODEL, gatewayEntryToChatModel, getActiveModels, getDefaultChatModel, isAllowedChatModelId, isGatewayModelId, prioritizeChatModels, } from "../../lib/ai/models"; describe("AI mod...
diplomarbeit-ideen
tests/unit/ai-models.test.ts
TypeScript
eb87567b78390087fbad6ecc2c2adc57520d87be28bc4971315ca040fb9cfb0d
0
541
import { describe, expect, it } from "vitest"; import { projectEnvDefaults, validateProjectEnv } from "../../lib/env/project"; const validEnv = { AUTH_SECRET: "local-auth-secret", BLOB_READ_WRITE_TOKEN: "local-blob-token", POSTGRES_URL: "postgres://user:password@localhost:5432/thesis_ideas", REDIS_URL: "redis:...
diplomarbeit-ideen
tests/unit/env.test.ts
TypeScript
50735e1b392952e2710479aeaf6bdcd0d57d198f6b2e83672c334d3577626964
0
771
import { describe, expect, it } from "vitest"; import { evaluateProposalMarkdown } from "../../../lib/quality/idea-quality"; const groundedProposal = `# Adaptive Feedback for Programming Exercises ## Abstract This diploma thesis proposes an adaptive feedback prototype for programming exercises. ## Related prior work...
diplomarbeit-ideen
tests/unit/quality/idea-quality.test.ts
TypeScript
be6827df8c0a3f88b6b0ce458ecc34f7df033c60895ef402b05dab005edeb9fd
0
448
import { describe, expect, it } from "vitest"; import { chunkExtractedDocument } from "../../../lib/retrieval/chunking"; import type { ExtractedCorpusDocument } from "../../../lib/retrieval/types"; const baseDocument: ExtractedCorpusDocument = { advisor: null, authors: [], document_type: "thesis", extraction_m...
diplomarbeit-ideen
tests/unit/retrieval/chunking.test.ts
TypeScript
1c65a369ae48b1509ae68c669b0c85825ef40e9d6af634da987195c7074d1246
0
445
import { mkdtemp, rm } from "node:fs/promises"; import { tmpdir } from "node:os"; import path from "node:path"; import { afterEach, describe, expect, it } from "vitest"; import { writeJsonLines } from "../../../lib/retrieval/corpus-io"; import { getLocalSourceContext, getLocalThesisContext, searchLocalChunks, } f...
diplomarbeit-ideen
tests/unit/retrieval/local.test.ts
TypeScript
fd5caa5db3e10ba431968eb8a11e018184525ca479394d8d6c043d074498fc13
0
892
import { describe, expect, it } from "vitest"; import { buildPayloadFilter, ensureHybridCollection, qdrantVectorNames, queryHybridPriorWork, toQdrantPoint, } from "../../../lib/retrieval/qdrant"; import type { CorpusChunk } from "../../../lib/retrieval/types"; const chunk: CorpusChunk = { id: "11111111-111...
diplomarbeit-ideen
tests/unit/retrieval/qdrant.test.ts
TypeScript
5dda92723e1ee9970d9b8717c7f81b17f2145bba2abf1da4b2aa8b0a86c1ecfb
0
896
=> Promise.resolve({ count: 0 }), query: (_collectionName: string, args: unknown) => { requests.push(args); return Promise.resolve({ points: [ { id: chunk.id, score: 0.9, payload: { ...chunk.payload, text: chunk.text }, },...
diplomarbeit-ideen
tests/unit/retrieval/qdrant.test.ts
TypeScript
0235cbb29ddd1b1996dd317af1e5be0d553f716ff21bec95a35dd3089f126336
1
283
import { describe, expect, it } from "vitest"; import { buildSparseCorpusStats, encodeSparseText, hashTokenToSparseIndex, tokenizeSparse, } from "../../../lib/retrieval/sparse"; import type { CorpusChunk } from "../../../lib/retrieval/types"; const chunk = (id: string, text: string): CorpusChunk => ({ id, ...
diplomarbeit-ideen
tests/unit/retrieval/sparse.test.ts
TypeScript
4c965b3f4e297d6a1df8599b3dc5486b9b667754a61ce589a82b10359959f02d
0
553
* text=auto eol=lf *.bmp binary *.gif binary *.ico binary *.jpg binary *.jpeg binary *.pdf binary *.png binary *.webp binary
diplomarbeit-os
.gitattributes
Git Attributes
189586192c3d254e8a5866b92aa0f911b5e504a31fa7665b16a892a386c5c5d0
0
39
.DS_Store Thumbs.db *.swp *.swo *~ .idea/ .vscode/ *.code-workspace .env .env.* !.env.example !.env.local.example node_modules/ .next/ out/ dist/ build/ coverage/ .turbo/ .cache/ .tmp/ tmp/ temp/ *.tsbuildinfo *.log playwright-report/ test-results/ blob-report/ .devtools/ .gsd-browser/ .agent-browser/ graphify-out/...
diplomarbeit-os
.gitignore
Git Ignore
37b048906cd34cd7a9e515265f66e7f4aa34b731581ce730524c4991e84931ac
0
124
# AGENTS.md ## Authority Use this order when instructions conflict: 1. The current user request. 2. Approved GSD phase context and plans under `.planning/`. 3. `PROJECT-BRIEF.md`. 4. `GSD-INTAKE.md`. 5. This file. 6. Existing code conventions. Do not bypass GSD discussion, planning, verification, or review gates me...
diplomarbeit-os
AGENTS.md
Markdown
3d15c6ddbe4637b5c1cbad3be4c5c33ccc5224640b2344dc824ef52e66a1350d
0
863
{ "$schema": "https://biomejs.dev/schemas/2.5.0/schema.json", "vcs": { "enabled": true, "clientKind": "git", "useIgnoreFile": true }, "files": { "includes": [ "**", "!.planning", "!reference-corpus", "!node_modules", "!.next", "!.turbo", "!coverage", ...
diplomarbeit-os
biome.json
JSON
00f05c644f4fab860011076139a1f74d30da2a38660967f6efd9f73dea225f31
0
274
import { config } from "dotenv"; import { defineConfig } from "drizzle-kit"; config({ path: ".env.local", quiet: true }); export default defineConfig({ dialect: "postgresql", schema: "./apps/studio/src/db/schema.ts", out: "./apps/studio/drizzle/migrations", });
diplomarbeit-os
drizzle.config.ts
TypeScript
dfd32ca829b2fa688035967a4b45515ce7ed32f4ced7046bb5f5fd0df25b144b
0
84
# GSD Intake for Diplomarbeit OS This file supplements `PROJECT-BRIEF.md` during `/gsd-new-project`. The brief is the canonical product seed. This intake explains how GSD should interpret it when creating `PROJECT.md`, `REQUIREMENTS.md`, `ROADMAP.md`, `STATE.md`, and the initial configuration. ## Starting State This...
diplomarbeit-os
GSD-INTAKE.md
Markdown
c1480fdb3dc3c0026898d4e75e8e1ad4ecfb1e3637be7f011addae5c66baa791
0
896
TypeScript - Vercel AI SDK as the central model and tool-calling layer Use stable releases current at the implementation phase. Do not adopt a beta agent abstraction as the foundation without a spike, compatibility evidence, and a fallback. ### Strong Defaults - Bun - a real monorepo when package boundaries justify ...
diplomarbeit-os
GSD-INTAKE.md
Markdown
b189c85734879d17720d96795c8cf31ceb3c189bed19fa8440d1501dc0ce6296
1
896
Do not turn these rules into awkward writing. The objective is natural, specific, grounded technical prose. ## Recommended Initial GSD Posture Use the current equivalent of: - interactive mode - fine granularity - quality model profile - research enabled - research before discussion questions - plan checks enabled -...
diplomarbeit-os
GSD-INTAKE.md
Markdown
e96deaa559ebe3d877c2ba2ce9e15115d494cf4ac946d1f64dd8052dbce49e4c
2
310
{ "name": "diplomarbeit-os", "private": true, "packageManager": "bun@1.3.6", "workspaces": [ "apps/*" ], "scripts": { "dev": "turbo run dev --filter=studio", "start": "turbo run start --filter=studio", "e2e:server": "bun run build && bun --cwd apps/studio next start --hostname 127.0.0.1 --po...
diplomarbeit-os
package.json
JSON
cbded8bcf77ae90eaf48e2a8bbd2f29ebcdbf9f19e9d70acf88f2a9a5acb458f
0
896
": "bun scripts/check-software-worker-evidence.mjs", "check:verification:evidence": "bun scripts/check-verification-evidence.mjs", "check:browser-evidence:evidence": "bun scripts/check-browser-evidence-evidence.mjs", "check:walking-slice:evidence": "bun scripts/check-walking-slice-evidence.mjs", "check:...
diplomarbeit-os
package.json
JSON
f862e9947d5625e70ae95fbe1c8ba5f743196b73791bf832b5fe3b2f483f60d4
1
439
import { defineConfig, devices } from "@playwright/test"; export default defineConfig({ testDir: "tests/e2e", fullyParallel: false, forbidOnly: Boolean(process.env.CI), retries: process.env.CI ? 2 : 0, workers: 1, reporter: process.env.CI ? [["dot"], ["html", { open: "never" }]] : "list", use: { base...
diplomarbeit-os
playwright.config.ts
TypeScript
7feb23f74b65d259999de1d06a1590736e28c206a8e4f374bb5b6f40d582a9be
0
204
# Diplomarbeit OS > Canonical project seed for GSD. This document defines the product vision, required capabilities, quality bar, known foundations, constraints, and research boundaries. GSD should use it to create the project requirements and roadmap. It is intentionally detailed about outcomes and deliberately flexi...
diplomarbeit-os
PROJECT-BRIEF.md
Markdown
6beae6e7caeabeb0dbc0a48473f58d100ed853b02fb27b63b0eaf7de0be1620b
0
896
audiences: - The project team building Diplomarbeit OS. - A cooperating teacher who understands HTL requirements and can judge authenticity. - Technical reviewers who need to inspect the implementation and evidence. - Students and teachers evaluating the future copilot concept. - Demo viewers who need to understand th...
diplomarbeit-os
PROJECT-BRIEF.md
Markdown
f2c6d6aeebbfe1ffe29ba23c41d119d04d0bcaef4b603493b216f1ade8b9d0a1
1
896
. The knowledge base and the source-code intelligence graph are separate concerns. One models the academic corpus and project knowledge. The other helps agents navigate the current codebase. ### 2. Agent Orchestration The system needs a lead orchestrator and role-specialized workers. Likely roles include product and...
diplomarbeit-os
PROJECT-BRIEF.md
Markdown
e268fa893703a3ecd28175882e53ba867e1cd474e04ea5c110a841b661f625bc
2
896
distinguish plausibility from evidence. Evaluation should combine deterministic checks, model-based review, and human-readable evidence. It should cover software correctness, completeness, academic structure, source grounding, artifact quality, internal consistency, and the official assessment criteria that can be rep...
diplomarbeit-os
PROJECT-BRIEF.md
Markdown
3d3278e6c8588371076c1ffd908d1d8d4741c08bd90185719b8a844a55de860f
3
896
- no emoji - no Unicode em dash character - no stock placeholder names - no generic AI filler - no unnecessary self-reference - no excessive comments - no decorative section inflation - no first-person singular in formal academic artifacts - no verbatim reuse of prior-thesis prose These rules should be represented in ...
diplomarbeit-os
PROJECT-BRIEF.md
Markdown
9cb1f380bb7274669accd916ac3794dbccdbb1dd276a7db0bce455c8a9b224e8
4
896
heavyweight compliance platform - cryptographic provenance graphs, hash chains, or elaborate approval-token systems - a generic managed workflow product - mandatory dependence on third-party cloud orchestration - a text-only chatbot as the main product - demo-only generated apps that cannot be run - authoritative autom...
diplomarbeit-os
PROJECT-BRIEF.md
Markdown
3b4c33a041379d85ac1409a54fedee0fd2767898a900219a7691d2962a773fc7
5
896
keep phase scope small enough for deep planning and verification - include phase-specific research where current tools or architecture matter - reach an integrated vertical slice early - expand the vertical slice toward full corpus, orchestration, sandbox, artifacts, evaluation, and showcase - make migration and recove...
diplomarbeit-os
PROJECT-BRIEF.md
Markdown
f765f60a273d70dd5466b959595617285e8363ab1b2701c369b7ac59cff76c8a
6
245
# Diplomarbeit OS Diplomarbeit OS is the product runtime for an Autonomous Studio that turns a sufficiently specified HTL diploma-project request into runnable software, grounded academic artifacts, verification evidence, and an inspectable handoff workspace. This repository is currently closing Phase 25. The impleme...
diplomarbeit-os
README.md
Markdown
c8dbb69b3e0274a754e54a857d125f8f36233bf3478467c4874644c5162a3e94
0
896
, anti-regurgitation fixture policy, and `bun run check:retrieval:evidence` gate. Read [Knowledge Base Scale-Up and Retrieval Quality](docs/knowledge-scale-up.md) for the Phase 16 staged German chunking, source-backed concept resolution, retrieval quality fixtures, anti-regurgitation scale coverage, deferred embedding...
diplomarbeit-os
README.md
Markdown
c01f93d3f61ae3db26add9ef293d1d6697d41b636a995263d9cddd9887ea0f36
1
896
roles, browser evidence, verification scoring, repair loops, package creation, direct AI SDK calls, package manager execution from worker code, or unrestricted host execution. ## Deterministic Verification Read [Product Deterministic Verification](docs/deterministic-verification.md) for the Phase 12 VER-01 through VE...
diplomarbeit-os
README.md
Markdown
7fa5414c8f9abd872c5f0a5d60cd0da8f76ec6c847bf41b82cd24255bfdab97f
2
896
:evidence` closure gate. Phase 19 records visual source descriptors only. It does not run live renderers, persist binary exports, create media packages, expose host paths, add download/package controls, or claim rendered PPTX/PDF/PNG/SVG/MP4 files. ## Coherence Review Read [Coherence Review](docs/coherence-review.md...
diplomarbeit-os
README.md
Markdown
d6f00d7cbcb2d1ccfe13ceb9055e58ab18e8fe5383b023e41df276bbbeb75aa6
3
781
{ "$schema": "https://json.schemastore.org/tsconfig", "compilerOptions": { "allowJs": false, "allowSyntheticDefaultImports": true, "declaration": false, "esModuleInterop": true, "forceConsistentCasingInFileNames": true, "isolatedModules": true, "module": "esnext", "moduleResolution":...
diplomarbeit-os
tsconfig.base.json
JSON
5ada30227ecadbe4fe65765146176643c45fe55979a9e2b17215daa43d7a10a9
0
134
{ "$schema": "https://turborepo.dev/schema.json", "tasks": { "dev": { "cache": false, "persistent": true }, "start": { "cache": false, "persistent": true }, "build": { "dependsOn": ["^build"], "outputs": [".next/**", "!.next/cache/**", "!.next/dev/**"] }, ...
diplomarbeit-os
turbo.json
JSON
99913af5d011437133f687e8e451b862a87004a8de04c43e9f82e08d22c36a71
0
229
/// <reference types="vitest/config" /> import { defineConfig } from "vitest/config"; export default defineConfig({ test: { environment: "node", include: ["src/**/*.test.ts"], exclude: ["node_modules", ".next", "playwright-report", "test-results"], fileParallelism: false, globals: false, wat...
diplomarbeit-os
vitest.config.ts
TypeScript
06259bef2910b6284e302f3f2e3e4eb2044be439cad88a84a720f503e79d405f
0
98
{ "runtime": "codex", "mode": "interactive", "granularity": "standard", "model_profile": "balanced", "model_overrides": { "gsd-planner": "gpt-5.5", "gsd-debugger": "gpt-5.5", "gsd-verifier": "gpt-5.5", "gsd-code-reviewer": "gpt-5.5", "gsd-executor": "gpt-5.3-codex", "gsd-phase-research...
diplomarbeit-os
.planning/config.json
JSON
91b347eba198c386b8f168e1bb0ed8d217717fbfff519c958954345cdf0c54fc
0
860
# Milestones: Diplomarbeit OS ## v1.0 Autonomous Studio **Shipped:** 2026-06-28 **Delivered:** A complete Autonomous Studio walking product for Austrian HTL diploma-project generation, verification, academic artifact production, coherence review, directional evaluation, final showcase packaging descriptors, and futu...
diplomarbeit-os
.planning/MILESTONES.md
Markdown
c6cd4eb0672d86a17009fb33b63571aafd12b6519313a9989c72a518ccb43c97
0
588
# Diplomarbeit OS ## What This Is Diplomarbeit OS is an autonomous engineering studio for Austrian HTL diploma projects. A user supplies a project idea and constraints, and the system plans, researches, builds, verifies, documents, evaluates, and showcases a coherent diploma-project result with inspectable evidence. ...
diplomarbeit-os
.planning/PROJECT.md
Markdown
069bbac798c2d0977e9376c08c895a23f80323fcba8939b597e49aa41630532d
0
896
## Constraints - **Fixed baseline**: Next.js App Router, TypeScript, and the Vercel AI SDK remain the product direction. - **Strong defaults**: Bun, Drizzle, Postgres-compatible schemas, local deterministic checks, Vitest, Playwright, Biome, and product-owned adapters. - **Secret handling**: `.env.local` values must n...
diplomarbeit-os
.planning/PROJECT.md
Markdown
5e40aee88d5995a1997d09390c54f5a336c67be3defdfdb0a9cb69001a6435f3
1
411
# Project Retrospective A living document updated after each milestone. Lessons feed forward into future planning. ## Milestone: v1.0 - Autonomous Studio **Shipped:** 2026-06-28 **Phases:** 25 | **Executable plans:** 122 | **Recorded tasks:** 206 **Git range:** 459 commits from 2026-06-21 to 2026-06-28 ### What Was...
diplomarbeit-os
.planning/RETROSPECTIVE.md
Markdown
5002c9a4fc69e1b7b02e1c371166b82c5716337816d6b1a9eb0ab19d5345a27b
0
896
| 25 | Established the autonomous studio product boundary, evidence model, verification gates, and milestone archival process. | ### Cumulative Quality | Milestone | Unit Tests | E2E Tests | Requirements | Evidence Gate | | --- | ---: | ---: | ---: | --- | | v1.0 | 595 | 21 | 85/85 | Full `bun run check` passed | ##...
diplomarbeit-os
.planning/RETROSPECTIVE.md
Markdown
98c226b2013a6c88d363c33222049e1fdc0d1492ed09b764a54a7e7da2c3a796
1
150
# Roadmap: Diplomarbeit OS ## Milestones - [x] **v1.0 Autonomous Studio** - Phases 1-25 shipped 2026-06-28. Full archive: `.planning/milestones/v1.0-ROADMAP.md`. ## Current Roadmap No active milestone is planned. Start the next milestone with `$gsd-new-milestone`. That workflow should create fresh requirements and...
diplomarbeit-os
.planning/ROADMAP.md
Markdown
25facf99b0e1753c73276894fbff20bb677a4c8281b1fa82f1afdd50f5faf4cc
0
464
--- gsd_state_version: 1.0 milestone: v1.0 milestone_name: Autonomous Studio current_phase: null current_phase_name: None status: Awaiting next milestone stopped_at: Milestone v1.0 completed and archived last_updated: "2026-06-28T16:01:53.5447764+02:00" last_activity: 2026-06-28 last_activity_desc: Milestone v1.0 compl...
diplomarbeit-os
.planning/STATE.md
Markdown
7de40ef01de01db50e2a8d3c063780f8c36b990e70042923d10f6f832079a572
0
569
# API Surface > Generated from `.planning/intel/api-map.json`. Do not edit by hand. > **Incomplete:** api-map.json has no entries (intel extraction is regex/JS-only or not yet populated). > Treat absence here as "unknown", not "does not exist".
diplomarbeit-os
.planning/intel/API-SURFACE.md
Markdown
e897fedd273ef0fa835b3580f537032ff9bbfcd20898bfb3bb4cce0c9f44c4c6
0
71
--- milestone: v1.0 audited: 2026-06-28T15:59:21.2299283+02:00 status: passed scores: requirements: 85/85 phases: 25/25 executable_plans: 122/122 phase_verifications: 25/25 integration: 6/6 flows: 21/21 gaps: requirements: [] integration: [] flows: [] tech_debt: [] notes: - "gsd-tools roadmap analyz...
diplomarbeit-os
.planning/milestones/v1.0-MILESTONE-AUDIT.md
Markdown
a26d87eb749f1261ce861b08e32d861049ae3566100906fcb24fd9d18b210d71
0
896
Pass | `/intake` e2e tests cover feasible, clarification, ambiguous, unsupported, rejected, desktop, and mobile flows. | | ProjectSpec to walking slice | Pass | Walking-slice domain and e2e tests show ProjectSpec, retrieval, task graph, worker, sandbox, verification, browser evidence, and workspace state together. | | ...
diplomarbeit-os
.planning/milestones/v1.0-MILESTONE-AUDIT.md
Markdown
34ec4b346a863b691cc188c9c3c7dc3893bad29f681739af6ea1d6ae2bd8771f
1
398
# Requirements Archive: v1.0 Autonomous Studio **Archived:** 2026-06-28 **Status:** SHIPPED The live `.planning/REQUIREMENTS.md` file is removed at v1.0 close so the next milestone can start with a fresh requirements definition. --- # Requirements: Diplomarbeit OS **Defined:** 2026-06-19 **Core Value:** One suffic...
diplomarbeit-os
.planning/milestones/v1.0-REQUIREMENTS.md
Markdown
3c172ffd92db6c2a0f15f1f1bdcdfcafb27fb3ac5b4573f5c0f9e1b67a106178
0
896
can represent `verwendeteKonzepte` links between prior projects and theory concepts. - [x] **KNOW-05**: System can recover or compare useful derived knowledge from the pre-reset tag only after recording compatibility and migration evidence. ### Retrieval - [x] **RET-01**: System can ingest a deliberately small protec...
diplomarbeit-os
.planning/milestones/v1.0-REQUIREMENTS.md
Markdown
27efb0260d9b969cf8e034c1d1ea807408a2dd0ee25df3d386691171e681be5e
1
896
backend through a provider contract without rewriting product orchestration. ### Software Worker - [x] **WORKER-01**: System can dispatch one software worker through a typed task contract to create or modify a small generated application. - [x] **WORKER-02**: Worker can emit generated-repository metadata, command man...
diplomarbeit-os
.planning/milestones/v1.0-REQUIREMENTS.md
Markdown
8f956404fb33731beb5822f703ec33ee4e95440e5e1cae96d25b3ae545fdc588
2
896
can generate presentation and visual artifacts including Ideenpraesentation, Zwischenpraesentation, Abschlussprasentation material, poster, Jahrbucheintrag, UI mockups or design evidence, and media packaging. ### Coherence - [x] **COH-01**: System can check names, scope, terminology, architecture, features, measureme...
diplomarbeit-os
.planning/milestones/v1.0-REQUIREMENTS.md
Markdown
cb1c20df1f534799a42c2d13a1ec727d7366fa7a05f4655470271b4b701f7904
3
896
| |---------|--------| | Authoritative automated grading | The project can provide evidence-backed `Einschaetzung`, not a binding grade. | | Heavy compliance platform | Security, isolation, secret handling, provenance metadata, and honest reporting are required, but compliance is not the product thesis. | | Cryptograph...
diplomarbeit-os
.planning/milestones/v1.0-REQUIREMENTS.md
Markdown
9d28e29579d7db33c071522feafde1ed44b73a74c8d2e34fd6a3fd2c7c65303b
4
896
| Complete | | BROW-03 | Phase 13 | Complete | | BROW-04 | Phase 13 | Complete | | SLICE-01 | Phase 14 | Complete | | SLICE-02 | Phase 14 | Complete | | SLICE-03 | Phase 14 | Complete | | REPAIR-01 | Phase 15 | Complete | | REPAIR-02 | Phase 15 | Complete | | REPAIR-03 | Phase 15 | Complete | | REPAIR-04 | Phase 15 | C...
diplomarbeit-os
.planning/milestones/v1.0-REQUIREMENTS.md
Markdown
51efd5e8c213629290b5d19edbd87022c3c4806afbd114ecc7d2c59a0774b2bc
5
392
# Roadmap: Diplomarbeit OS ## Overview Diplomarbeit OS v1 is the Autonomous Studio: a product-owned runtime that turns a sufficiently specified HTL diploma-project request into a runnable generated software project, grounded academic artifacts, verification evidence, repair history, directional evaluation, and an ins...
diplomarbeit-os
.planning/milestones/v1.0-ROADMAP.md
Markdown
7817ba59879439daf27e140ceeea6ea4c03f5d98e54c36df790bd2a7da48d645
0
896
completed 2026-06-27) - [x] **Phase 19: Presentation, Poster, Mockup, and Media Rendering** - Generate visual and presentation artifacts from the same source of truth. (completed 2026-06-27) - [x] **Phase 20: Cross-Artifact Coherence Review** - Check that code, evidence, documents, visuals, and showcase claims agree. (...
diplomarbeit-os
.planning/milestones/v1.0-ROADMAP.md
Markdown
d9e50db686699cab3d31e2cbdd43c5913b1ee8d0141779248fec106f868cbc2e
1
896
5 | Complete | 2026-06-27 | | 19 | Presentation, Poster, Mockup, and Media Rendering | 4/4 | Complete | 2026-06-27 | | 20 | Cross-Artifact Coherence Review | 4/4 | Complete | 2026-06-28 | | 21 | Directional Evaluation | 4/4 | Complete | 2026-06-28 | | 22 | Multi-Worker Expansion and Parallel Orchestration | ...
diplomarbeit-os
.planning/milestones/v1.0-ROADMAP.md
Markdown
5f1260df6b9384faa6cf993e85a14dd2893f3b772f4e3a37442768a92c613e3c
2
896
, STATE-04 **Success Criteria** (what must be TRUE): 1. System can persist Project, ProjectSpec, Run, Task, Event, Decision, Citation, Artifact, Evidence, Finding, Repair, and validity-state records. 2. Developer can run migrations and database tests against hosted and local Postgres paths. 3. System can reconst...
diplomarbeit-os
.planning/milestones/v1.0-ROADMAP.md
Markdown
f2fac8eee76dc6f60698026b69d569b8d669dcdc81c6a3c1eb3dd6b67909593f
3
896
traceability panels. **Wave 3** *(blocked on Wave 2 completion)* - [x] 03-03-PLAN.md - Harden local CSS layout and route-level workspace error handling. **Wave 4** *(blocked on Wave 3 completion)* - [x] 03-04-PLAN.md - Finalize Playwright route, anchor, mobile, and full-gate verification. **UI hint**: yes ###...
diplomarbeit-os
.planning/milestones/v1.0-ROADMAP.md
Markdown
4e278a64ee0f9793fbc27bf78aa446b275d9b1c96294a8d2a958940bb22d001f
4
896
-store schema, source metadata, concept/project/link records, pre-reset comparison note. **Load-Bearing Decisions**: - Protected source boundary, source-reference model, concept-link shape, selective recovery criteria. **Interfaces**: - Derived knowledge repository APIs, source metadata records, corpus read ada...
diplomarbeit-os
.planning/milestones/v1.0-ROADMAP.md
Markdown
ff572eceda78a16b4cfb5aaf865117969e4e5261ceba196ae65aaf5c9cda5a89
5
896
*: ORCH-01, ORCH-02, ORCH-03, ORCH-04 **Success Criteria** (what must be TRUE): 1. System can define task types with inputs, outputs, allowed adapters, required evidence, downstream consumers, and failure classes. 2. System can create and persist a dependency-aware task graph for one generated project run. 3. Sy...
diplomarbeit-os
.planning/milestones/v1.0-ROADMAP.md
Markdown
eb7643ca8f347b31eec3055c02a06126dc296c6a98b2e258e6d90a063762d25d
6
896
, schema, validation, metadata contract, and fixture foundation. - [x] 08-02-PLAN.md - Deterministic Vercel AI SDK adapter with mock language-model tests and failure classification. - [x] 08-03-PLAN.md - Durable model-call metadata and progress-event schema with migration readback. - [x] 08-04-PLAN.md - Tool permission...
diplomarbeit-os
.planning/milestones/v1.0-ROADMAP.md
Markdown
5e5161e9278ad6153400a4a979e18c03feaba18b87655c760acfc820befd0085
7
896
**: - First sandbox backend, provider contract shape, filesystem/network policy, reset strategy, log capture, teardown behavior. **Interfaces**: - SandboxProvider adapter, CommandExecution API, policy configuration, log/evidence output records. **Evidence Required**: - Provider comparison record, isolation t...
diplomarbeit-os
.planning/milestones/v1.0-ROADMAP.md
Markdown
b264539d185122bb2b0aa3fd0d46c40602c698047dcc8ee6d9d32f322d47a876
8
896
3** *(blocked on Wave 2 completion)* - [x] 11-03-PLAN.md - Dispatch the worker through task attempts and sandbox execution service. **Wave 4** *(blocked on Wave 3 completion)* - [x] 11-04-PLAN.md - Document Phase 11 and add the software-worker evidence gate. ### Phase 12: Deterministic Verification and Evidence...
diplomarbeit-os
.planning/milestones/v1.0-ROADMAP.md
Markdown
f117e0161ed690b5ecadbacc1e70b9ab6b8d3b78f916417a556e9f6fc0905059
9
896
visual artifact generation, showcase, evaluation. **Checks**: - Playwright smoke tests, screenshot metadata validation, console/network assertion tests, visual failure fixture. **Research Before Planning**: - Required: current Playwright screenshots, videos, traces, viewport coverage, and sandbox integration do...
diplomarbeit-os
.planning/milestones/v1.0-ROADMAP.md
Markdown
b78c542c4fbb10b00b619261298e0008b3e8df5c81de068f708d01d9537dd5ba
10
896
evidence validity. 4. System can mark dependent artifacts and evidence stale when relevant sources, generated projects, or claims change. 5. System can escalate repeated failures with a clear terminal state instead of retrying indefinitely. **Key Deliverables**: - Finding model, repair task routing, invalidatio...
diplomarbeit-os
.planning/milestones/v1.0-ROADMAP.md
Markdown
037877c450acad9b0003a0fcbab7b317d5f44a21c03472ea5ab36b918688e62c
11
896
- [x] 16-04-PLAN.md - [x] 16-05-PLAN.md ### Phase 17: Artifact Source Model and Minimal Academic Outputs **Goal**: System can create minimal project-facing artifacts from structured facts, decisions, citations, and evidence rather than isolated prompts. **Mode:** mvp **Depends on**: Phase 15 **Requirements**: ART-01,...
diplomarbeit-os
.planning/milestones/v1.0-ROADMAP.md
Markdown
d3548665d45010ab9dbc99279f099ac4d81402c7901920fa40ef86a2889f31d2
12
896