Examples
Three workspace.json examples: a TypeScript monorepo, a Python single-package project, and a polyglot repository. Each is synthesized from real open-source repository structures and labeled as such.
Repository: Synthesized from real TypeScript monorepo structure
A large TypeScript monorepo with multiple packages and apps, pnpm workspaces, and mixed runtime targets. The workspace.json reflects a steady-state workspace with behavioral observation data: high observation count, several fragile files identified from real churn patterns.
Notable: the frameworkManifest shows multiple frameworks because the monorepo
contains both Next.js (web app) and Hono (API). The agents section references
both .cursorrules and AGENTS.md. The coChangePatterns reflect real
co-change patterns observed over months of development.
Synthesized from real monorepo structure. Plausible real-world data, not sourced from a specific repository.
{ "manual": { "description": "TypeScript monorepo for a developer tooling platform: web dashboard, API server, and shared packages.", "techStack": ["TypeScript", "Next.js 15", "Hono", "PostgreSQL", "Drizzle ORM", "pnpm workspaces"], "conventions": [ "Named exports only: no default exports across any package", "All server-side errors throw typed AppError instances; catch only at route boundary", "Packages are not pre-built in dev: import from source via tsconfig paths" ], "fragileFiles": [ { "path": "packages/contracts/src/index.ts", "reason": "Shared type definitions. Changes cascade to all consumers: API, web, CLI, packages." }, { "path": "apps/api/src/middleware/auth.ts", "reason": "Authentication middleware. High blast radius: all authenticated routes depend on this." } ], "coChangePatterns": [ { "files": ["packages/contracts/src/user.ts", "apps/api/src/routes/users.ts", "apps/web/src/app/users/page.tsx"], "note": "User schema changes require simultaneous updates across API route and web page." } ] }, "generated": { "specVersion": "0.4", "generatedAt": "2026-06-02T08:30:00.000Z", "by": { "name": "agents-audit", "version": "0.4.1" }, "fragility": [ { "file": "packages/contracts/src/index.ts", "changeCount": 40, "revertCount": 3, "revertRate": 0.075, "fragilityScore": 0.81, "excluded": false }, { "file": "apps/api/src/middleware/auth.ts", "changeCount": 20, "revertCount": 2, "revertRate": 0.1, "fragilityScore": 0.74, "excluded": false }, { "file": "apps/web/src/app/dashboard/page.tsx", "changeCount": 22, "revertCount": 1, "revertRate": 0.045, "fragilityScore": 0.22, "excluded": false } ], "coChange": [ { "files": ["packages/contracts/src/user.ts", "apps/api/src/routes/users.ts", "apps/web/src/app/users/page.tsx"], "rate": 0.88, "occurrences": 22, "generated": false }, { "files": ["package.json", "pnpm-lock.yaml"], "rate": 0.97, "occurrences": 58, "generated": true } ], "frameworkManifest": [ { "name": "Next.js", "version": "15.3.1", "confidence": 1.0 }, { "name": "Hono", "version": "4.7.4", "confidence": 1.0 }, { "name": "Drizzle ORM", "version": "0.40.1", "confidence": 0.95 } ] }, "agents": { "toolAgentFiles": [".cursorrules"], "referencedAgentFiles": ["AGENTS.md"], "primaryAgentFile": "AGENTS.md" }, "health": { "intelligenceState": "CONFIDENT", "observationCount": 2841, "averageFragility": 0.21, "fragileFileCount": 4, "confidence": 0.94, "bootstrapOverride": 0.0, "workflowFragility": 0.29, "codebaseHealth": 0.81, "changeVolatility": 0.24 }}Repository: Synthesized from real Python package structure
A Python library project with a single installable package, pytest tests,
and type annotations. The workspace.json is minimal; the generator has
fewer signals for a Python project compared to a TypeScript monorepo (no
lockfile-based framework detection, smaller file index). The manual section
carries more weight here.
Synthesized from real Python package structure. Plausible real-world data, not sourced from a specific repository.
{ "manual": { "description": "Pure Python library for structured data validation. No runtime dependencies.", "techStack": ["Python 3.11+", "pytest", "mypy", "Hatch"], "conventions": [ "All public APIs are type-annotated: mypy strict mode enforced in CI", "No dependencies beyond the standard library", "Tests in tests/ mirror the src/ structure" ], "fragileFiles": [ { "path": "src/mylib/validators.py", "reason": "Core validation logic. Changes break compatibility with all downstream users." } ] }, "generated": { "specVersion": "0.4", "generatedAt": "2026-06-02T11:00:00.000Z", "by": { "name": "agents-audit", "version": "0.4.1" }, "fragility": [ { "file": "src/mylib/validators.py", "changeCount": 25, "revertCount": 2, "revertRate": 0.08, "fragilityScore": 0.68, "excluded": false }, { "file": "src/mylib/__init__.py", "changeCount": 7, "revertCount": 0, "revertRate": 0.0, "fragilityScore": 0.45, "excluded": false } ], "frameworkManifest": [ { "name": "pytest", "version": "8.1.2", "confidence": 1.0 } ] }, "agents": { "toolAgentFiles": [], "referencedAgentFiles": ["AGENTS.md"], "primaryAgentFile": "AGENTS.md" }, "health": { "intelligenceState": "OBSERVING", "observationCount": 312, "averageFragility": 0.28, "fragileFileCount": 1, "confidence": 0.61, "bootstrapOverride": 0.18, "workflowFragility": 0.42, "codebaseHealth": 0.65, "changeVolatility": 0.38 }}Repository: Synthesized from real polyglot project structure
A repository containing both a Rust CLI tool and a TypeScript web frontend.
The workspace.json shows how the spec accommodates multiple languages under
a single root. The frameworkManifest lists frameworks from both language
ecosystems. Fragility scores reflect that Rust source files have lower AI
modification rates; the generator observed fewer AI sessions touching Rust
files.
Synthesized from real polyglot project structure. Plausible real-world data, not sourced from a specific repository.
{ "manual": { "description": "Polyglot project: Rust CLI tool + TypeScript web frontend. The CLI handles data processing; the web frontend is the user interface.", "techStack": ["Rust", "TypeScript", "React", "Vite", "Cargo workspaces"], "conventions": [ "CLI: error handling via anyhow; no panics in library code", "Web: all data fetching in React Query hooks, no ad-hoc fetch() calls in components", "Shared JSON schema in schema/ used by both Rust (serde) and TypeScript (zod)" ], "fragileFiles": [ { "path": "schema/event.json", "reason": "Shared JSON schema. Rust and TypeScript consumers must update in lockstep." } ], "coChangePatterns": [ { "files": ["schema/event.json", "src/cli/src/event.rs", "web/src/types/event.ts"], "note": "Schema changes require simultaneous Rust and TypeScript type updates." } ] }, "generated": { "specVersion": "0.4", "generatedAt": "2026-06-02T09:00:00.000Z", "by": { "name": "agents-audit", "version": "0.4.1" }, "fragility": [ { "file": "schema/event.json", "changeCount": 15, "revertCount": 2, "revertRate": 0.133, "fragilityScore": 0.88, "excluded": false }, { "file": "src/cli/src/event.rs", "changeCount": 14, "revertCount": 1, "revertRate": 0.071, "fragilityScore": 0.71, "excluded": false }, { "file": "web/src/components/EventList.tsx", "changeCount": 12, "revertCount": 0, "revertRate": 0.0, "fragilityScore": 0.19, "excluded": false } ], "coChange": [ { "files": ["schema/event.json", "src/cli/src/event.rs", "web/src/types/event.ts"], "rate": 0.91, "occurrences": 13, "generated": false } ], "frameworkManifest": [ { "name": "React", "version": "19.1.0", "confidence": 1.0 }, { "name": "Vite", "version": "6.3.2", "confidence": 1.0 }, { "name": "Rust", "version": "1.87.0", "confidence": 0.95 } ] }, "agents": { "toolAgentFiles": [".cursorrules", "copilot-instructions.md"], "referencedAgentFiles": ["AGENTS.md"], "primaryAgentFile": "AGENTS.md" }, "health": { "intelligenceState": "CONFIDENT", "observationCount": 1104, "averageFragility": 0.33, "fragileFileCount": 2, "confidence": 0.87, "bootstrapOverride": 0.0, "workflowFragility": 0.51, "codebaseHealth": 0.72, "changeVolatility": 0.44 }}