Repository Analysis

inkeep/open-knowledge

Beautiful, AI-native markdown IDE and LLM wiki

5.9 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of inkeep/open-knowledge, a TypeScript project with 2,864 GitHub stars. SynthScan v2.0 examined 852,821 lines of code across 3328 source files, recording 3277 pattern matches distributed across 11 syntactic categories. The overall adjusted score of 5.9 places this repository in the Low AI signal band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

5.9
Adjusted Score
5.9
Raw Score
100%
Time Factor
2026-07-14
Last Push
2.9K
Stars
TypeScript
Language
852.8K
Lines of Code
3.3K
Files
3.3K
Pattern Hits
2026-07-14
Scan Date
0.00
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 2HIGH 0MEDIUM 839LOW 2436

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 3277 distinct pattern matches across 11 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Decorative Section Separators756 hits · 2308 pts
SeverityFileLineSnippetContext
MEDIUMpackages/core/tests/health/parse-health-gate.ts37// ───────────────────────── Types ──────────────────────────────────────────COMMENT
MEDIUMpackages/core/tests/health/parse-health-gate.ts83// ───────────────────────── Comparison (pure) ──────────────────────────────COMMENT
MEDIUMpackages/core/tests/health/parse-health-gate.ts123// ───────────────────────── Harvest (effectful) ────────────────────────────COMMENT
MEDIUMpackages/core/tests/health/parse-health-gate.ts164// ───────────────────────── Corpus loading ─────────────────────────────────COMMENT
MEDIUMpackages/core/tests/health/parse-health-gate.ts185// ───────────────────────── Baseline IO ────────────────────────────────────COMMENT
MEDIUMpackages/core/tests/health/parse-health-gate.ts197// ───────────────────────── Formatting ─────────────────────────────────────COMMENT
MEDIUMpackages/core/tests/health/parse-health-gate.ts216// ───────────────────────── CLI ────────────────────────────────────────────COMMENT
MEDIUMpackages/core/tests/perf/regression-gate.test.ts221// ───────────────────────── Loader runtime validation ─────────────────────COMMENT
MEDIUMpackages/core/tests/perf/markdown-bench.test.ts41// ───────────────────────── Gating ─────────────────────────────────────────COMMENT
MEDIUMpackages/core/tests/perf/markdown-bench.test.ts47// ───────────────────────── Methodology constants ──────────────────────────COMMENT
MEDIUMpackages/core/tests/perf/markdown-bench.test.ts52// ───────────────────────── Stats helpers ──────────────────────────────────COMMENT
MEDIUMpackages/core/tests/perf/markdown-bench.test.ts92// ───────────────────────── Runner metadata ────────────────────────────────COMMENT
MEDIUMpackages/core/tests/perf/markdown-bench.test.ts132// ───────────────────────── Measurement ────────────────────────────────────COMMENT
MEDIUMpackages/core/tests/perf/markdown-bench.test.ts185// ───────────────────────── Test ───────────────────────────────────────────COMMENT
MEDIUMpackages/core/tests/perf/regression-gate.ts33// ───────────────────────── Types ──────────────────────────────────────────COMMENT
MEDIUMpackages/core/tests/perf/regression-gate.ts115// ───────────────────────── Core comparison ────────────────────────────────COMMENT
MEDIUMpackages/core/tests/perf/regression-gate.ts173// ───────────────────────── Formatting ─────────────────────────────────────COMMENT
MEDIUMpackages/core/tests/perf/regression-gate.ts198// ───────────────────────── IO helpers ─────────────────────────────────────COMMENT
MEDIUMpackages/core/tests/perf/regression-gate.ts269// ───────────────────────── CLI ────────────────────────────────────────────COMMENT
MEDIUMpackages/core/src/shadow-repo-layout.ts576// ─── In-memory checkpoint body metadata ────────COMMENT
MEDIUMpackages/core/src/shadow-repo-layout.ts781// ─── ok-actor: body line ─────────────────────────────────────────────────────COMMENT
MEDIUMpackages/core/src/shadow-repo-layout.ts1039// ─── Subject-prefix scheme ───────────────────────────────────────────────────COMMENT
MEDIUMpackages/core/src/shadow-repo-layout.ts1080// ─── Change-note subject composition ─────────────────────────────────────────COMMENT
MEDIUMpackages/core/src/shadow-repo-layout.test.ts843 // ─── auto-consolidation kind ───────────────────COMMENT
MEDIUMpackages/core/src/shadow-repo-layout.test.ts905// ─── parseOkActor / formatOkActor / formatWipSubject ─────────────────COMMENT
MEDIUMpackages/core/src/shadow-repo-layout.test.ts1029// ─── writer_id + summaries consolidation (ok-contributors retirement) ────────COMMENT
MEDIUMpackages/core/src/shadow-repo-layout.test.ts1435// ─── Subject-prefix format helpers ──────────────────────COMMENT
MEDIUMpackages/core/src/schema-invariant.test.ts25// ── Schema shape capture ────────────────────────────────────────────COMMENT
MEDIUMpackages/core/src/schema-invariant.test.ts103// ── Snapshot loading ────────────────────────────────────────────────COMMENT
MEDIUMpackages/core/src/schema-invariant.test.ts112// ── Allowed narrowings ──────────────────────────────────────────────COMMENT
MEDIUMpackages/core/src/schema-invariant.test.ts235// ── Tests ───────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/core/src/handoff/prompt-composer.test.ts894// ── composeTerminalBareLaunchPrompt — docked-terminal bare launch ───────────COMMENT
MEDIUMpackages/core/src/utils/youtube-embed.test.ts5 // ── Recognized hosts → canonical /embed/<id> output ───────────────────COMMENT
MEDIUMpackages/core/src/utils/youtube-embed.test.ts28 // ── Timestamp preservation ────────────────────────────────────────────COMMENT
MEDIUMpackages/core/src/utils/youtube-embed.test.ts94 // ── Rejected inputs → null ────────────────────────────────────────────COMMENT
MEDIUMpackages/core/src/schemas/api/share.ts152// ─── Publish-to-GitHub wizard ────────────────────────────────────────COMMENT
MEDIUMpackages/core/src/schemas/api/share.ts307// ─── Shared branch-name validator ─────────────────────────────────────COMMENT
MEDIUMpackages/core/src/schemas/api/share.ts386// ─── Git auth failure classifier ──────────────────────────────────────COMMENT
MEDIUMpackages/core/src/schemas/api/share.ts521// ─── Branch-info (share-link branch-awareness) ────────────────────────COMMENT
MEDIUMpackages/core/src/schemas/api/share.ts586// ─── Checkout (share-link branch-awareness) ───────────────────────────COMMENT
MEDIUMpackages/core/src/schemas/api/share.ts694// ─── Target-status (share-link receive integrity) ─────────────────────COMMENT
MEDIUMpackages/core/src/schemas/api/tags-search.ts313// ─── Skills (`/api/skill`, `/api/skills`) ────────────────────────COMMENT
MEDIUMpackages/core/src/schemas/api/pages.test.ts370// ─── Cluster C URN tokens ───────────────────────────────────────COMMENT
MEDIUMpackages/core/src/schemas/api/local-op.test.ts96// ─── Cluster H: sync + seed handlers ───────────────────────────────COMMENT
MEDIUMpackages/core/src/schemas/api/document-read.test.ts32// ─── read endpoint success schemas ────────────────────────────COMMENT
MEDIUMpackages/core/src/extensions/list.ts37// ────────────────────────── Helpers ──────────────────────────COMMENT
MEDIUMpackages/core/src/extensions/list.ts138// ────────────────────────── List Node ──────────────────────────COMMENT
MEDIUMpackages/core/src/extensions/list.ts309// ────────────────────────── ListItem Node ──────────────────────────COMMENT
MEDIUMpackages/core/src/registry/types.ts13// ── PropDef discriminated union ──────────────────────────────────────────────COMMENT
MEDIUMpackages/core/src/registry/types.ts194// ── SerializeContext + helper types ──────────────────────────────────────────COMMENT
MEDIUMpackages/core/src/registry/types.ts225// ── JsxComponentMeta — discriminated on `surface` ───────────────────────────COMMENT
MEDIUMpackages/core/src/registry/registry.test.ts967 // ─── Schema-flip-drift meta-test (parallel to precedent #47) ─────────COMMENT
MEDIUMpackages/core/src/registry/registry.test.ts967 // ─── Schema-flip-drift meta-test (parallel to precedent #47) ─────────COMMENT
MEDIUMpackages/core/src/registry/built-ins.ts58// ── Callout ──────────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/core/src/registry/built-ins.ts651// ── Accordion ────────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/core/src/registry/built-ins.ts656// ── Constraints (load-bearing) ───────────────────────────────────────────────COMMENT
MEDIUMpackages/core/src/registry/built-ins.ts672// ── Namespace collision ──────────────────────────────────────────────────────COMMENT
MEDIUMpackages/core/src/registry/built-ins.ts679// ── `children` semantics ─────────────────────────────────────────────────────COMMENT
MEDIUMpackages/core/src/registry/built-ins.ts737// ── Compat descriptor prop subsets ───────────────────────────────────────────COMMENT
MEDIUMpackages/core/src/registry/built-ins.ts821// ── Tabs / Tab ───────────────────────────────────────────────────────────────COMMENT
696 more matches not shown…
Over-Commented Block1155 hits · 1065 pts
SeverityFileLineSnippetContext
LOWoxlint.config.ts1import { defineConfig } from 'oxlint';COMMENT
LOW…/__fixtures__/no-roundtrip-identity-oracle.fixture.tsx61 // contract, NOT a leak. No `serialize(parse(...))`, two different inputs.COMMENT
LOW…fixtures__/no-raw-html-interactive-element.fixture.tsx1// FIXTURE — drives `no-raw-html-interactive-element.test.ts` via shell-outCOMMENT
LOW…gins/__fixtures__/cst-pm-handler-todo-stub.fixture.tsx1// FIXTURE - drives `cst-pm-handler-todo-stub.test.ts` via shell-outCOMMENT
LOW…/__fixtures__/no-unportaled-editor-content.fixture.tsx1// FIXTURE — drives `no-unportaled-editor-content.test.ts` via shell-outCOMMENT
LOW…/__fixtures__/no-unportaled-editor-content.fixture.tsx61// even though `EditorContent` is named there.COMMENT
LOW…ures__/class-proof-registration-discipline.fixture.tsx1// FIXTURE — drives `class-proof-registration-discipline.test.ts` viaCOMMENT
LOW…tures__/path-conditional-map-driven-origin.fixture.tsx1// FIXTURE — drives `path-conditional-map-driven-origin.test.ts` via shell-outCOMMENT
LOW…/__fixtures__/require-windowshide-on-spawn.fixture.tsx1// FIXTURE — drives `require-windowshide-on-spawn.test.ts` via shell-out toCOMMENT
LOWdocs/next-env.d.ts1/// <reference types="next" />COMMENT
LOWdocs/scripts/generate-brand-assets.ts1import { mkdirSync, readFileSync, writeFileSync } from 'node:fs';COMMENT
LOWdocs/src/lib/brand-assets.ts1// The /brand page and downloadable brand kit now live in the marketing appCOMMENT
LOWdocs/src/lib/ok-wordmark.data.ts1// Generated from public/ok-wordmark.svg — do not hand-edit.COMMENT
LOWscripts/bun-install-ci.sh1#!/usr/bin/env bashCOMMENT
LOWscripts/bun-install-ci.sh21# engages — the hang rides the GitHub job to its `timeout-minutes` cap,COMMENT
LOWscripts/bun-install-ci.sh41# not substitute.COMMENT
LOWscripts/bun-install-ci.sh61# Tests inject a stub script here. TheCOMMENT
LOWscripts/bun-install-ci.sh81# ≈ 12.75 min < 15 min. A healthy cold installCOMMENT
LOWscripts/bun-install-ci.sh141 INSTALL_ARGV=("$BUN_INSTALL_CMD")COMMENT
LOWscripts/check-knip-clean.sh1#!/usr/bin/env bashCOMMENT
LOWscripts/check-i18n-drift.sh1#!/usr/bin/env bashCOMMENT
LOWscripts/husky-prepare.sh1#!/usr/bin/env bashCOMMENT
LOWscripts/husky-prepare.sh21# This guard skips husky entirely in the monorepo case so the parent'sCOMMENT
LOWscripts/check-schema-snapshot-clean.sh1#!/usr/bin/env bashCOMMENT
LOWscripts/check-husky-prepare-guard.sh1#!/usr/bin/env bashCOMMENT
LOWpackages/core/src/shadow-repo-layout.ts261 return null;COMMENT
LOWpackages/core/src/shadow-repo-layout.ts601COMMENT
LOWpackages/core/src/shadow-repo-layout.test.ts1601 // un-truncated `${base} — ${summary}` fits in 72 chars, with an embeddedCOMMENT
LOWpackages/core/src/schema-invariant.test.ts161 // Drop the legacy `content` attrCOMMENT
LOWpackages/core/src/schema-invariant.test.ts181 // Three rendered:false attrs (`sourceForm`/`target`/`anchor`) previouslyCOMMENT
LOWpackages/core/src/schema-invariant.test.ts281 // Content expression must be identical (strict-equality check).COMMENT
LOWpackages/core/src/index.ts301 type WikiLinkAttrs,COMMENT
LOWpackages/core/src/index.ts941// types.ts` for the app renderer's optional `window.okDesktop` access. KeepingCOMMENT
LOWpackages/core/src/config/schema.ts121 // `preview.*` is no longer a schema section. The code-block preview iframeCOMMENT
LOWpackages/core/src/config/schema.ts141 // user-configurable in practice (or in the case of editorModeDefault,COMMENT
LOWpackages/core/src/config/schema.ts161 // reveal). Project scope would bleed one teammate's view choice acrossCOMMENT
LOWpackages/core/src/config/schema.ts261 'Soft-wrap long lines in the source (CodeMirror) editor. A personal preference (user scope).',COMMENT
LOWpackages/core/src/config/schema.ts341 .default({ enabled: null, default: null }),COMMENT
LOWpackages/core/src/config/bind-config-doc.ts281 let doc = parseDocument(currentContent);COMMENT
LOWpackages/core/src/config/field-registry.test.ts161 test('project-strict fields cover autoSync.default + content.* + telemetry.localSink.*', () => {COMMENT
LOWpackages/core/src/config/write-config-patch.ts201 // the second write silently overwrites keys touched only by the first.COMMENT
LOWpackages/core/src/handoff/urn-ipc-registry.ts221 // Cluster A — agent-write/-write-md/-patch/-undo (HTTP-only; no IPC counterpart for agent writes)COMMENT
LOWpackages/core/src/constants/embedded-host.ts1export type EmbeddedHost = 'cursor' | 'codex' | 'claude-desktop' | null;COMMENT
LOWpackages/core/src/constants/upload.ts401 'ico',COMMENT
LOWpackages/core/src/constants/upload.ts441 // (CodeMirror, read-only) when previewing. Safe to serve `inline`COMMENT
LOWpackages/core/src/constants/upload.ts581// Each set is a STRICT subset of its canonical-class set (asserted below),COMMENT
LOWpackages/core/src/constants/upload.ts621// No per-class assertSubset for `SIDEBAR_TEXT_EXTENSIONS` — text formatsCOMMENT
LOWpackages/core/src/constants/upload.ts661 INLINE_RENDERABLE_EXTENSIONS,COMMENT
LOWpackages/core/src/constants/editors.ts101 // Pi implements the Agent Skills standard and scans `.pi/skills` nativelyCOMMENT
LOWpackages/core/src/constants/editors.ts181 'claude-desktop': null,COMMENT
LOWpackages/core/src/constants/editors.ts201 // LM Studio's MCP config is a single user-global `mcp.json` (it followsCOMMENT
LOWpackages/core/src/utils/link-targets.test.ts141COMMENT
LOWpackages/core/src/schemas/api.type-tests.ts81COMMENT
LOWpackages/core/src/schemas/api/_envelope.ts161// object, validates it through `ProblemDetailsSchema.parse()`, and emits withCOMMENT
LOWpackages/core/src/schemas/api/_envelope.ts221 // `no-active-session` is handleAgentUndo-specific.COMMENT
LOWpackages/core/src/schemas/api/_envelope.ts241 'urn:ok:error:too-many-agent-sessions',COMMENT
LOWpackages/core/src/schemas/api/_envelope.ts261 // `backlink-index-not-configured` flags the (rare) startup state whereCOMMENT
LOWpackages/core/src/schemas/api/_envelope.ts281 // gate; `principal-not-available` is the 404 case when local git-configCOMMENT
LOWpackages/core/src/schemas/api/_envelope.ts301 // rollback / rename / delete / template — so SDK consumers can branch onCOMMENT
LOWpackages/core/src/schemas/api/_envelope.ts321 // absolute path). All other error paths reuse shared `invalid-request`,COMMENT
1095 more matches not shown…
Hyper-Verbose Identifiers1035 hits · 1022 pts
SeverityFileLineSnippetContext
LOW…me-plugins/__fixtures__/microcopy-ellipsis.fixture.tsx14export function PositiveJsxAttributePlaceholder() {CODE
LOW…s/src/app/d/[encoded]/splash-download-split-button.tsx28export function SplashDownloadSplitButton({CODE
LOWpackages/core/scripts/chrome-resolver.ts106export function resolveChromeTokensFromCss(cssPath: string): ChromeTokens {CODE
LOWpackages/core/scripts/chrome-resolver.ts120export function renderChromeConstantsModule(tokens: ChromeTokens): string {CODE
LOWpackages/core/scripts/preview-theme-token-resolver.ts136export function resolvePreviewThemeTokensFromCss(cssPath: string): ResolvedPreviewToken[] {CODE
LOWpackages/core/scripts/preview-theme-token-resolver.ts170export function renderPreviewThemeTokensModule(tokens: ResolvedPreviewToken[]): string {CODE
LOWpackages/core/src/shadow-repo-layout.ts1004export function okActorToShadowContributor(a: OkActorEntry): ShadowContributor {CODE
LOWpackages/core/src/helper-bundle.ts65export function resolveHelperBundleBinary(parentExecPath: string): string {CODE
LOWpackages/core/src/y-prosemirror-patch.test.ts92function resolveInstalledPackageDir(packageName: string): string {CODE
LOWpackages/core/src/metrics/parse-health.ts180export function incrementWholeDocFallback(): void {CODE
LOWpackages/core/src/metrics/parse-health.ts188export function incrementWholeDocBudgetFallback(): void {CODE
LOWpackages/core/src/metrics/parse-health.ts201export function incrementJsxRenderFailure(component: string): void {CODE
LOWpackages/core/src/metrics/parse-health.ts206export function incrementJsxAutoConvertFailed(component: string): void {CODE
LOWpackages/core/src/metrics/parse-health.ts211export function incrementJsxAutoConvertSucceeded(component: string): void {CODE
LOWpackages/core/src/metrics/parse-health.ts241export function incrementJsxStuckCopyFailed(component: string): void {CODE
LOWpackages/core/src/metrics/parse-health.ts246export function incrementJsxStuckDeleteFailed(component: string): void {CODE
LOWpackages/core/src/metrics/parse-health.ts257export function incrementJsxPopoverCloseRestoreFailed(component: string): void {CODE
LOWpackages/core/src/metrics/parse-health.ts263export function incrementJsxKeyboardDeleteFailed(component: string): void {CODE
LOWpackages/core/src/metrics/parse-health.ts275export function incrementBlockGripClickSelectFailed(nodeType: string): void {CODE
LOWpackages/core/src/metrics/parse-health.ts288export function incrementJsxArrowNodeSelectFailed(CODE
LOWpackages/core/src/metrics/parse-health.ts302export function incrementYpsMismatchBlock(): void {CODE
LOWpackages/core/src/metrics/parse-health.ts307export function incrementYpsMismatchInline(): void {CODE
LOWpackages/core/src/sharing/candidate-selection.ts460function compareCandidatesForTiebreak(a: Candidate, b: Candidate): number {CODE
LOWpackages/core/src/sharing/receive-flow.ts94export function findRecentProjectsForRepo(CODE
LOWpackages/core/src/config/schema.ts59export function normalizeAttachmentFolderPath(value: string): string {CODE
LOWpackages/core/src/config/schema.ts64export function isValidAttachmentFolderPath(value: string): boolean {CODE
LOWpackages/core/src/config/yaml-patch.ts23function ensureCollectionAncestors(CODE
LOWpackages/core/src/handoff/prompt-composer.ts175export function composeTerminalBareLaunchPrompt(relativePath: string | null): string {CODE
LOWpackages/core/src/handoff/prompt-composer.ts571function fitInstructionForDirective(directive: string, instruction: string): string {CODE
LOWpackages/core/src/handoff/prompt-composer.ts968function assembleDocSelectionPrompt(CODE
LOWpackages/core/src/bridge/parse-equivalence.ts13function stripTrailingLineWhitespace(body: string): string {CODE
LOWpackages/core/src/bridge/apply-diff.ts64function applyByPrefixSuffixMiddleReplace(CODE
LOWpackages/core/src/bridge/doc-boundary-space.ts21export function reattachLeadingDocBoundary(text: string, boundary: string): string {CODE
LOWpackages/core/src/bridge/doc-boundary-space.ts27export function projectMergeBoundarySpace(text: string): string {CODE
LOWpackages/core/src/bridge/normalize.ts86function foldJsxContainerBoundaryBlanks(lines: readonly string[]): string[] {CODE
LOWpackages/core/src/bridge/normalize.ts222export function detectAppliedToleranceClasses(left: string, right: string): BridgeToleranceClass[] {CODE
LOWpackages/core/src/bridge/structural-freshness.ts28function stripResolverDerivedAttrs(node: PmStructuralNode): PmStructuralNode {CODE
LOWpackages/core/src/bridge/structural-freshness.ts78export function createStructuralFreshnessChecker(CODE
LOWpackages/core/src/bridge/merge-three-way.ts147export function assertContentPreservation(CODE
LOWpackages/core/src/bridge/tolerance-telemetry.ts50export function setToleranceTelemetryHook(h: ToleranceTelemetryHook | null): void {CODE
LOWpackages/core/src/bridge/pm-structural-equivalence.ts303function firstStructuralDivergence(expected: unknown, actual: unknown, path = 'doc'): string {CODE
LOWpackages/core/src/bridge/pm-structural-equivalence.ts325export function compareRoundTripStructural(CODE
LOWpackages/core/src/markdown/mdast-to-hast-handlers.ts27function collectStaticJsxAttributes(CODE
LOWpackages/core/src/markdown/handler-shadow-audit.ts82export function collectExtensionHandlerKeys(extensions: readonly unknown[]): string[] {CODE
LOWpackages/core/src/markdown/handler-shadow-audit.ts96export function computeShadowedHandlerKeys(CODE
LOWpackages/core/src/markdown/autolink-void-html-guard.ts56function indexUppercaseCloseTagsByName(source: string): Map<string, number[]> {CODE
LOWpackages/core/src/markdown/autolink-void-html-guard.ts102function isAngleBracketDestinationOpen(offset: number, result: string): boolean {CODE
LOWpackages/core/src/markdown/entity-ref-guard.ts17function countPrecedingBackslashes(source: string, before: number): number {CODE
LOWpackages/core/src/markdown/entity-ref-guard.ts67function restoreEntityRefsInString(s: string): {CODE
LOW…ckages/core/src/markdown/details-accordion-promoter.ts72function promoteSingleLineParagraph(paragraph: Paragraph): MdxJsxFlowElement | null {CODE
LOW…ckages/core/src/markdown/details-accordion-promoter.ts179export function detailsAccordionPromoterPlugin() {CODE
LOWpackages/core/src/markdown/parser-drop-closure.ts337export function extractFromMarkdownHandlerKeys(libSource: string): string[] {CODE
LOWpackages/core/src/markdown/parser-drop-closure.ts367export function extractPreprocessTransforms(preprocessSource: string): {CODE
LOWpackages/core/src/markdown/table-cell-flatten.ts19function substituteBreaksWithBrHtml(node: { children?: Nodes[] }): void {CODE
LOWpackages/core/src/markdown/to-markdown-handlers.ts748function quotedAttrExpressionValue(value: string): string {CODE
LOWpackages/core/src/markdown/to-markdown-handlers.ts812function isWhitespaceNumericCharRef(body: string): boolean {CODE
LOWpackages/core/src/markdown/to-markdown-handlers.ts915function escapeActiveDelimiterRuns(value: string, info: Info): string {CODE
LOWpackages/core/src/markdown/to-markdown-handlers.ts951function encodeAttentionBoundaries(between: string, info: Info, delim: string): string {CODE
LOWpackages/core/src/markdown/to-markdown-handlers.ts967function shouldEncodeAttentionBoundary(CODE
LOWpackages/core/src/markdown/merged-walker.ts9export function mergedPostParseWalkerPlugin() {CODE
975 more matches not shown…
Modern AI Meta-Vocabulary57 hits · 168 pts
SeverityFileLineSnippetContext
MEDIUMREADME.md53ok init # scaffold the project + wire up your AI editors (Claude Code, Claude Desktop, Cursor, Codex, OpenCode,CODE
MEDIUMscripts/husky-prepare.sh29# `_/` scaffolding and the chmod would silently no-op, leaving cruft.COMMENT
MEDIUMscripts/husky-prepare.sh54 # husky has nothing to register. Skip to avoid empty scaffolding.COMMENT
MEDIUMscripts/check-husky-prepare-guard.sh116# husky setup to avoid creating empty `_/` scaffolding.COMMENT
MEDIUMpackages/core/src/handoff/prompt-composer.ts296 // body ends in a blockquoted brief, an `@`-mention line, or the scaffoldCOMMENT
MEDIUMpackages/core/src/handoff/prompt-composer.test.ts403 // existing-repo empty brief: neutral, no scaffold-from-scratch directive.COMMENT
MEDIUMpackages/app/tests/integration/bridge-matrix.test.ts359// Agent undo/redo endpoints were removed (broken scaffold removal).COMMENT
MEDIUM…ests/integration/conflict-aware-write-surfaces.test.ts383 // Seed the .ok scaffold + git so createTestServer's ensureProjectGit is a no-op.COMMENT
MEDIUM…ests/integration/conflict-aware-write-surfaces.test.ts604 // Real git + .ok/ scaffold so SyncEngine constructs without bailing.COMMENT
MEDIUMpackages/app/src/components/SeedDialog.tsx156 // typing doesn't strobe "Computing scaffold plan…" between keystrokes.COMMENT
MEDIUM…kages/app/src/components/CreatedItemsList.dom.test.tsx50 // Subfolder scaffold into `brain/`: the plan creates the parent folder plusCOMMENT
MEDIUM…kages/app/src/components/CreatedItemsList.dom.test.tsx105 // Re-scaffold where the folder already exists: only its templates are inCOMMENT
MEDIUMpackages/app/src/components/ProjectSwitcher.tsx184 // dialog drives the full scaffold + open-in-new-window flow itself.COMMENT
MEDIUMpackages/desktop/electron-builder.yml255 # smoke path for M2 scaffolding before cert procurement completes.COMMENT
MEDIUM…ckages/desktop/src/main/worktree-setup-inherit.test.ts143 // Full `.ok/` scaffold parity with a fresh setup.COMMENT
MEDIUMpackages/desktop/src/main/ok-init.ts121 // Coalesce concurrent callers onto the same scaffold. Their result isCOMMENT
MEDIUMpackages/desktop/src/main/create-new-project.test.ts620 // skipped — the project is valid but carries no pack scaffold.COMMENT
MEDIUMpackages/desktop/src/main/worktree-service.ts180 // Inherit the root project's OK setup (`.ok/` scaffold + editor/MCP wiring)COMMENT
MEDIUMpackages/desktop/src/main/index.ts4175 // for adjusting content scope at scaffold time, so this telemetryCOMMENT
MEDIUMpackages/desktop/src/main/index.ts4200 // scaffold branch won't re-fire.COMMENT
MEDIUMpackages/desktop/src/main/folder-admission.ts260 // standalone treatment lets the server-side ok-init endpoint scaffoldCOMMENT
MEDIUMpackages/server/src/api-extension.ok-init.test.ts223 // The containment gate fires before `initContent` — no scaffold written.COMMENT
MEDIUMpackages/server/src/boot.test.ts121 // scaffold at projectDir only and confirm boot succeeds.COMMENT
MEDIUMpackages/server/src/boot.test.ts152 // preflight is anchored to `projectDir`, so a config-shaped scaffold underCOMMENT
MEDIUMpackages/server/src/tag-index.test.ts263 idx.updateDocumentFromMarkdown('__template__/docs/my-template', '#scaffold note\n');CODE
MEDIUMpackages/server/src/boot.ts507 // Pre-createServer scaffold hook. CLI passes initContent; desktop omits.COMMENT
MEDIUMpackages/server/src/api-extension.ts11528 // anchor pointing outside home can't slip a scaffold write past theCOMMENT
MEDIUMpackages/server/src/api-extension.ts11594 // (e.g., a checkout flow racing scaffold writes).COMMENT
MEDIUMpackages/server/src/git-preflight-boot.test.ts255 // instead, we point `contentDir` at a directory missing the .ok scaffoldCOMMENT
MEDIUMpackages/server/src/git-preflight-boot.test.ts297 // Boot reached the next gate (config scaffold missing). That provesCOMMENT
MEDIUMpackages/server/src/init-project.test.ts135 // The folder-metadata explainer block was removed from the scaffold too.COMMENT
MEDIUMpackages/server/src/init-project.test.ts180 // `.okignore`) as a symlink could either (a) append OK scaffold lines to aCOMMENT
MEDIUMpackages/server/src/init-project.test.ts182 // (b) plant the OK scaffold contents at an arbitrary path via theCOMMENT
MEDIUMpackages/server/src/init-project.ts151# exists as mental scaffolding, not as enforced filesystem structure.COMMENT
MEDIUMpackages/server/src/init-project.ts342 // .gitignore: merge-on-upgrade — append missing scaffold entries to anCOMMENT
MEDIUMpackages/server/src/init-project.ts343 // existing file rather than skipping outright. Today's scaffold is a singleCOMMENT
MEDIUMpackages/server/src/seed/starter.ts1679 // Root scaffold: OKF reserved files (index.md / log.md) belong at theCOMMENT
MEDIUMpackages/server/src/seed/plan.ts112 // Each gets independent existence checks so a partial scaffold (e.g. userCOMMENT
MEDIUMpackages/cli/src/cli.ts198// seed command — stateless content-scaffold, no config neededCOMMENT
MEDIUMpackages/cli/src/commands/start.test.ts731 // scaffold one for us — seed manually.COMMENT
MEDIUMpackages/cli/src/commands/start.test.ts1423// bootStartServer — no scaffold when .ok/config.yml is absentCOMMENT
MEDIUMpackages/cli/src/commands/start.test.ts1432 // Intentionally no .ok/config.yml — the test asserts ok start refuses to scaffold.COMMENT
MEDIUMpackages/cli/src/commands/clone.ts344 // Auto-init: scaffold .ok/ unconditionally. `runInit` is idempotentCOMMENT
MEDIUMpackages/cli/src/commands/init.ts2192 // (excludes the scaffold-failure early return, where no config exists);COMMENT
MEDIUMpackages/cli/src/commands/init.test.ts164 // scaffold: config-only, no content subdirs.COMMENT
MEDIUMpackages/cli/src/commands/init.test.ts168 // created lazily by writers — not part of the scaffold.COMMENT
MEDIUMpackages/cli/src/commands/init.test.ts315 // But the .ok/ config scaffold IS createdCOMMENT
MEDIUMpackages/cli/src/commands/init.test.ts352 // Config scaffold should still have been createdCOMMENT
MEDIUMpackages/cli/src/commands/init.test.ts1249 // .ok/ scaffold still landed (project creation succeeded).COMMENT
MEDIUMpackages/cli/src/commands/init.test.ts1785 // Scaffolding-failure shape: flag requested, no config written, scaffold failed.COMMENT
MEDIUMpackages/cli/src/commands/init.test.ts1795 // Pre-existing-config shape (same undefined contentDir, but scaffold succeeded):COMMENT
MEDIUMpackages/cli/src/commands/start.ts1026 skipAutoInit: true, // Guard already ran above; no scaffold fn to passCODE
MEDIUMpackages/cli/src/commands/share/publish.ts297 // scaffold is staged BEFORE the initial commit lands. AnyCOMMENT
MEDIUMpackages/native-config/src/mcp_edit.rs249 // Drop the ` ` prefix the `v = ` scaffold left on the value, so it carriesCOMMENT
MEDIUM.github/workflows/release.yml6# Beta path: event-driven on `push` to legacy/main with a paths filter onCOMMENT
MEDIUM.github/workflows/release.yml87# event-driven betas and promote-stable route their npm publishes here.COMMENT
MEDIUM.github/workflows/release.yml253 # top-level `bun run build` (turbo orchestrates the dep order:COMMENT
Verbosity Indicators83 hits · 148 pts
SeverityFileLineSnippetContext
LOWpackages/core/src/config/write-config-patch.ts187 // Step 0: scope-violation check. Catches misrouted writes BEFORE anyCOMMENT
LOWpackages/core/src/config/write-config-patch.ts240 // Step 1: read current file content (or empty for lazy first-write).COMMENT
LOWpackages/core/src/config/write-config-patch.ts255 // Step 2: parse the existing YAML (or empty document for first-write).COMMENT
LOWpackages/core/src/config/write-config-patch.ts280 // Step 3: apply the patch to the Document.COMMENT
LOWpackages/core/src/config/write-config-patch.ts283 // Step 4: serialize to JS for safeParse (validation), and to string forCOMMENT
LOWpackages/core/src/config/write-config-patch.ts309 // Step 5: serialize the doc to YAML. For lazy first-write, prepend theCOMMENT
LOWpackages/core/src/config/write-config-patch.ts323 // Step 6: ensure parent directory exists, then atomic write.COMMENT
LOWpackages/app/tests/integration/bridge-matrix.test.ts755 // Step 1: Baseline via WYSIWYGCOMMENT
LOWpackages/app/tests/integration/bridge-matrix.test.ts760 // Step 2: Server-side agent write via HTTP API (appends content to Y.TextCOMMENT
LOWpackages/app/tests/integration/bridge-matrix.test.ts772 // Step 3: Client's user appends via WYSIWYG — an incremental edit,COMMENT
LOWpackages/app/tests/integration/bridge-matrix.test.ts784 // Step 4: Both user edit and agent content should be presentCOMMENT
LOW…sts/integration/vite-worker-cachedir-isolation.test.ts280 // Step 1: resolve the per-worker cacheDir identifier from theCOMMENT
LOW…sts/integration/vite-worker-cachedir-isolation.test.ts312 // Step 2: enumerate rmSync call sites in the fixture. The twoCOMMENT
LOW…sts/integration/vite-worker-cachedir-isolation.test.ts335 // Step 3: pair each contentDir teardown with a siblingCOMMENT
LOW…kages/app/tests/perf/scenarios/m3-defer-mount-sweep.ts147 // Step 1: navigate to root to discard any in-memory editor cache.COMMENT
LOW…kages/app/tests/perf/scenarios/m3-defer-mount-sweep.ts151 // Step 2: cold-load the target doc and measure.COMMENT
LOWpackages/app/tests/perf/scenarios/warm-switch-cached.ts68 // Step 1: warm up docA + docBCOMMENT
LOWpackages/app/tests/perf/scenarios/warm-switch-cached.ts92 // Step 2: force Activity-mount eviction of docACOMMENT
LOWpackages/app/tests/perf/scenarios/warm-switch-cached.ts105 // Step 3: navigate back to docA — V2 cache should reparent, not rebuild.COMMENT
LOW…ckages/app/tests/stress/observer-a-multi-client.e2e.ts109 // Step 1: user on Client A starts typing into the editor (focus + position cursorCOMMENT
LOW…ckages/app/tests/stress/observer-a-multi-client.e2e.ts114 // Step 2: agent writes additional content to the same line via server-side API.COMMENT
LOW…ckages/app/tests/stress/observer-a-multi-client.e2e.ts136 // Step 3: Client A's user types at the end of the line (which now includes theCOMMENT
LOWpackages/app/tests/stress/qa-sidebar-responsive.e2e.ts975 // Step 1: pin open at narrow.COMMENT
LOWpackages/app/tests/stress/qa-sidebar-responsive.e2e.ts979 // Step 2: resize wide. Above slot is absent → smart default opens.COMMENT
LOWpackages/app/tests/stress/qa-sidebar-responsive.e2e.ts982 // Step 3: explicit collapse at wide → above slot recorded; below untouched.COMMENT
LOWpackages/app/tests/stress/qa-sidebar-responsive.e2e.ts988 // Step 4: resize back to narrow → below slot honored → right reopens.COMMENT
LOWpackages/app/tests/stress/qa-sidebar-responsive.e2e.ts991 // Step 5: both slots still coexist (the wide-visit's collapse did notCOMMENT
LOWpackages/app/src/server/agent-sim.ts221 // Step 1: Read current documentCOMMENT
LOWpackages/app/src/server/agent-sim.ts237 // Step 2: Seed if empty or missing recognizable sectionsCOMMENT
LOWpackages/app/src/server/agent-sim.ts263 // Step 3: Run patch sequenceCOMMENT
LOWpackages/app/src/server/agent-sim.ts307 // Step 1: Read file from diskCOMMENT
LOWpackages/app/src/server/agent-sim.ts315 // Step 2: Seed via HTTP API if empty or missing patch targetsCOMMENT
LOWpackages/app/src/server/agent-sim.ts334 // Step 3: Run edit sequence directly on diskCOMMENT
LOWpackages/app/src/server/agent-flow.test.ts69 // Step 1: Seed document with initial contentCOMMENT
LOWpackages/app/src/server/agent-flow.test.ts83 // Step 2: Agent writes another paragraph (simulates agent writing while doc is open)COMMENT
LOWpackages/app/src/server/agent-flow.test.ts94 // Step 3: Toggle to source — serialize Y.Doc → markdownCOMMENT
LOWpackages/app/src/server/agent-flow.test.ts103 // Step 4: Simulate user editing in source mode — add a lineCOMMENT
LOWpackages/app/src/server/agent-flow.test.ts106 // Step 5: Toggle back to WYSIWYG — parse markdown → updateYFragmentCOMMENT
LOWpackages/app/src/server/agent-flow.test.ts117 // Step 6: Verify — serialize again to check all content survivedCOMMENT
LOW…nts/CreateProjectDialog.cascade-staleness.dom.test.tsx602 // Step 1: type a name → block-nested banner appears. This is theCOMMENT
LOW…nts/CreateProjectDialog.cascade-staleness.dom.test.tsx611 // Step 2: install a MutationObserver on the banner's parent (subtree:COMMENT
LOW…nts/CreateProjectDialog.cascade-staleness.dom.test.tsx631 // Step 3: type more characters. The probe re-runs against the newCOMMENT
LOW…nts/CreateProjectDialog.cascade-staleness.dom.test.tsx638 // Step 4: wait — event-driven — for the debounced re-probe to fire.COMMENT
LOW…nts/CreateProjectDialog.cascade-staleness.dom.test.tsx649 // Step 5: wait for cascade to re-settle to block-nested (bannerCOMMENT
LOW…nts/CreateProjectDialog.cascade-staleness.dom.test.tsx697 // Step 1: type a name → cascade settles to 'free' (initial nullableCOMMENT
LOW…nts/CreateProjectDialog.cascade-staleness.dom.test.tsx708 // Step 2: install a controllable deferred on findEnclosingGitRoot soCOMMENT
LOW…nts/CreateProjectDialog.cascade-staleness.dom.test.tsx723 // Step 3: edit the name — bumps deps → cascade useEffect re-runs →COMMENT
LOW…nts/CreateProjectDialog.cascade-staleness.dom.test.tsx745 // Step 4: resolve the deferred → probe settles → cascade re-rendersCOMMENT
LOW…nts/CreateProjectDialog.cascade-staleness.dom.test.tsx797 // Step 1: type a name → cascade probes → settles to confirm-git.COMMENT
LOW…nts/CreateProjectDialog.cascade-staleness.dom.test.tsx808 // Step 2: capture the polling callback. The polling setIntervalCOMMENT
LOW…nts/CreateProjectDialog.cascade-staleness.dom.test.tsx820 // Step 3: install a controllable deferred on findEnclosingGitRootCOMMENT
LOW…nts/CreateProjectDialog.cascade-staleness.dom.test.tsx832 // Step 4: trigger a fresh probe via name edit → cascade-probeCOMMENT
LOWpackages/app/src/editor/provider-pool.test.ts2980 // Step 1: open A, let its persistence write to IDB, close it.COMMENT
LOWpackages/app/src/editor/provider-pool.test.ts2987 // Step 2: rename A → B. The fix calls closeAndClearPersistence onCOMMENT
LOWpackages/app/src/editor/provider-pool.test.ts2996 // Step 3: open B (the new location), let it persist, close it.COMMENT
LOWpackages/app/src/editor/provider-pool.test.ts3003 // Step 4: rename B → A (the move-back). This is the critical step:COMMENT
LOWpackages/app/src/editor/provider-pool.test.ts3012 // Step 5: open A again. With the IDB cleared in step 4, the newCOMMENT
LOWpackages/app/src/editor/extensions/mark-identity.ts112 // Step 1: map previous ranges forward.COMMENT
LOWpackages/app/src/editor/extensions/mark-identity.ts134 // Step 2: walk new doc, match spans to mapped ranges.COMMENT
LOW…ver/src/server-observers-paired-write-baseline.test.ts52 // Step 1: Agent paired-write via composeAndWriteRawBody.COMMENT
23 more matches not shown…
Structural Annotation Overuse83 hits · 148 pts
SeverityFileLineSnippetContext
LOWpackages/core/src/config/write-config-patch.ts187 // Step 0: scope-violation check. Catches misrouted writes BEFORE anyCOMMENT
LOWpackages/core/src/config/write-config-patch.ts240 // Step 1: read current file content (or empty for lazy first-write).COMMENT
LOWpackages/core/src/config/write-config-patch.ts255 // Step 2: parse the existing YAML (or empty document for first-write).COMMENT
LOWpackages/core/src/config/write-config-patch.ts280 // Step 3: apply the patch to the Document.COMMENT
LOWpackages/core/src/config/write-config-patch.ts283 // Step 4: serialize to JS for safeParse (validation), and to string forCOMMENT
LOWpackages/core/src/config/write-config-patch.ts309 // Step 5: serialize the doc to YAML. For lazy first-write, prepend theCOMMENT
LOWpackages/core/src/config/write-config-patch.ts323 // Step 6: ensure parent directory exists, then atomic write.COMMENT
LOWpackages/app/tests/integration/bridge-matrix.test.ts755 // Step 1: Baseline via WYSIWYGCOMMENT
LOWpackages/app/tests/integration/bridge-matrix.test.ts760 // Step 2: Server-side agent write via HTTP API (appends content to Y.TextCOMMENT
LOWpackages/app/tests/integration/bridge-matrix.test.ts772 // Step 3: Client's user appends via WYSIWYG — an incremental edit,COMMENT
LOWpackages/app/tests/integration/bridge-matrix.test.ts784 // Step 4: Both user edit and agent content should be presentCOMMENT
LOW…sts/integration/vite-worker-cachedir-isolation.test.ts280 // Step 1: resolve the per-worker cacheDir identifier from theCOMMENT
LOW…sts/integration/vite-worker-cachedir-isolation.test.ts312 // Step 2: enumerate rmSync call sites in the fixture. The twoCOMMENT
LOW…sts/integration/vite-worker-cachedir-isolation.test.ts335 // Step 3: pair each contentDir teardown with a siblingCOMMENT
LOW…kages/app/tests/perf/scenarios/m3-defer-mount-sweep.ts147 // Step 1: navigate to root to discard any in-memory editor cache.COMMENT
LOW…kages/app/tests/perf/scenarios/m3-defer-mount-sweep.ts151 // Step 2: cold-load the target doc and measure.COMMENT
LOWpackages/app/tests/perf/scenarios/warm-switch-cached.ts68 // Step 1: warm up docA + docBCOMMENT
LOWpackages/app/tests/perf/scenarios/warm-switch-cached.ts92 // Step 2: force Activity-mount eviction of docACOMMENT
LOWpackages/app/tests/perf/scenarios/warm-switch-cached.ts105 // Step 3: navigate back to docA — V2 cache should reparent, not rebuild.COMMENT
LOW…ckages/app/tests/stress/observer-a-multi-client.e2e.ts109 // Step 1: user on Client A starts typing into the editor (focus + position cursorCOMMENT
LOW…ckages/app/tests/stress/observer-a-multi-client.e2e.ts114 // Step 2: agent writes additional content to the same line via server-side API.COMMENT
LOW…ckages/app/tests/stress/observer-a-multi-client.e2e.ts136 // Step 3: Client A's user types at the end of the line (which now includes theCOMMENT
LOWpackages/app/tests/stress/qa-sidebar-responsive.e2e.ts975 // Step 1: pin open at narrow.COMMENT
LOWpackages/app/tests/stress/qa-sidebar-responsive.e2e.ts979 // Step 2: resize wide. Above slot is absent → smart default opens.COMMENT
LOWpackages/app/tests/stress/qa-sidebar-responsive.e2e.ts982 // Step 3: explicit collapse at wide → above slot recorded; below untouched.COMMENT
LOWpackages/app/tests/stress/qa-sidebar-responsive.e2e.ts988 // Step 4: resize back to narrow → below slot honored → right reopens.COMMENT
LOWpackages/app/tests/stress/qa-sidebar-responsive.e2e.ts991 // Step 5: both slots still coexist (the wide-visit's collapse did notCOMMENT
LOWpackages/app/src/server/agent-sim.ts221 // Step 1: Read current documentCOMMENT
LOWpackages/app/src/server/agent-sim.ts237 // Step 2: Seed if empty or missing recognizable sectionsCOMMENT
LOWpackages/app/src/server/agent-sim.ts263 // Step 3: Run patch sequenceCOMMENT
LOWpackages/app/src/server/agent-sim.ts307 // Step 1: Read file from diskCOMMENT
LOWpackages/app/src/server/agent-sim.ts315 // Step 2: Seed via HTTP API if empty or missing patch targetsCOMMENT
LOWpackages/app/src/server/agent-sim.ts334 // Step 3: Run edit sequence directly on diskCOMMENT
LOWpackages/app/src/server/agent-flow.test.ts69 // Step 1: Seed document with initial contentCOMMENT
LOWpackages/app/src/server/agent-flow.test.ts83 // Step 2: Agent writes another paragraph (simulates agent writing while doc is open)COMMENT
LOWpackages/app/src/server/agent-flow.test.ts94 // Step 3: Toggle to source — serialize Y.Doc → markdownCOMMENT
LOWpackages/app/src/server/agent-flow.test.ts103 // Step 4: Simulate user editing in source mode — add a lineCOMMENT
LOWpackages/app/src/server/agent-flow.test.ts106 // Step 5: Toggle back to WYSIWYG — parse markdown → updateYFragmentCOMMENT
LOWpackages/app/src/server/agent-flow.test.ts117 // Step 6: Verify — serialize again to check all content survivedCOMMENT
LOW…nts/CreateProjectDialog.cascade-staleness.dom.test.tsx602 // Step 1: type a name → block-nested banner appears. This is theCOMMENT
LOW…nts/CreateProjectDialog.cascade-staleness.dom.test.tsx611 // Step 2: install a MutationObserver on the banner's parent (subtree:COMMENT
LOW…nts/CreateProjectDialog.cascade-staleness.dom.test.tsx631 // Step 3: type more characters. The probe re-runs against the newCOMMENT
LOW…nts/CreateProjectDialog.cascade-staleness.dom.test.tsx638 // Step 4: wait — event-driven — for the debounced re-probe to fire.COMMENT
LOW…nts/CreateProjectDialog.cascade-staleness.dom.test.tsx649 // Step 5: wait for cascade to re-settle to block-nested (bannerCOMMENT
LOW…nts/CreateProjectDialog.cascade-staleness.dom.test.tsx697 // Step 1: type a name → cascade settles to 'free' (initial nullableCOMMENT
LOW…nts/CreateProjectDialog.cascade-staleness.dom.test.tsx708 // Step 2: install a controllable deferred on findEnclosingGitRoot soCOMMENT
LOW…nts/CreateProjectDialog.cascade-staleness.dom.test.tsx723 // Step 3: edit the name — bumps deps → cascade useEffect re-runs →COMMENT
LOW…nts/CreateProjectDialog.cascade-staleness.dom.test.tsx745 // Step 4: resolve the deferred → probe settles → cascade re-rendersCOMMENT
LOW…nts/CreateProjectDialog.cascade-staleness.dom.test.tsx797 // Step 1: type a name → cascade probes → settles to confirm-git.COMMENT
LOW…nts/CreateProjectDialog.cascade-staleness.dom.test.tsx808 // Step 2: capture the polling callback. The polling setIntervalCOMMENT
LOW…nts/CreateProjectDialog.cascade-staleness.dom.test.tsx820 // Step 3: install a controllable deferred on findEnclosingGitRootCOMMENT
LOW…nts/CreateProjectDialog.cascade-staleness.dom.test.tsx832 // Step 4: trigger a fresh probe via name edit → cascade-probeCOMMENT
LOWpackages/app/src/editor/provider-pool.test.ts2980 // Step 1: open A, let its persistence write to IDB, close it.COMMENT
LOWpackages/app/src/editor/provider-pool.test.ts2987 // Step 2: rename A → B. The fix calls closeAndClearPersistence onCOMMENT
LOWpackages/app/src/editor/provider-pool.test.ts2996 // Step 3: open B (the new location), let it persist, close it.COMMENT
LOWpackages/app/src/editor/provider-pool.test.ts3003 // Step 4: rename B → A (the move-back). This is the critical step:COMMENT
LOWpackages/app/src/editor/provider-pool.test.ts3012 // Step 5: open A again. With the IDB cleared in step 4, the newCOMMENT
LOWpackages/app/src/editor/extensions/mark-identity.ts112 // Step 1: map previous ranges forward.COMMENT
LOWpackages/app/src/editor/extensions/mark-identity.ts134 // Step 2: walk new doc, match spans to mapped ranges.COMMENT
LOW…ver/src/server-observers-paired-write-baseline.test.ts52 // Step 1: Agent paired-write via composeAndWriteRawBody.COMMENT
23 more matches not shown…
AI Slop Vocabulary25 hits · 79 pts
SeverityFileLineSnippetContext
MEDIUMpackages/app/tests/perf/scenarios/sweep-cache-regime.ts57 * # Per-fixture run for fast iteration on harness changes:COMMENT
MEDIUMpackages/app/tests/perf/lib/tempo-client.test.ts287 // convert — verifying via substring keeps the test robust againstCOMMENT
MEDIUM…/perf/baselines/2026-05-01-post-leak-fix-baseline.json140 "Anchored to merge commit that integrates origin/main containing PR #397 (TipTap+Yjs leak fix), PR #408 (perf-harnesCODE
MEDIUM…kages/app/tests/stress/docs-open-scroll-restore.e2e.ts149 // makes the assertion robust against PM scrollHeight drift across theCOMMENT
MEDIUM…ages/app/tests/stress/outline-toolbar-occlusion.e2e.ts370 // text is robust to that detail; there is exactly one such line in the doc.COMMENT
MEDIUMpackages/app/tests/stress/list-keymap.e2e.ts123 // robust to that mapping and clearer about intent.COMMENT
MEDIUMpackages/app/scripts/measure-stress.sh47# A run that measured nothing appends nothing: harness crashed before itsCOMMENT
MEDIUMpackages/app/scripts/measure-stress.sh181# anything else — not a measurement. Either the harness never reachedCOMMENT
MEDIUMpackages/app/scripts/measure-fuzz.sh205# Optional appended field (newer harness): converged-late count — seeds thatCOMMENT
MEDIUMpackages/app/scripts/measure-fuzz.sh207# passes by the harness; recorded here as a perf signal.COMMENT
MEDIUMpackages/app/scripts/measure-fuzz.sh217# anything else — not a measurement: no RESULT line (the harnessCOMMENT
MEDIUMpackages/app/scripts/measure-fuzz.sh225 # robust against future field reorderings (within reason — extending theCOMMENT
MEDIUMpackages/app/src/components/OutlinePanel.tsx129 // the guard keeps this robust under future layout changes.COMMENT
MEDIUMpackages/app/src/presence/use-presence.test.ts228 // states. Treat falsy values uniformly so the predicate is robust.COMMENT
MEDIUMpackages/app/src/editor/TiptapEditor.tsx1287 // Using index (not slug) keeps this robust to duplicate heading texts withoutCOMMENT
MEDIUM…kages/app/src/editor/slash-command/component-items.tsx465 // the one just inserted. This is robust whether the cursor lands beforeCOMMENT
MEDIUM…/src/editor/clipboard/clipboard-line-structure.test.ts156// Destination-robust oracle: model default HTML whitespace foldingCOMMENT
MEDIUMpackages/desktop/electron-builder.yml103 # harness-config write routes through its toml_edit addon. LikeCOMMENT
MEDIUMpackages/desktop/tests/main/url-scheme-handler.test.ts2078 // both so the receiver path stays robust across Electron versions andCOMMENT
MEDIUMpackages/server/src/config-file-watcher.ts66 // is the robust pattern: chokidar's directory watch sees `add`,COMMENT
MEDIUMpackages/server/src/apply-managed-rename.ts205 // robust if future passes do).COMMENT
MEDIUMpackages/server/src/api-extension.ts17812 // robust against test-mock `ServerResponse` shapes that don'tCOMMENT
MEDIUMpackages/server/src/server-factory.test.ts1472 // named marker is robust against future additions of other extensionsCOMMENT
MEDIUM…/server/src/mcp/tools/output-schema-strictness.test.ts176 // field to reject. The probe below is robust to this case because itCOMMENT
MEDIUMpackages/cli/src/commands/mcp-chain-validation.test.ts124 '# command -v npx suppressed by test harness\n',CODE
Fake / Example Data79 hits · 76 pts
SeverityFileLineSnippetContext
LOWpackages/core/src/handoff/prompt-composer.test.ts673 'lorem ipsum dolor sit amet '.repeat(2000),CODE
LOWpackages/core/src/handoff/prompt-composer.test.ts673 'lorem ipsum dolor sit amet '.repeat(2000),CODE
LOWpackages/core/src/handoff/prompt-composer.test.ts695 const hugeSelection = 'lorem ipsum dolor sit amet '.repeat(2000);CODE
LOWpackages/core/src/handoff/prompt-composer.test.ts695 const hugeSelection = 'lorem ipsum dolor sit amet '.repeat(2000);CODE
LOWpackages/core/src/handoff/prompt-composer.test.ts719 const hugeSelection = 'lorem ipsum dolor sit amet '.repeat(2000);CODE
LOWpackages/core/src/handoff/prompt-composer.test.ts719 const hugeSelection = 'lorem ipsum dolor sit amet '.repeat(2000);CODE
LOWpackages/core/src/handoff/prompt-composer.test.ts745 const hugeSelection = 'lorem ipsum dolor sit amet '.repeat(2000);CODE
LOWpackages/core/src/handoff/prompt-composer.test.ts745 const hugeSelection = 'lorem ipsum dolor sit amet '.repeat(2000);CODE
LOWpackages/core/src/handoff/prompt-composer.test.ts774 selectionMarkdown: 'lorem ipsum dolor sit amet '.repeat(2000),CODE
LOWpackages/core/src/handoff/prompt-composer.test.ts774 selectionMarkdown: 'lorem ipsum dolor sit amet '.repeat(2000),CODE
LOWpackages/core/src/handoff/prompt-composer.test.ts1300 const hugeSelection = 'lorem ipsum dolor sit amet '.repeat(2000);CODE
LOWpackages/core/src/handoff/prompt-composer.test.ts1300 const hugeSelection = 'lorem ipsum dolor sit amet '.repeat(2000);CODE
LOW…ests/integration/conflict-aware-write-surfaces.test.ts388 await execFileAsync('git', ['-C', tmpDir, 'config', 'user.email', 'test@test.com']);CODE
LOW…ests/integration/conflict-aware-write-surfaces.test.ts835 'test@test.com',CODE
LOWpackages/app/tests/perf/lib/bundle-check.test.ts38 // Lorem ipsum repeated — compresses well, so gzipped is small.COMMENT
LOW…kages/app/tests/stress/bridge-convergence.fuzz.test.ts226 const filler = 'lorem ipsum dolor sit amet '.repeat(25000);CODE
LOW…kages/app/tests/stress/bridge-convergence.fuzz.test.ts226 const filler = 'lorem ipsum dolor sit amet '.repeat(25000);CODE
LOW…kages/app/tests/stress/command-palette-semantic.e2e.ts96 await expect(cmdkInput(page)).toHaveAttribute('placeholder', 'Search by meaning');CODE
LOWpackages/app/scripts/audit-strings/extract.ts16 'placeholder',CODE
LOWpackages/app/src/editor/components/Mirror.tsx37function StatusFrame(props: { tone: 'placeholder' | 'error'; children: React.ReactNode }) {CODE
LOWpackages/app/src/editor/components/Mirror.tsx63 <StatusFrame tone="placeholder">CODE
LOWpackages/app/src/editor/components/Mirror.tsx76 <StatusFrame tone="placeholder">CODE
LOW…/src/editor/clipboard/clipboard-line-structure.test.ts588 state: EditorState.create({ schema, doc: docFromMarkdown('placeholder') }),CODE
LOW…/src/editor/clipboard/clipboard-line-structure.test.ts685 const probe = mountView(docFromMarkdown('placeholder'));CODE
LOW…ver/src/server-observers-paired-write-baseline.test.ts57 const fixturePayload = '## Section 1\n\nLorem ipsum dolor sit amet.\n';CODE
LOW…ver/src/server-observers-paired-write-baseline.test.ts57 const fixturePayload = '## Section 1\n\nLorem ipsum dolor sit amet.\n';CODE
LOWpackages/server/src/rename-log.test.ts539 await git.raw('config', 'user.email', 'test@test.com');CODE
LOWpackages/server/src/rename-log.test.ts847 await git.raw('config', 'user.email', 'test@test.com');CODE
LOWpackages/server/src/rename-log.test.ts1134 await git.raw('config', 'user.email', 'test@test.com');CODE
LOWpackages/server/src/shadow-repo.test.ts55 await git.raw('config', 'user.email', 'test@test.com');CODE
LOWpackages/server/src/shadow-repo.test.ts79 await git.raw('config', 'user.email', 'test@test.com');CODE
LOWpackages/server/src/shadow-repo.test.ts95 await git.raw('config', 'user.email', 'test@test.com');CODE
LOWpackages/server/src/shadow-repo.test.ts112 await git.raw('config', 'user.email', 'test@test.com');CODE
LOWpackages/server/src/shadow-repo.test.ts138 await git.raw('config', 'user.email', 'test@test.com');CODE
LOWpackages/server/src/shadow-repo.test.ts208 await git.raw('config', 'user.email', 'test@test.com');CODE
LOWpackages/server/src/shadow-repo.test.ts318 await git.raw('config', 'user.email', 'test@test.com');CODE
LOWpackages/server/src/shadow-repo.test.ts399 await git.raw('config', 'user.email', 'test@test.com');CODE
LOWpackages/server/src/shadow-repo.test.ts439 await git.raw('config', 'user.email', 'test@test.com');CODE
LOWpackages/server/src/shadow-repo.test.ts567 await git.raw('config', 'user.email', 'test@test.com');CODE
LOWpackages/server/src/shadow-repo.test.ts860 await git.raw('config', 'user.email', 'test@test.com');CODE
LOWpackages/server/src/shadow-repo.test.ts1078 await git.raw('config', 'user.email', 'test@test.com');CODE
LOWpackages/server/src/shadow-repo.test.ts1360 await git.raw('config', 'user.email', 'test@test.com');CODE
LOWpackages/server/src/shadow-repo.test.ts1376 GIT_AUTHOR_EMAIL: 'test@test.com',CODE
LOWpackages/server/src/shadow-repo.test.ts1378 GIT_COMMITTER_EMAIL: 'test@test.com',CODE
LOW…ges/server/src/server-observers.producer-guard.test.ts221 await git.raw('config', 'user.email', 'test@test.com');CODE
LOW…ges/server/src/server-observers.producer-guard.test.ts484 await brokenGit.raw('config', 'user.email', 'test@test.com');CODE
LOWpackages/server/src/sync-engine.test.ts84 await git.raw('config', 'user.email', 'test@test.com');CODE
LOWpackages/server/src/sync-engine.test.ts257 await git.raw('config', 'user.email', 'test@test.com');CODE
LOWpackages/server/src/sync-engine.test.ts338 await git.raw('config', 'user.email', 'test@test.com');CODE
LOWpackages/server/src/sync-engine.test.ts1252 await git.raw('config', 'user.email', 'test@test.com');CODE
LOWpackages/server/src/sync-engine.test.ts1291 await git.raw('config', 'user.email', 'test@test.com');CODE
LOWpackages/server/src/sync-engine.test.ts1324 await git.raw('config', 'user.email', 'test@test.com');CODE
LOWpackages/server/src/sync-engine.test.ts1375 await git.raw('config', 'user.email', 'test@test.com');CODE
LOWpackages/server/src/sync-engine.test.ts1426 await git.raw('config', 'user.email', 'test@test.com');CODE
LOWpackages/server/src/sync-engine.test.ts1886 await git.raw('config', 'user.email', 'test@test.com');CODE
LOWpackages/server/src/config-persistence.test.ts404 writeFileSync(parentPath, 'placeholder', 'utf-8');CODE
LOWpackages/server/src/boot.test.ts91 writeFileSync(resolve(contentDir, 'placeholder'), '');CODE
LOWpackages/server/src/shadow-branch-gc.test.ts35 await git.raw('config', 'user.email', 'test@test.com');CODE
LOWpackages/server/src/shadow-branch-gc.test.ts57 await git.raw('config', 'user.email', 'test@test.com');CODE
LOWpackages/server/src/shadow-branch-gc.test.ts106 await git.raw('config', 'user.email', 'test@test.com');CODE
19 more matches not shown…
Hallucination Indicators2 hits · 20 pts
SeverityFileLineSnippetContext
CRITICAL…tests/integration/removal-phantom-resurrection.test.ts81 const ext = server.instance.hocuspocus.configuration.extensions.find(CODE
CRITICALpackages/app/src/editor/extensions/JsxComponentView.tsx516 const fallbackNode = node.type.schema.nodes.rawMdxFallback.create(CODE
Self-Referential Comments1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMpackages/app/tests/stress/tabs-component-strip.e2e.ts48### Create a new projectCOMMENT
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOWpackages/app/scripts/perf-prod.sh10# Usage:COMMENT