@facet-tools/ui 0.0.0-stage → 0.1.0-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (82) hide show
  1. package/LICENSE +202 -0
  2. package/NOTICE +6 -0
  3. package/README.md +24 -2
  4. package/THIRD_PARTY.md +673 -0
  5. package/dist/NOTICE +6 -0
  6. package/dist/THIRD_PARTY.md +15 -0
  7. package/dist/atlas-BsWEDCxa.d.cts +4861 -0
  8. package/dist/atlas-BsWEDCxa.d.ts +4861 -0
  9. package/dist/chunk-7FW4IMVY.cjs +2013 -0
  10. package/dist/chunk-7FW4IMVY.cjs.map +1 -0
  11. package/dist/chunk-7SLSRYM3.cjs +6324 -0
  12. package/dist/chunk-7SLSRYM3.cjs.map +1 -0
  13. package/dist/chunk-A4BERWE6.js +19973 -0
  14. package/dist/chunk-A4BERWE6.js.map +1 -0
  15. package/dist/chunk-EZP2CCQY.js +6209 -0
  16. package/dist/chunk-EZP2CCQY.js.map +1 -0
  17. package/dist/chunk-FR6DIALV.js +511 -0
  18. package/dist/chunk-FR6DIALV.js.map +1 -0
  19. package/dist/chunk-GDFKDECN.cjs +1788 -0
  20. package/dist/chunk-GDFKDECN.cjs.map +1 -0
  21. package/dist/chunk-K2OVG2BC.cjs +20035 -0
  22. package/dist/chunk-K2OVG2BC.cjs.map +1 -0
  23. package/dist/chunk-LOI5RY3Y.js +1754 -0
  24. package/dist/chunk-LOI5RY3Y.js.map +1 -0
  25. package/dist/chunk-SWCO2XQL.js +1968 -0
  26. package/dist/chunk-SWCO2XQL.js.map +1 -0
  27. package/dist/chunk-WAG2ZZJH.cjs +514 -0
  28. package/dist/chunk-WAG2ZZJH.cjs.map +1 -0
  29. package/dist/classic.cjs +467 -0
  30. package/dist/classic.cjs.map +1 -0
  31. package/dist/classic.css +635 -0
  32. package/dist/classic.d.cts +4 -0
  33. package/dist/classic.d.ts +4 -0
  34. package/dist/classic.js +6 -0
  35. package/dist/classic.js.map +1 -0
  36. package/dist/companion-BUs0yNdX.d.cts +110 -0
  37. package/dist/companion-DOQ435G6.d.ts +110 -0
  38. package/dist/core/fixtures.cjs +268 -0
  39. package/dist/core/fixtures.cjs.map +1 -0
  40. package/dist/core/fixtures.d.cts +11 -0
  41. package/dist/core/fixtures.d.ts +11 -0
  42. package/dist/core/fixtures.js +261 -0
  43. package/dist/core/fixtures.js.map +1 -0
  44. package/dist/core.cjs +310 -0
  45. package/dist/core.cjs.map +1 -0
  46. package/dist/core.d.cts +268 -0
  47. package/dist/core.d.ts +268 -0
  48. package/dist/core.js +5 -0
  49. package/dist/core.js.map +1 -0
  50. package/dist/elements.cjs +616 -0
  51. package/dist/elements.cjs.map +1 -0
  52. package/dist/elements.d.cts +20 -0
  53. package/dist/elements.d.ts +20 -0
  54. package/dist/elements.js +612 -0
  55. package/dist/elements.js.map +1 -0
  56. package/dist/facet/atlas.cjs +25 -0
  57. package/dist/facet/atlas.cjs.map +1 -0
  58. package/dist/facet/atlas.d.cts +2 -0
  59. package/dist/facet/atlas.d.ts +2 -0
  60. package/dist/facet/atlas.js +4 -0
  61. package/dist/facet/atlas.js.map +1 -0
  62. package/dist/facet-ui.standalone.js +104 -0
  63. package/dist/facet.cjs +253 -0
  64. package/dist/facet.cjs.map +1 -0
  65. package/dist/facet.css +10649 -0
  66. package/dist/facet.d.cts +91 -0
  67. package/dist/facet.d.ts +91 -0
  68. package/dist/facet.js +4 -0
  69. package/dist/facet.js.map +1 -0
  70. package/dist/index.cjs +467 -0
  71. package/dist/index.cjs.map +1 -0
  72. package/dist/index.d.cts +1584 -0
  73. package/dist/index.d.ts +1584 -0
  74. package/dist/index.js +6 -0
  75. package/dist/index.js.map +1 -0
  76. package/dist/licenses/react-dom@19.2.8/LICENSE +21 -0
  77. package/dist/licenses/react@19.2.8/LICENSE +21 -0
  78. package/dist/licenses/scheduler@0.27.0/LICENSE +21 -0
  79. package/dist/tokens.css +635 -0
  80. package/dist/types-DkZBrIXE.d.cts +527 -0
  81. package/dist/types-DkZBrIXE.d.ts +527 -0
  82. package/package.json +169 -4
@@ -0,0 +1,110 @@
1
+ import { G as GherkinKeyword, S as ScenarioStep, R as RepoScan, C as Calibration, A as AtlasModel, a as RoleKey, F as FacetRecord } from './types-DkZBrIXE.cjs';
2
+
3
+ declare const GHERKIN_LABEL: Record<GherkinKeyword, string>;
4
+ declare function parseGherkin(statement: string | null | undefined): ScenarioStep[];
5
+ type GherkinTokenKind = "quoted" | "placeholder" | "literal" | "identifier" | "number" | "prose";
6
+ type GherkinToken = {
7
+ kind: GherkinTokenKind;
8
+ text: string;
9
+ };
10
+ declare function tokenizeGherkin(text: string | null | undefined): GherkinToken[];
11
+ declare function scenarioPreview(steps: ScenarioStep[]): {
12
+ label: string;
13
+ text: string;
14
+ } | null;
15
+
16
+ type CorpusSource = {
17
+ facetrc: string;
18
+ index: string;
19
+ records: Record<string, string>;
20
+ scan?: RepoScan;
21
+ taxonomy?: string;
22
+ glossary?: string;
23
+ calibration?: Calibration;
24
+ };
25
+ declare function loadCorpus(source: CorpusSource): AtlasModel;
26
+
27
+ declare const INDEX_PHASES: readonly ["connect", "config", "records", "enumerate", "index", "model", "ready"];
28
+ type IndexPhase = (typeof INDEX_PHASES)[number];
29
+ declare function phaseRank(phase: IndexPhase | string): number;
30
+ type IndexStatus = {
31
+ phase: IndexPhase;
32
+ file: string;
33
+ done: number;
34
+ total: number;
35
+ records: number;
36
+ files: number;
37
+ anchors: number;
38
+ root: string;
39
+ registry: string;
40
+ };
41
+ declare function initialStatus(): IndexStatus;
42
+ declare function mergeStatus(previous: IndexStatus, patch: Partial<IndexStatus>): IndexStatus;
43
+ type CorpusStreamHandlers = {
44
+ onStatus?: (status: IndexStatus) => void;
45
+ onReady?: (source: CorpusSource) => void;
46
+ onError?: (error: Error) => void;
47
+ };
48
+ type CorpusStream = {
49
+ addEventListener(type: string, listener: (event: MessageEvent) => void): void;
50
+ close(): void;
51
+ };
52
+ type CorpusStreamOptions = {
53
+ open?: (url: string) => CorpusStream;
54
+ };
55
+ declare function subscribeCorpus(url: string, handlers?: CorpusStreamHandlers, options?: CorpusStreamOptions): () => void;
56
+
57
+ type ProbeKey = "features" | "coverage" | "open" | "overdue" | "edges" | "anchors" | "teams" | "know" | "ops" | "pii";
58
+ type LeadSegment = {
59
+ kind: "text";
60
+ text: string;
61
+ } | {
62
+ kind: "probe";
63
+ text: string;
64
+ probe: ProbeKey;
65
+ };
66
+ declare function leadFor(model: AtlasModel, role: RoleKey | null | undefined): LeadSegment[];
67
+
68
+ type ProbeMeaning = "neutral" | "signal" | "deadline";
69
+ type ProbeRow = {
70
+ label: string;
71
+ value: string;
72
+ meaning: ProbeMeaning;
73
+ sectionKey?: string;
74
+ };
75
+ type ProbeView = {
76
+ head: string;
77
+ rows: ProbeRow[];
78
+ note: string[];
79
+ };
80
+ declare function probeOf(model: AtlasModel, key: ProbeKey): ProbeView;
81
+
82
+ type CompanionFact = {
83
+ label: string;
84
+ value: string;
85
+ meaning: ProbeMeaning;
86
+ };
87
+ type CompanionSource = {
88
+ text: string;
89
+ recordId: string | null;
90
+ };
91
+ type CompanionPlan = {
92
+ text: string;
93
+ facts: CompanionFact[];
94
+ reads: string[];
95
+ sources: CompanionSource[];
96
+ openId: string | null;
97
+ section: string | null;
98
+ follow: string[];
99
+ };
100
+ declare const COMPANION_INTRO: "Frag mich nach den geladenen Records: nach einem Record beim Namen, nach offenen Zusagen oder nach Zuständigkeiten.";
101
+ declare const COMPANION_FOOT: "antwortet aus den gelesenen Records · mit Suchindex auch aus ihrem Wortlaut · mit Claude Code im Repo auch aus dem Code";
102
+ declare function companionScope(model: AtlasModel, roleTag: string, openId: string | null): string;
103
+ declare function companionSuggestions(model: AtlasModel, openId: string | null, asked: number): string[];
104
+ type CompanionRoute = "record" | "rules" | "tests" | "open" | "teams" | "data" | "code" | "graph" | "ops" | "corpus";
105
+ declare function companionRecord(model: AtlasModel, question: string): FacetRecord | null;
106
+ declare function companionRoute(model: AtlasModel, question: string): CompanionRoute;
107
+ declare function companionAnswer(model: AtlasModel, question: string): CompanionPlan;
108
+ declare function agentPlan(model: AtlasModel, text: string, reads: string[], searches?: string[]): CompanionPlan;
109
+
110
+ export { parseGherkin as A, phaseRank as B, type CompanionPlan as C, probeOf as D, scenarioPreview as E, subscribeCorpus as F, GHERKIN_LABEL as G, tokenizeGherkin as H, INDEX_PHASES as I, type LeadSegment as L, type ProbeKey as P, COMPANION_FOOT as a, COMPANION_INTRO as b, type CompanionFact as c, type CompanionRoute as d, type CompanionSource as e, type CorpusSource as f, type CorpusStream as g, type CorpusStreamHandlers as h, type CorpusStreamOptions as i, type GherkinToken as j, type GherkinTokenKind as k, type IndexPhase as l, type IndexStatus as m, type ProbeMeaning as n, type ProbeRow as o, type ProbeView as p, agentPlan as q, companionAnswer as r, companionRecord as s, companionRoute as t, companionScope as u, companionSuggestions as v, initialStatus as w, leadFor as x, loadCorpus as y, mergeStatus as z };
@@ -0,0 +1,110 @@
1
+ import { G as GherkinKeyword, S as ScenarioStep, R as RepoScan, C as Calibration, A as AtlasModel, a as RoleKey, F as FacetRecord } from './types-DkZBrIXE.js';
2
+
3
+ declare const GHERKIN_LABEL: Record<GherkinKeyword, string>;
4
+ declare function parseGherkin(statement: string | null | undefined): ScenarioStep[];
5
+ type GherkinTokenKind = "quoted" | "placeholder" | "literal" | "identifier" | "number" | "prose";
6
+ type GherkinToken = {
7
+ kind: GherkinTokenKind;
8
+ text: string;
9
+ };
10
+ declare function tokenizeGherkin(text: string | null | undefined): GherkinToken[];
11
+ declare function scenarioPreview(steps: ScenarioStep[]): {
12
+ label: string;
13
+ text: string;
14
+ } | null;
15
+
16
+ type CorpusSource = {
17
+ facetrc: string;
18
+ index: string;
19
+ records: Record<string, string>;
20
+ scan?: RepoScan;
21
+ taxonomy?: string;
22
+ glossary?: string;
23
+ calibration?: Calibration;
24
+ };
25
+ declare function loadCorpus(source: CorpusSource): AtlasModel;
26
+
27
+ declare const INDEX_PHASES: readonly ["connect", "config", "records", "enumerate", "index", "model", "ready"];
28
+ type IndexPhase = (typeof INDEX_PHASES)[number];
29
+ declare function phaseRank(phase: IndexPhase | string): number;
30
+ type IndexStatus = {
31
+ phase: IndexPhase;
32
+ file: string;
33
+ done: number;
34
+ total: number;
35
+ records: number;
36
+ files: number;
37
+ anchors: number;
38
+ root: string;
39
+ registry: string;
40
+ };
41
+ declare function initialStatus(): IndexStatus;
42
+ declare function mergeStatus(previous: IndexStatus, patch: Partial<IndexStatus>): IndexStatus;
43
+ type CorpusStreamHandlers = {
44
+ onStatus?: (status: IndexStatus) => void;
45
+ onReady?: (source: CorpusSource) => void;
46
+ onError?: (error: Error) => void;
47
+ };
48
+ type CorpusStream = {
49
+ addEventListener(type: string, listener: (event: MessageEvent) => void): void;
50
+ close(): void;
51
+ };
52
+ type CorpusStreamOptions = {
53
+ open?: (url: string) => CorpusStream;
54
+ };
55
+ declare function subscribeCorpus(url: string, handlers?: CorpusStreamHandlers, options?: CorpusStreamOptions): () => void;
56
+
57
+ type ProbeKey = "features" | "coverage" | "open" | "overdue" | "edges" | "anchors" | "teams" | "know" | "ops" | "pii";
58
+ type LeadSegment = {
59
+ kind: "text";
60
+ text: string;
61
+ } | {
62
+ kind: "probe";
63
+ text: string;
64
+ probe: ProbeKey;
65
+ };
66
+ declare function leadFor(model: AtlasModel, role: RoleKey | null | undefined): LeadSegment[];
67
+
68
+ type ProbeMeaning = "neutral" | "signal" | "deadline";
69
+ type ProbeRow = {
70
+ label: string;
71
+ value: string;
72
+ meaning: ProbeMeaning;
73
+ sectionKey?: string;
74
+ };
75
+ type ProbeView = {
76
+ head: string;
77
+ rows: ProbeRow[];
78
+ note: string[];
79
+ };
80
+ declare function probeOf(model: AtlasModel, key: ProbeKey): ProbeView;
81
+
82
+ type CompanionFact = {
83
+ label: string;
84
+ value: string;
85
+ meaning: ProbeMeaning;
86
+ };
87
+ type CompanionSource = {
88
+ text: string;
89
+ recordId: string | null;
90
+ };
91
+ type CompanionPlan = {
92
+ text: string;
93
+ facts: CompanionFact[];
94
+ reads: string[];
95
+ sources: CompanionSource[];
96
+ openId: string | null;
97
+ section: string | null;
98
+ follow: string[];
99
+ };
100
+ declare const COMPANION_INTRO: "Frag mich nach den geladenen Records: nach einem Record beim Namen, nach offenen Zusagen oder nach Zuständigkeiten.";
101
+ declare const COMPANION_FOOT: "antwortet aus den gelesenen Records · mit Suchindex auch aus ihrem Wortlaut · mit Claude Code im Repo auch aus dem Code";
102
+ declare function companionScope(model: AtlasModel, roleTag: string, openId: string | null): string;
103
+ declare function companionSuggestions(model: AtlasModel, openId: string | null, asked: number): string[];
104
+ type CompanionRoute = "record" | "rules" | "tests" | "open" | "teams" | "data" | "code" | "graph" | "ops" | "corpus";
105
+ declare function companionRecord(model: AtlasModel, question: string): FacetRecord | null;
106
+ declare function companionRoute(model: AtlasModel, question: string): CompanionRoute;
107
+ declare function companionAnswer(model: AtlasModel, question: string): CompanionPlan;
108
+ declare function agentPlan(model: AtlasModel, text: string, reads: string[], searches?: string[]): CompanionPlan;
109
+
110
+ export { parseGherkin as A, phaseRank as B, type CompanionPlan as C, probeOf as D, scenarioPreview as E, subscribeCorpus as F, GHERKIN_LABEL as G, tokenizeGherkin as H, INDEX_PHASES as I, type LeadSegment as L, type ProbeKey as P, COMPANION_FOOT as a, COMPANION_INTRO as b, type CompanionFact as c, type CompanionRoute as d, type CompanionSource as e, type CorpusSource as f, type CorpusStream as g, type CorpusStreamHandlers as h, type CorpusStreamOptions as i, type GherkinToken as j, type GherkinTokenKind as k, type IndexPhase as l, type IndexStatus as m, type ProbeMeaning as n, type ProbeRow as o, type ProbeView as p, agentPlan as q, companionAnswer as r, companionRecord as s, companionRoute as t, companionScope as u, companionSuggestions as v, initialStatus as w, leadFor as x, loadCorpus as y, mergeStatus as z };
@@ -0,0 +1,268 @@
1
+ 'use strict';
2
+
3
+ var chunkGDFKDECN_cjs = require('../chunk-GDFKDECN.cjs');
4
+ require('../chunk-WAG2ZZJH.cjs');
5
+
6
+ // src/i18n/legacy/core/fixtures/index.ts
7
+ var localized = {
8
+ text1: "Fixture-Record nicht gefunden: "
9
+ };
10
+
11
+ // src/i18n/legacy/core/fixtures/taskflow-repo.ts
12
+ var localized2 = {
13
+ text1: 'schema_version: "1.3"\nid: tasks/create/quick-add\nlifecycle: active\nintent:\n summary: |\n Legt eine Aufgabe aus einer einzigen Eingabezeile an. Erkennt F\xE4lligkeit\n ("morgen 9:00"), Liste ("#einkauf") und Priorit\xE4t ("!hoch") beim Tippen\n und funktioniert offline mit lokaler Warteschlange.\n decision_records:\n - ADR-007\n - ADR-019\ncontract:\n scenarios:\n - id: task-added\n statement: |\n Given ein Nutzer tippt "Milch kaufen morgen 9:00 #einkauf"\n When er Enter dr\xFCckt\n Then wird die Aufgabe mit F\xE4lligkeit und Liste angelegt und erscheint sofort oben\n pre_state:\n tasks_in_list: 4\n due_date: none\n post_state:\n tasks_in_list: 5\n due_date: parsed\n list: einkauf\n - id: empty-title-rejected\n statement: |\n Given das Eingabefeld ist leer oder enth\xE4lt nur Whitespace\n When der Nutzer Enter dr\xFCckt\n Then wird keine Aufgabe angelegt und das Feld zeigt einen Hinweis\n - id: offline-queue-handoff\n statement: |\n Given das Ger\xE4t ist offline\n When eine Aufgabe angelegt wird\n Then landet sie in der lokalen Warteschlange und synct beim Reconnect exakt einmal\n pre_state:\n queue_length: 0\n post_state:\n queue_length: 1\n sync_status: pending\nverification:\n unit_tests:\n - id: src/tasks/quick_add.test.ts\n proves: [task-added, empty-title-rejected]\n - id: src/tasks/parse_input.test.ts\n proves: [task-added]\n integration_tests:\n - id: test/integration/offline_queue.test.ts\n proves: [offline-queue-handoff]\n e2e_tests:\n - id: e2e/quick-add.spec.ts\n proves: [task-added]\nobservation:\n slos:\n - name: Quick-Add Erfolgsrate\n target: 99.5\n window: 28d\n query: sum(rate(task_created_total[5m])) / sum(rate(task_create_attempt_total[5m]))\n query_source: prometheus\n alerts:\n - name: QuickAddErrorRate\n condition: rate(task_create_errors[5m]) > 0.01\n severity: critical\n runbook: docs/runbooks/quick-add.md\n continuous_checks:\n - id: synthetic-quick-add\n frequency: 5m\nknowledge:\n prerequisite_knowledge:\n question: Was muss der Nutzer bereits verstehen?\n answer: Nichts \u2014 die Syntax wird beim Tippen als Chips visualisiert.\n not_for:\n question: Wann ist das das falsche Werkzeug?\n answer: Nicht f\xFCr Aufgaben mit Unteraufgaben oder Anh\xE4ngen \u2014 daf\xFCr den vollen Editor \xF6ffnen.\n discoverability:\n question: Wo steigt der Nutzer ein?\n derive_from: [anchors, tests]\n success_signal:\n question: Woran erkennt der Nutzer den Erfolg?\n answer: Die Aufgabe erscheint sofort oben in der Liste, mit Datums-Chip.\nlineage:\n owner:\n team: tasks\n individual: lena@taskflow.example.invalid\n created_at: "2026-05-12"\n superseded_by: null\n depends_on:\n - lists/core/list-store\n - sync/queue/offline-queue\n depended_on_by:\n - reminders/due/push-notification\n - tasks/recurring/repeat-rule\n related_policies:\n - policy/data/local-first-storage\n related_assumptions:\n - assumption/sync/clock-skew-bounded\n related_data_entities:\n - data/tasks/task-item\n change_history_ref: CHANGELOG.md#quick-add\n',
14
+ text2: 'schema_version: "1.4"\nid: tasks/recurring/repeat-rule\nlifecycle: active\nintent:\n summary: |\n Regeln wie "jeden zweiten Montag" erzeugen die n\xE4chste Instanz erst beim\n Abschluss der vorherigen \u2014 keine Vorab-Flut im Posteingang.\n decision_records:\n - ADR-023\ncontract:\n scenarios:\n - id: next-instance-on-complete\n statement: |\n Given eine Aufgabe mit Regel "jeden Montag" ist offen\n When der Nutzer sie abschlie\xDFt\n Then entsteht genau eine neue Instanz mit dem n\xE4chsten Montag als F\xE4lligkeit\n pre_state:\n open_instances: 1\n post_state:\n open_instances: 1\n completed: 1\n - id: rule-edit-keeps-history\n statement: |\n Given eine Regel wird ge\xE4ndert\n When bereits abgeschlossene Instanzen existieren\n Then bleiben diese unver\xE4ndert und nur k\xFCnftige folgen der neuen Regel\n - id: dst-shift-preserves-local-time\n statement: |\n Given eine Regel trifft auf einen Zeitumstellungstag\n When die n\xE4chste Instanz erzeugt wird\n Then beh\xE4lt sie die lokale Uhrzeit, nicht den UTC-Abstand\nverification:\n unit_tests:\n - id: src/tasks/repeat_rule.test.ts\n proves: [next-instance-on-complete, rule-edit-keeps-history]\n integration_tests:\n - id: test/integration/repeat_dst.test.ts\n proves: [dst-shift-preserves-local-time]\nobservation:\n slos:\n - name: Instanz-Erzeugung korrekt\n target: 99.9\n window: 30d\n query: 1 - rate(repeat_instance_errors[1h])\n query_source: prometheus\n alerts:\n - name: RepeatInstanceDrift\n condition: repeat_instance_lag_seconds > 900\n severity: warning\n runbook: docs/runbooks/repeat-rule.md\nknowledge:\n prerequisite_knowledge:\n question: Was muss der Nutzer bereits verstehen?\n answer: Den Unterschied zwischen F\xE4lligkeit und Wiederholung \u2014 beides wird getrennt angezeigt.\n not_for:\n question: Wann ist das das falsche Werkzeug?\n answer: Nicht f\xFCr Kalendertermine mit G\xE4sten; daf\xFCr ist die Kalender-Integration gedacht.\n success_signal:\n question: Woran erkennt der Nutzer den Erfolg?\n answer: Nach dem Abschlie\xDFen steht sofort die n\xE4chste Instanz mit neuem Datum in der Liste.\nlineage:\n owner:\n team: tasks\n individual: lena@taskflow.example.invalid\n created_at: "2026-05-28"\n superseded_by: null\n depends_on:\n - tasks/create/quick-add\n depended_on_by:\n - reminders/due/push-notification\n related_assumptions:\n - assumption/sync/clock-skew-bounded\n related_data_entities:\n - data/tasks/task-item\n',
15
+ text3: 'schema_version: "1.3"\nid: tasks/archive/bulk-archive\nlifecycle: deprecated\nintent:\n summary: |\n Mehrere abgeschlossene Aufgaben in einem Zug archivieren. Ersetzt durch\n die automatische Aufr\xE4umregel in lists/core/list-store.\ncontract:\n scenarios:\n - id: archive-selected\n statement: |\n Given mehrere abgeschlossene Aufgaben sind ausgew\xE4hlt\n When der Nutzer archivieren w\xE4hlt\n Then verschwinden sie aus der Liste und bleiben im Archiv auffindbar\nverification:\n unit_tests:\n - id: src/tasks/bulk_archive.test.ts\n proves: [archive-selected]\nknowledge:\n not_for:\n question: Wann ist das das falsche Werkzeug?\n answer: Nicht mehr verwenden \u2014 die Aufr\xE4umregel erledigt das automatisch.\nlineage:\n owner:\n team: tasks\n individual: lena@taskflow.example.invalid\n created_at: "2026-05-14"\n superseded_by: lists/core/list-store\n depends_on:\n - lists/core/list-store\n related_data_entities:\n - data/tasks/task-item\n',
16
+ text4: 'schema_version: "1.5"\nid: sync/queue/offline-queue\nlifecycle: active\nintent:\n summary: |\n \xC4nderungen werden lokal geschrieben und beim Reconnect exakt einmal\n \xFCbertragen. Die Warteschlange \xFCbersteht App-Neustarts.\n decision_records:\n - ADR-011\ncontract:\n scenarios:\n - id: exactly-once-delivery\n statement: |\n Given drei \xC4nderungen liegen in der Warteschlange\n When die Verbindung zur\xFCckkehrt\n Then wird jede \xC4nderung genau einmal \xFCbertragen, in Ursprungsreihenfolge\n pre_state:\n queue_length: 3\n online: false\n post_state:\n queue_length: 0\n online: true\n duplicates: 0\n - id: queue-survives-restart\n statement: |\n Given die Warteschlange ist nicht leer\n When die App neu startet\n Then ist die Warteschlange unver\xE4ndert vorhanden\n - id: poison-item-quarantine\n statement: |\n Given ein Element scheitert dreimal am Server\n When der n\xE4chste Versuch ansteht\n Then wandert es in die Quarant\xE4ne und blockiert die Schlange nicht\nverification:\n unit_tests:\n - id: src/sync/queue.test.ts\n proves: [queue-survives-restart]\n integration_tests:\n - id: test/integration/exactly_once.test.ts\n proves: [exactly-once-delivery]\nobservation:\n slos:\n - name: Sync-Verzug p95\n target: 99.0\n window: 30d\n query: histogram_quantile(0.95, rate(sync_lag_seconds_bucket[5m])) < 30\n query_source: grafana\n alerts:\n - name: SyncQueueStalled\n condition: sync_queue_age_seconds > 3600\n severity: critical\n runbook: docs/runbooks/sync-queue.md\n - name: PoisonItems\n condition: sync_quarantine_total > 0\n severity: warning\n continuous_checks:\n - id: synthetic-sync-roundtrip\n frequency: 15m\nknowledge:\n prerequisite_knowledge:\n question: Was muss ein Entwickler wissen?\n answer: Die Schlange ist pro Ger\xE4t, nicht pro Nutzer \u2014 zwei Ger\xE4te synchronisieren unabh\xE4ngig.\n not_for:\n question: Wann ist das das falsche Werkzeug?\n answer: Kein Ersatz f\xFCr Konfliktl\xF6sung; das macht sync/conflict/last-write-wins.\n limitations:\n question: Wo sind die Grenzen?\n answer: \xDCber 500 wartende Elemente wird die \xDCbertragung geb\xFCndelt und langsamer.\nlineage:\n owner:\n team: sync\n individual: tarek@taskflow.example.invalid\n created_at: "2026-05-19"\n superseded_by: null\n depends_on:\n - billing/quota/device-limit\n depended_on_by:\n - tasks/create/quick-add\n - sync/conflict/last-write-wins\n related_policies:\n - policy/data/local-first-storage\n related_assumptions:\n - assumption/sync/clock-skew-bounded\n related_data_entities:\n - data/tasks/task-item\n',
17
+ text5: 'schema_version: "1.5"\nid: sync/conflict/last-write-wins\nlifecycle: active\nintent:\n summary: |\n Konflikte l\xF6sen sich zugunsten des j\xFCngsten Schreibvorgangs auf. Der\n verworfene Stand bleibt 30 Tage als Version abrufbar.\n decision_records:\n - ADR-012\ncontract:\n scenarios:\n - id: newest-write-wins\n statement: |\n Given zwei Ger\xE4te \xE4ndern dieselbe Aufgabe offline\n When beide synchronisieren\n Then gilt der j\xFCngere Zeitstempel und der \xE4ltere Stand wird als Version abgelegt\n pre_state:\n versions: 0\n post_state:\n versions: 1\n - id: equal-timestamp-tiebreak\n statement: |\n Given zwei \xC4nderungen tragen denselben Zeitstempel\n When sie zusammentreffen\n Then entscheidet die Ger\xE4te-ID deterministisch\n - id: version-retention\n statement: |\n Given eine verworfene Version ist 30 Tage alt\n When der Aufr\xE4umlauf startet\n Then wird sie gel\xF6scht\nverification:\n unit_tests:\n - id: src/sync/conflict.test.ts\n proves: [newest-write-wins, equal-timestamp-tiebreak]\nobservation:\n slos:\n - name: Konfliktrate\n target: 99.0\n window: 28d\n query: 1 - rate(sync_conflicts_total[1h]) / rate(sync_writes_total[1h])\n query_source: prometheus\n alerts:\n - name: ConflictSpike\n condition: rate(sync_conflicts_total[15m]) > 5\n severity: warning\nknowledge:\n prerequisite_knowledge:\n question: Was muss ein Entwickler wissen?\n answer: Zeitstempel kommen vom Ger\xE4t \u2014 die Annahme zur Uhrenabweichung ist tragend.\n limitations:\n question: Wo sind die Grenzen?\n answer: Feldweises Zusammenf\xFChren findet nicht statt; es gewinnt immer der ganze Datensatz.\nlineage:\n owner:\n team: sync\n individual: tarek@taskflow.example.invalid\n created_at: "2026-06-02"\n superseded_by: null\n depends_on:\n - sync/queue/offline-queue\n related_assumptions:\n - assumption/sync/clock-skew-bounded\n related_data_entities:\n - data/tasks/task-item\n',
18
+ text6: 'schema_version: "1.4"\nid: lists/core/list-store\nlifecycle: active\nintent:\n summary: |\n Listen als gemeinsamer Speicher mit stabiler Sortierung, die auch nach\n Offline-Merges gleich bleibt. R\xE4umt abgeschlossene Aufgaben automatisch auf.\n decision_records:\n - ADR-004\ncontract:\n scenarios:\n - id: stable-order-after-merge\n statement: |\n Given zwei Ger\xE4te f\xFCgen gleichzeitig Aufgaben ein\n When beide synchronisieren\n Then ist die Reihenfolge auf beiden Ger\xE4ten identisch\n pre_state:\n items: 4\n post_state:\n items: 6\n order_hash: equal\n - id: auto-cleanup-after-30d\n statement: |\n Given eine Aufgabe ist seit 30 Tagen abgeschlossen\n When der Aufr\xE4umlauf startet\n Then wandert sie ins Archiv\n - id: rename-keeps-references\n statement: |\n Given eine Liste wird umbenannt\n When Aufgaben auf sie verweisen\n Then bleiben alle Verweise g\xFCltig\nverification:\n unit_tests:\n - id: src/lists/store.test.ts\n proves: [stable-order-after-merge, rename-keeps-references]\n integration_tests:\n - id: test/integration/cleanup.test.ts\n proves: [auto-cleanup-after-30d]\n e2e_tests:\n - id: e2e/list-order.spec.ts\n proves: [stable-order-after-merge]\nobservation:\n slos:\n - name: Listen-Ladezeit p95\n target: 99.5\n window: 28d\n query: histogram_quantile(0.95, rate(list_load_ms_bucket[5m])) < 250\n query_source: grafana\n alerts:\n - name: ListLoadSlow\n condition: p95_list_load_ms > 600\n severity: warning\n runbook: docs/runbooks/list-store.md\nknowledge:\n prerequisite_knowledge:\n question: Was muss ein Entwickler wissen?\n answer: Die Sortierung nutzt fraktionale Indizes, keine ganzzahligen Positionen.\n not_for:\n question: Wann ist das das falsche Werkzeug?\n answer: Nicht als allgemeine Datenbank f\xFCr Nicht-Listen-Objekte.\n success_signal:\n question: Woran erkennt der Nutzer den Erfolg?\n answer: Nach dem Wechsel zwischen Ger\xE4ten steht die Liste in derselben Reihenfolge.\n limitations:\n question: Wo sind die Grenzen?\n answer: \xDCber 5000 Elemente pro Liste wird die Sortierung neu vergeben.\nlineage:\n owner:\n team: tasks\n individual: nina@taskflow.example.invalid\n created_at: "2026-05-12"\n superseded_by: null\n depended_on_by:\n - tasks/create/quick-add\n - tasks/archive/bulk-archive\n - lists/sharing/shared-lists\n related_policies:\n - policy/data/local-first-storage\n related_data_entities:\n - data/lists/list\n - data/tasks/task-item\n',
19
+ text7: 'schema_version: "1.4"\nid: lists/sharing/shared-lists\nlifecycle: active\nintent:\n summary: |\n Listen mit anderen teilen, mit Rollen je Liste: Ansehen, Bearbeiten,\n Verwalten. Einladungen laufen \xFCber einen Link mit Ablaufdatum.\ncontract:\n scenarios:\n - id: invite-link-expires\n statement: |\n Given ein Einladungslink ist \xE4lter als 7 Tage\n When jemand ihn \xF6ffnet\n Then wird der Zugang verweigert und ein neuer Link angefordert\n - id: viewer-cannot-edit\n statement: |\n Given ein Nutzer hat die Rolle Ansehen\n When er eine Aufgabe \xE4ndern will\n Then wird die \xC4nderung abgelehnt und die Oberfl\xE4che zeigt den Grund\n - id: owner-transfer\n statement: |\n Given der Eigent\xFCmer verl\xE4sst die Liste\n When er die Rolle \xFCbergibt\n Then hat genau ein anderes Mitglied die Rolle Verwalten\nverification:\n unit_tests:\n - id: src/lists/roles.test.ts\n proves: [viewer-cannot-edit]\n integration_tests:\n - id: test/integration/invite_link.test.ts\n proves: [invite-link-expires]\nobservation:\n alerts:\n - name: InviteAbuse\n condition: rate(invite_created_total[10m]) > 50\n severity: warning\nknowledge:\n prerequisite_knowledge:\n question: Was muss der Nutzer bereits verstehen?\n answer: Dass Rollen pro Liste gelten, nicht pro Konto.\n not_for:\n question: Wann ist das das falsche Werkzeug?\n answer: Keine Organisationsverwaltung \u2014 f\xFCr Teams gibt es Arbeitsbereiche.\nlineage:\n owner:\n team: growth\n individual: samir@taskflow.example.invalid\n created_at: "2026-06-18"\n superseded_by: null\n depends_on:\n - lists/core/list-store\n - identity/access/role-check\n related_policies:\n - policy/data/local-first-storage\n related_data_entities:\n - data/lists/list\n - data/identity/user\n',
20
+ text8: 'schema_version: "1.3"\nid: reminders/due/push-notification\nlifecycle: active\nintent:\n summary: |\n F\xE4llige Aufgaben melden sich per Push. Die Zustellung respektiert\n Zeitzone und Ruhezeiten des Empf\xE4ngers.\n decision_records:\n - ADR-016\ncontract:\n scenarios:\n - id: due-triggers-push\n statement: |\n Given eine Aufgabe wird f\xE4llig\n When der Empf\xE4nger nicht in der Ruhezeit ist\n Then erh\xE4lt er innerhalb von 60 Sekunden eine Push-Nachricht\n pre_state:\n pushes_sent: 0\n post_state:\n pushes_sent: 1\n - id: quiet-hours-suppress\n statement: |\n Given die Ortszeit des Empf\xE4ngers liegt zwischen 22:00 und 07:00\n When eine Aufgabe f\xE4llig wird\n Then wird die Nachricht bis 07:00 zur\xFCckgehalten\n pre_state:\n pushes_sent: 0\n post_state:\n pushes_sent: 0\n deferred: 1\n - id: no-duplicate-push\n statement: |\n Given eine Aufgabe wurde bereits gemeldet\n When der Zustelllauf sie erneut sieht\n Then wird keine zweite Nachricht gesendet\nverification:\n unit_tests:\n - id: src/reminders/quiet_hours.test.ts\n proves: [quiet-hours-suppress]\n integration_tests:\n - id: test/integration/due_push.test.ts\n proves: [due-triggers-push]\nobservation:\n slos:\n - name: Zustellung unter 60 s\n target: 99.0\n window: 28d\n query: histogram_quantile(0.95, rate(push_delay_seconds_bucket[5m])) < 60\n query_source: prometheus\n alerts:\n - name: PushBacklog\n condition: push_queue_depth > 1000\n severity: critical\n - name: QuietHoursViolation\n condition: quiet_hours_breach_total > 0\n severity: critical\n runbook: docs/runbooks/quiet-hours.md\n continuous_checks:\n - id: synthetic-due-push\n frequency: 1h\nknowledge:\n prerequisite_knowledge:\n question: Was muss ein Entwickler wissen?\n answer: Die Ortszeit stammt aus dem Ger\xE4teprofil, nicht aus der IP-Adresse.\n success_signal:\n question: Woran erkennt der Nutzer den Erfolg?\n answer: Die Nachricht kommt zur richtigen Zeit und nicht nachts.\nlineage:\n owner:\n team: growth\n individual: samir@taskflow.example.invalid\n created_at: "2026-06-05"\n superseded_by: null\n depends_on:\n - tasks/create/quick-add\n - notifications/delivery/channel-fanout\n related_policies:\n - policy/notifications/quiet-hours\n related_assumptions:\n - assumption/growth/push-optin-rate\n related_data_entities:\n - data/identity/user\n',
21
+ text9: 'schema_version: "1.5"\nid: notifications/delivery/channel-fanout\nlifecycle: active\nintent:\n summary: |\n Ein Kanal f\xFCr alle Ausg\xE4nge \u2014 Push, Mail, In-App \u2014 mit einheitlicher\n Unterdr\xFCckung w\xE4hrend der Ruhezeiten.\ncontract:\n scenarios:\n - id: fanout-respects-preferences\n statement: |\n Given ein Nutzer hat Mail abgew\xE4hlt\n When eine Meldung entsteht\n Then geht sie nur \xFCber Push und In-App\n - id: single-suppression-point\n statement: |\n Given die Ruhezeit gilt\n When eine Meldung \xFCber einen beliebigen Kanal ausgeht\n Then greift dieselbe Unterdr\xFCckung\nverification:\n unit_tests:\n - id: src/notifications/fanout.test.ts\n proves: [fanout-respects-preferences, single-suppression-point]\n e2e_tests:\n - id: e2e/notification-prefs.spec.ts\n proves: [fanout-respects-preferences]\nobservation:\n slos:\n - name: Fanout-Erfolgsrate\n target: 99.9\n window: 30d\n query: 1 - rate(fanout_errors[5m]) / rate(fanout_total[5m])\n query_source: prometheus\n alerts:\n - name: FanoutErrors\n condition: rate(fanout_errors[5m]) > 0.02\n severity: critical\n runbook: docs/runbooks/fanout.md\nknowledge:\n prerequisite_knowledge:\n question: Was muss ein Entwickler wissen?\n answer: Neue Kan\xE4le registrieren sich, sie werden nicht einprogrammiert.\n limitations:\n question: Wo sind die Grenzen?\n answer: Keine Zustellgarantie f\xFCr Mail \u2014 dort gilt nur \xDCbergabe an den Versender.\nlineage:\n owner:\n team: platform\n individual: rui@taskflow.example.invalid\n created_at: "2026-06-21"\n superseded_by: null\n depended_on_by:\n - reminders/due/push-notification\n related_policies:\n - policy/notifications/quiet-hours\n related_data_entities:\n - data/identity/user\n',
22
+ text10: 'schema_version: "1.5"\nid: search/fulltext/task-search\nlifecycle: planned\nintent:\n summary: |\n Volltext \xFCber Aufgaben und Listen, mit Filtern nach Liste, F\xE4lligkeit\n und Person. Noch nicht implementiert.\ncontract:\n scenarios:\n - id: search-finds-by-title\n statement: |\n Given eine Aufgabe enth\xE4lt "Milch" im Titel\n When der Nutzer "milch" sucht\n Then erscheint sie im Ergebnis, unabh\xE4ngig von Gro\xDF- und Kleinschreibung\n - id: search-respects-sharing\n statement: |\n Given eine Aufgabe liegt in einer nicht geteilten Liste\n When ein anderer Nutzer sucht\n Then erscheint sie nicht im Ergebnis\nlineage:\n owner:\n team: platform\n individual: rui@taskflow.example.invalid\n created_at: "2026-07-21"\n superseded_by: null\n depends_on:\n - lists/core/list-store\n related_data_entities:\n - data/tasks/task-item\n',
23
+ text11: 'schema_version: "1.5"\nid: policy/notifications/quiet-hours\nlifecycle: active\nintent:\n summary: |\n Ruhezeiten f\xFCr ausgehende Nachrichten. Sch\xFCtzt die Nachtruhe der\n Empf\xE4nger und erf\xFCllt die Anforderungen an Einwilligung.\n regulatory_basis:\n - DSGVO Art. 6 Abs. 1 lit. f\n - TTDSG \xA7 25 Abs. 1\ncontract:\n clauses:\n - id: QH-1\n requirement: |\n Push-Nachrichten M\xDCSSEN zwischen 22:00 und 07:00 Ortszeit des\n Empf\xE4ngers unterdr\xFCckt werden.\n - id: QH-2\n requirement: |\n Sicherheitskritische Hinweise D\xDCRFEN die Ruhezeit durchbrechen,\n wenn die Durchbrechung protokolliert wird.\n - id: QH-3\n requirement: |\n Die Ortszeit SOLLTE aus dem Ger\xE4teprofil stammen, nicht aus der\n IP-Adresse.\nscope:\n domains:\n - reminders\n - notifications\n features:\n - reminders/due/push-notification\nverification:\n compliance_checks:\n - id: quiet-hours-audit\n last_established: "2026-04-12"\n frequency: quarterly\n next_due: "2026-07-12"\n audit_artifacts:\n - docs/audit/quiet-hours-2026-Q2.pdf\nlineage:\n owner:\n team: platform\n individual: rui@taskflow.example.invalid\n created_at: "2026-05-30"\n superseded_by: null\n depended_on_by:\n - reminders/due/push-notification\n - notifications/delivery/channel-fanout\n',
24
+ text12: 'schema_version: "1.4"\nid: policy/data/local-first-storage\nlifecycle: active\nintent:\n summary: |\n Daten liegen zuerst auf dem Ger\xE4t. Serverkopien sind Replikate und\n d\xFCrfen nur verschl\xFCsselt ruhen.\n regulatory_basis:\n - DSGVO Art. 32\ncontract:\n clauses:\n - id: LF-1\n requirement: |\n Nutzerdaten M\xDCSSEN auf dem Ger\xE4t verschl\xFCsselt gespeichert werden.\n - id: LF-2\n requirement: |\n Serverseitige Replikate M\xDCSSEN im Ruhezustand verschl\xFCsselt sein.\n - id: LF-3\n requirement: |\n Ein Export der eigenen Daten MUSS in maschinenlesbarer Form\n m\xF6glich sein.\n - id: LF-4\n requirement: |\n Telemetrie SOLLTE keine Inhalte von Aufgaben enthalten.\nscope:\n domains:\n - tasks\n - lists\n - sync\nverification:\n compliance_checks:\n - id: encryption-at-rest-audit\n last_established: "2026-03-02"\n frequency: quarterly\n next_due: "2026-06-02"\n audit_artifacts:\n - docs/audit/encryption-2026-Q1.pdf\nlineage:\n owner:\n team: platform\n individual: rui@taskflow.example.invalid\n created_at: "2026-05-15"\n superseded_by: null\n depended_on_by:\n - tasks/create/quick-add\n - lists/core/list-store\n - sync/queue/offline-queue\n - lists/sharing/shared-lists\n',
25
+ text13: 'schema_version: "1.4"\nid: assumption/sync/clock-skew-bounded\nlifecycle: active\nstatement: |\n Die Uhren aller schreibenden Ger\xE4te laufen um h\xF6chstens 30 Sekunden\n auseinander.\ncriticality: high\nlast_reviewed_at: "2025-05-14"\nrisk_if_false: |\n Die Konfliktl\xF6sung w\xE4hlt den falschen Gewinner; verworfene \xC4nderungen\n wirken f\xFCr den Nutzer wie Datenverlust.\nevidence:\n - date: "2025-05-14"\n kind: measurement\n note: NTP-Messung \xFCber 30 Tage auf 12 000 Ger\xE4ten, p99 bei 8 Sekunden.\n - date: "2024-11-02"\n kind: incident-review\n note: Nachbetrachtung zu doppelten Erinnerungen, Ursache war Zeitzone, nicht Uhrabweichung.\nreferenced_by:\n - tasks/create/quick-add\n - tasks/recurring/repeat-rule\n - sync/queue/offline-queue\n - sync/conflict/last-write-wins\nlineage:\n owner:\n team: sync\n individual: tarek@taskflow.example.invalid\n created_at: "2024-06-20"\n',
26
+ text14: 'schema_version: "1.4"\nid: assumption/growth/push-optin-rate\nlifecycle: active\nstatement: |\n Mindestens 60 Prozent der Nutzer erlauben Push-Nachrichten.\ncriticality: medium\nlast_reviewed_at: "2026-06-30"\nrisk_if_false: |\n Erinnerungen erreichen die Mehrheit nicht; der Nutzen von F\xE4lligkeiten\n sinkt und die Mail-Zustellung wird tragend.\nevidence:\n - date: "2026-06-30"\n kind: measurement\n note: Opt-in-Rate der letzten 90 Tage bei 68 Prozent.\nreferenced_by:\n - reminders/due/push-notification\nlineage:\n owner:\n team: growth\n individual: samir@taskflow.example.invalid\n created_at: "2026-06-05"\n',
27
+ text15: 'schema_version: "1.5"\nid: data/tasks/task-item\nlifecycle: active\nintent:\n summary: |\n Eine einzelne Aufgabe. Kanonische Form f\xFCr alle Clients und die\n Sync-Warteschlange.\ncanonical_schema:\n version: 3\n fields:\n - name: id\n type: uuid\n constraints: primary key\n - name: title\n type: string\n constraints: 1..200 Zeichen\n - name: assignee_email\n type: string\n sensitivity: pii\n - name: list_id\n type: uuid\n references: data/lists/list\n - name: due_at\n type: timestamp\n constraints: UTC, optional\n - name: completed_at\n type: timestamp\n constraints: UTC, optional\nretention:\n duration: 24 Monate nach Abschluss\n policy: |\n Danach wird der Datensatz anonymisiert: Titel und Zuweisung werden\n entfernt, Zeitstempel bleiben f\xFCr Statistik erhalten.\nread_by:\n - tasks/create/quick-add\n - tasks/recurring/repeat-rule\n - lists/core/list-store\n - search/fulltext/task-search\nmutated_by:\n - tasks/create/quick-add\n - tasks/recurring/repeat-rule\n - sync/conflict/last-write-wins\nlineage:\n owner:\n team: tasks\n individual: nina@taskflow.example.invalid\n created_at: "2026-05-12"\n related_policies:\n - policy/data/local-first-storage\n',
28
+ text16: 'schema_version: "1.5"\nid: data/lists/list\nlifecycle: active\nintent:\n summary: |\n Eine Liste als Beh\xE4lter f\xFCr Aufgaben, mit Mitgliedern und Rollen.\ncanonical_schema:\n version: 2\n fields:\n - name: id\n type: uuid\n constraints: primary key\n - name: name\n type: string\n constraints: 1..80 Zeichen\n - name: owner_id\n type: uuid\n references: data/identity/user\n - name: member_roles\n type: map\n constraints: user_id zu Rolle\n - name: order_seed\n type: string\n constraints: fraktionaler Index\nretention:\n duration: unbegrenzt\n policy: |\n Bleibt bestehen, solange mindestens ein Mitglied existiert; danach\n 30 Tage Karenz, dann L\xF6schung.\nread_by:\n - lists/core/list-store\n - lists/sharing/shared-lists\n - search/fulltext/task-search\nmutated_by:\n - lists/core/list-store\n - lists/sharing/shared-lists\nlineage:\n owner:\n team: tasks\n individual: nina@taskflow.example.invalid\n created_at: "2026-05-12"\n',
29
+ text17: 'schema_version: "1.4"\nid: data/identity/user\nlifecycle: active\nintent:\n summary: |\n Ein Konto mit Kontaktwegen und Zustellvorlieben.\ncanonical_schema:\n version: 4\n fields:\n - name: id\n type: uuid\n constraints: primary key\n - name: email\n type: string\n sensitivity: pii\n - name: display_name\n type: string\n sensitivity: pii\n - name: timezone\n type: string\n constraints: IANA-Zone\n - name: push_token\n type: string\n sensitivity: encrypted\n - name: channel_prefs\n type: map\n constraints: Kanal zu Boolean\nretention:\n duration: 36 Monate nach letzter Anmeldung\n policy: |\n Danach L\xF6schung des Kontos; Aufgaben in geteilten Listen werden\n anonymisiert \xFCbergeben.\nread_by:\n - lists/sharing/shared-lists\n - reminders/due/push-notification\n - notifications/delivery/channel-fanout\nmutated_by:\n - notifications/delivery/channel-fanout\nlineage:\n owner:\n team: platform\n individual: rui@taskflow.example.invalid\n created_at: "2026-05-15"\n related_policies:\n - policy/data/local-first-storage\n'
30
+ };
31
+
32
+ // src/core/fixtures/taskflow-repo.ts
33
+ var FACETRC = `schema_version: "1.5"
34
+ records: docs/facets
35
+ schema: schema
36
+ sources:
37
+ - apps
38
+ - packages
39
+ - crates
40
+ tools:
41
+ repo:
42
+ provider: github
43
+ url: https://github.example.invalid/example/taskflow
44
+ branch: main
45
+ adr:
46
+ path: "docs/adr/{id}.md"
47
+ observability:
48
+ signoz: https://signoz.taskflow.example.invalid
49
+ grafana: https://grafana.taskflow.example.invalid
50
+ storybook:
51
+ url: https://storybook.taskflow.example.invalid
52
+ `;
53
+ var INDEX = `records:
54
+ - docs/facets/features/tasks/create/quick-add.yaml
55
+ - docs/facets/features/tasks/recurring/repeat-rule.yaml
56
+ - docs/facets/features/tasks/archive/bulk-archive.yaml
57
+ - docs/facets/features/sync/queue/offline-queue.yaml
58
+ - docs/facets/features/sync/conflict/last-write-wins.yaml
59
+ - docs/facets/features/lists/core/list-store.yaml
60
+ - docs/facets/features/lists/sharing/shared-lists.yaml
61
+ - docs/facets/features/reminders/due/push-notification.yaml
62
+ - docs/facets/features/notifications/delivery/channel-fanout.yaml
63
+ - docs/facets/features/search/fulltext/task-search.yaml
64
+ - docs/facets/policies/notifications/quiet-hours.yaml
65
+ - docs/facets/policies/data/local-first-storage.yaml
66
+ - docs/facets/assumptions/sync/clock-skew-bounded.yaml
67
+ - docs/facets/assumptions/growth/push-optin-rate.yaml
68
+ - docs/facets/data/tasks/task-item.yaml
69
+ - docs/facets/data/lists/list.yaml
70
+ - docs/facets/data/identity/user.yaml
71
+ `;
72
+ var RECORDS = {
73
+ "docs/facets/features/tasks/create/quick-add.yaml": localized2.text1,
74
+ "docs/facets/features/tasks/recurring/repeat-rule.yaml": localized2.text2,
75
+ "docs/facets/features/tasks/archive/bulk-archive.yaml": localized2.text3,
76
+ "docs/facets/features/sync/queue/offline-queue.yaml": localized2.text4,
77
+ "docs/facets/features/sync/conflict/last-write-wins.yaml": localized2.text5,
78
+ "docs/facets/features/lists/core/list-store.yaml": localized2.text6,
79
+ "docs/facets/features/lists/sharing/shared-lists.yaml": localized2.text7,
80
+ "docs/facets/features/reminders/due/push-notification.yaml": localized2.text8,
81
+ "docs/facets/features/notifications/delivery/channel-fanout.yaml": localized2.text9,
82
+ "docs/facets/features/search/fulltext/task-search.yaml": localized2.text10,
83
+ "docs/facets/policies/notifications/quiet-hours.yaml": localized2.text11,
84
+ "docs/facets/policies/data/local-first-storage.yaml": localized2.text12,
85
+ "docs/facets/assumptions/sync/clock-skew-bounded.yaml": localized2.text13,
86
+ "docs/facets/assumptions/growth/push-optin-rate.yaml": localized2.text14,
87
+ "docs/facets/data/tasks/task-item.yaml": localized2.text15,
88
+ "docs/facets/data/lists/list.yaml": localized2.text16,
89
+ "docs/facets/data/identity/user.yaml": localized2.text17
90
+ };
91
+ var SCAN = {
92
+ scannedAt: "2026-07-29T08:12:00Z",
93
+ lastCommit: { sha: "9f3ac21", at: "2026-07-26T14:02:00Z", by: "nina@taskflow.example.invalid" },
94
+ totalLoc: 84200,
95
+ testLoc: 22800,
96
+ testFiles: 96,
97
+ trees: [
98
+ { path: "apps", loc: 41200 },
99
+ { path: "packages", loc: 31600 },
100
+ { path: "crates", loc: 11400 }
101
+ ],
102
+ domainLoc: {
103
+ tasks: 26400,
104
+ sync: 18200,
105
+ lists: 14900,
106
+ reminders: 11600,
107
+ notifications: 7300,
108
+ search: 5800
109
+ },
110
+ coverageReport: null,
111
+ anchoredFiles: [
112
+ { path: "apps/mobile/src/tasks/quick_add.ts", loc: 96 },
113
+ { path: "apps/mobile/src/tasks/parse_input.ts", loc: 54 },
114
+ { path: "apps/mobile/src/tasks/bulk_archive.ts", loc: 71 },
115
+ { path: "apps/web/src/lists/sharing.tsx", loc: 142 },
116
+ { path: "packages/core/src/repeat/rule.ts", loc: 118 },
117
+ { path: "packages/core/src/lists/store.ts", loc: 233 },
118
+ { path: "packages/core/src/lists/order.ts", loc: 47 },
119
+ { path: "packages/core/src/reminders/due.ts", loc: 88 },
120
+ { path: "packages/core/src/reminders/quiet_hours.ts", loc: 39 },
121
+ { path: "packages/core/src/notifications/fanout.ts", loc: 76 },
122
+ { path: "crates/sync/src/queue.rs", loc: 164 },
123
+ { path: "crates/sync/src/quarantine.rs", loc: 58 },
124
+ { path: "crates/sync/src/conflict.rs", loc: 91 }
125
+ ],
126
+ unanchoredFiles: [
127
+ { path: "apps/mobile/src/tasks/quick_add.spec.ts", loc: 84 },
128
+ { path: "apps/mobile/src/tasks/inline_edit.tsx", loc: 66 },
129
+ { path: "apps/web/src/lists/sharing.spec.tsx", loc: 51 },
130
+ { path: "apps/web/src/App.tsx", loc: 28 },
131
+ { path: "packages/core/src/lists/store.spec.ts", loc: 112 },
132
+ { path: "packages/core/src/util/id.ts", loc: 14 },
133
+ { path: "packages/ui/src/Button.tsx", loc: 37 },
134
+ { path: "crates/sync/src/backoff.rs", loc: 22 },
135
+ { path: "crates/sync/tests/queue_test.rs", loc: 73 }
136
+ ],
137
+ anchors: {
138
+ "tasks/create/quick-add": [
139
+ {
140
+ path: "apps/mobile/src/tasks/quick_add.ts",
141
+ line: 48,
142
+ role: "primary",
143
+ excerpt: "export async function quickAdd(input: string) {"
144
+ },
145
+ {
146
+ path: "apps/mobile/src/tasks/parse_input.ts",
147
+ line: 12,
148
+ role: "secondary",
149
+ excerpt: "export function parseInput(raw: string): ParsedTask {"
150
+ }
151
+ ],
152
+ "tasks/recurring/repeat-rule": [
153
+ {
154
+ path: "packages/core/src/repeat/rule.ts",
155
+ line: 76,
156
+ role: "primary",
157
+ excerpt: "export function nextInstance(rule: RepeatRule, from: Date) {"
158
+ }
159
+ ],
160
+ "tasks/archive/bulk-archive": [
161
+ {
162
+ path: "apps/mobile/src/tasks/bulk_archive.ts",
163
+ line: 31,
164
+ role: "primary",
165
+ excerpt: "export function bulkArchive(ids: string[]) {"
166
+ }
167
+ ],
168
+ "sync/queue/offline-queue": [
169
+ {
170
+ path: "crates/sync/src/queue.rs",
171
+ line: 118,
172
+ role: "primary",
173
+ excerpt: "pub fn enqueue(&mut self, change: Change) -> Result<()> {"
174
+ },
175
+ {
176
+ path: "crates/sync/src/quarantine.rs",
177
+ line: 44,
178
+ role: "secondary",
179
+ excerpt: "pub fn quarantine(&mut self, item: QueueItem) {"
180
+ }
181
+ ],
182
+ "sync/conflict/last-write-wins": [
183
+ {
184
+ path: "crates/sync/src/conflict.rs",
185
+ line: 62,
186
+ role: "primary",
187
+ excerpt: "pub fn resolve(local: &Rev, remote: &Rev) -> Winner {"
188
+ }
189
+ ],
190
+ "lists/core/list-store": [
191
+ {
192
+ path: "packages/core/src/lists/store.ts",
193
+ line: 204,
194
+ role: "primary",
195
+ excerpt: "export class ListStore implements Store<List> {"
196
+ },
197
+ {
198
+ path: "packages/core/src/lists/order.ts",
199
+ line: 19,
200
+ role: "secondary",
201
+ excerpt: "export function fractionalIndex(a?: string, b?: string) {"
202
+ }
203
+ ],
204
+ "lists/sharing/shared-lists": [
205
+ {
206
+ path: "apps/web/src/lists/sharing.tsx",
207
+ line: 87,
208
+ role: "primary",
209
+ excerpt: "export function SharingPanel({ list }: Props) {"
210
+ }
211
+ ],
212
+ "reminders/due/push-notification": [
213
+ {
214
+ path: "packages/core/src/reminders/due.ts",
215
+ line: 55,
216
+ role: "primary",
217
+ excerpt: "export async function dispatchDue(now: Date) {"
218
+ },
219
+ {
220
+ path: "packages/core/src/reminders/quiet_hours.ts",
221
+ line: 23,
222
+ role: "secondary",
223
+ excerpt: "export function inQuietHours(zone: string, at: Date) {"
224
+ }
225
+ ],
226
+ "notifications/delivery/channel-fanout": [
227
+ {
228
+ path: "packages/core/src/notifications/fanout.ts",
229
+ line: 41,
230
+ role: "primary",
231
+ excerpt: "export async function fanout(msg: Message, prefs: Prefs) {"
232
+ }
233
+ ]
234
+ },
235
+ orphanAnchors: [
236
+ { path: "apps/web/src/tasks/inline_edit.tsx", line: 64, id: "tasks/edit/inline-edit" }
237
+ ],
238
+ drift: [
239
+ {
240
+ id: "sync/conflict/last-write-wins",
241
+ path: "crates/sync/src/conflict.rs",
242
+ changedAt: "2026-07-26T14:02:00Z"
243
+ }
244
+ ]
245
+ };
246
+
247
+ // src/core/fixtures/index.ts
248
+ var cached = null;
249
+ function taskflowModel() {
250
+ if (!cached) {
251
+ cached = chunkGDFKDECN_cjs.loadCorpus({ facetrc: FACETRC, index: INDEX, records: RECORDS, scan: SCAN });
252
+ }
253
+ return cached;
254
+ }
255
+ function taskflowRecord(id) {
256
+ const record = taskflowModel().byId[id];
257
+ if (!record) throw new Error(`${localized.text1}${id}`);
258
+ return record;
259
+ }
260
+
261
+ exports.FACETRC = FACETRC;
262
+ exports.INDEX = INDEX;
263
+ exports.RECORDS = RECORDS;
264
+ exports.SCAN = SCAN;
265
+ exports.taskflowModel = taskflowModel;
266
+ exports.taskflowRecord = taskflowRecord;
267
+ //# sourceMappingURL=fixtures.cjs.map
268
+ //# sourceMappingURL=fixtures.cjs.map