elanous 0.3.9 → 0.3.10

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 (60) hide show
  1. package/apps/pwa/scripts/publish-static-generation.ts +80 -0
  2. package/apps/pwa/src/lib/mini-board-projection.ts +129 -0
  3. package/apps/pwa/src/lib/provenance-badge.ts +26 -0
  4. package/apps/pwa/src/lib/task-card-model.ts +73 -0
  5. package/package.json +7 -1
  6. package/scenarios/dashboard-default.yaml +53 -0
  7. package/scenarios/heap-graph.yaml +46 -0
  8. package/scenarios/iul-timeline-viewer.yaml +46 -0
  9. package/scenarios/ux-sim/app-demo-1114.yaml +22 -0
  10. package/scenarios/ux-sim/arg-macro-canvas.yaml +78 -0
  11. package/scenarios/ux-sim/author-reviewer-precheck-applied.yaml +27 -0
  12. package/scenarios/ux-sim/author-reviewer-precheck-rejected-unprovable.yaml +27 -0
  13. package/scenarios/ux-sim/burst-ready-ladder.yaml +47 -0
  14. package/scenarios/ux-sim/demo1104-research-arg-graph.yaml +32 -0
  15. package/scenarios/ux-sim/draft-inventory-200.yaml +44 -0
  16. package/scenarios/ux-sim/fixtures/phone-pwa-selfheal-broken.html +19 -0
  17. package/scenarios/ux-sim/fixtures/release-cut-0306-shards.json +7023 -0
  18. package/scenarios/ux-sim/gate-deps-root-bake.yaml +17 -0
  19. package/scenarios/ux-sim/gate-receipt-carry-any-run.yaml +31 -0
  20. package/scenarios/ux-sim/gate-roster-second-pool-world.yaml +9 -0
  21. package/scenarios/ux-sim/gate-roster-second-pool.yaml +26 -0
  22. package/scenarios/ux-sim/gate-shard-receipt-payload-corrupt.yaml +14 -0
  23. package/scenarios/ux-sim/google-drive-files-list-readonly.yaml +21 -0
  24. package/scenarios/ux-sim/graph-runtime-overlay-event-stream.yaml +27 -0
  25. package/scenarios/ux-sim/kaist-lecture-scrap-app.yaml +14 -0
  26. package/scenarios/ux-sim/kaist-selfheal-stage.yaml +14 -0
  27. package/scenarios/ux-sim/knowhow-pack-release-heal-1107.md +39 -0
  28. package/scenarios/ux-sim/macro-chain-e2e.yaml +14 -0
  29. package/scenarios/ux-sim/macrophage-attribution-integration-1107.yaml +86 -0
  30. package/scenarios/ux-sim/n30-old-graph-measured-waiver.yaml +15 -0
  31. package/scenarios/ux-sim/night-train-dead-pid-lock.yaml +19 -0
  32. package/scenarios/ux-sim/night-train-world.yaml +13 -0
  33. package/scenarios/ux-sim/novice-versioning-scenario.ts +150 -0
  34. package/scenarios/ux-sim/novice-versioning-world.yaml +6 -0
  35. package/scenarios/ux-sim/phone-pwa-selfheal-trace.json +30 -0
  36. package/scenarios/ux-sim/provider-4xx-no-provider.yaml +26 -0
  37. package/scenarios/ux-sim/pwa-formal-update-world.yaml +5 -0
  38. package/scenarios/ux-sim/pwa-formal-update.yaml +8 -0
  39. package/scenarios/ux-sim/rehearsal-hard-2h-mandatory.yaml +37 -0
  40. package/scenarios/ux-sim/release-cut-preflight-regressions.yaml +31 -0
  41. package/scenarios/ux-sim/release-day-0307-replay.yaml +138 -0
  42. package/scenarios/ux-sim/release-gate-fanout.yaml +48 -0
  43. package/scenarios/ux-sim/release-heal-macrophage-bus.yaml +37 -0
  44. package/scenarios/ux-sim/release-incident-events-execution.yaml +114 -0
  45. package/scenarios/ux-sim/release-incident-events.yaml +98 -0
  46. package/scenarios/ux-sim/release-introduced-repair.yaml +40 -0
  47. package/scenarios/ux-sim/release-receipt-inheritance.yaml +24 -0
  48. package/scenarios/ux-sim/release-sim-chain-remaining.yaml +46 -0
  49. package/scenarios/ux-sim/release-sim-rig.yaml +266 -0
  50. package/scenarios/ux-sim/rla-arg-adaptive-heal.yaml +45 -0
  51. package/scenarios/ux-sim/rla-incident-policy-host-lost.yaml +17 -0
  52. package/scenarios/ux-sim/rla-postland-recovery-hitl.yaml +17 -0
  53. package/scenarios/ux-sim/rla-rehearsal-cloud-resume-sim.yaml +36 -0
  54. package/scenarios/ux-sim/rla-rehearsal-incident-sim-b.yaml +29 -0
  55. package/scenarios/ux-sim/sim-hq-move-world.yaml +9 -0
  56. package/scenarios/ux-sim/sim-hq-move.yaml +14 -0
  57. package/scenarios/ux-sim/tui-selfimplement-retry-loop.yaml +29 -0
  58. package/scenarios/ux-sim/warm-pool-reuse-world.yaml +117 -0
  59. package/src/version/packed-revision.json +1 -1
  60. package/test/helpers/dashboard-source.ts +110 -0
@@ -0,0 +1,80 @@
1
+ import { cp, lstat, mkdir, readdir, rename, rm, stat, symlink } from 'node:fs/promises';
2
+ import { randomUUID } from 'node:crypto';
3
+ import path from 'node:path';
4
+
5
+ export type StaticGenerationStage = 'prepared' | 'before-swap' | 'after-swap';
6
+
7
+ export interface PublishStaticGenerationOptions {
8
+ copyDirectory?: (source: string, destination: string) => Promise<void>;
9
+ validateGeneration?: (generation: string) => Promise<void>;
10
+ renamePointer?: (temporaryLink: string, out: string) => Promise<void>;
11
+ onStage?: (stage: StaticGenerationStage) => void;
12
+ }
13
+
14
+ async function copyDirectory(source: string, destination: string): Promise<void> {
15
+ await cp(source, destination, { recursive: true, errorOnExist: true, force: false, dereference: true });
16
+ }
17
+
18
+ export async function validateStaticGeneration(generation: string): Promise<void> {
19
+ const index = await lstat(path.join(generation, 'index.html'));
20
+ if (!index.isFile()) throw new Error(`Static generation is missing a regular index.html: ${generation}`);
21
+
22
+ const assets = await lstat(path.join(generation, '_next'));
23
+ if (!assets.isDirectory() || (await readdir(path.join(generation, '_next'))).length === 0) {
24
+ throw new Error(`Static generation is missing Next.js assets in _next: ${generation}`);
25
+ }
26
+ }
27
+
28
+ async function assertOutCanBeReplaced(out: string): Promise<void> {
29
+ let entry;
30
+ try {
31
+ entry = await lstat(out);
32
+ } catch (error) {
33
+ if ((error as NodeJS.ErrnoException).code === 'ENOENT') return;
34
+ throw error;
35
+ }
36
+
37
+ if (!entry.isSymbolicLink()) {
38
+ throw new Error(`Cannot replace ${out}: existing out is not a symlink; stop the service and migrate it explicitly`);
39
+ }
40
+ try {
41
+ await stat(out);
42
+ } catch {
43
+ throw new Error(`Cannot replace ${out}: existing out is a broken symlink`);
44
+ }
45
+ }
46
+
47
+ export async function publishStaticGeneration(
48
+ sourceDirectory: string,
49
+ publishRoot: string,
50
+ options: PublishStaticGenerationOptions = {},
51
+ ): Promise<string> {
52
+ const source = path.resolve(sourceDirectory);
53
+ const root = path.resolve(publishRoot);
54
+ const generations = path.join(root, '.pwa-generations');
55
+ const out = path.join(root, 'out');
56
+ await assertOutCanBeReplaced(out);
57
+ await mkdir(generations, { recursive: true });
58
+
59
+ const generation = path.join(generations, `${Date.now()}-${randomUUID()}`);
60
+ const temporaryLink = path.join(root, `.out-${randomUUID()}.tmp`);
61
+ let committed = false;
62
+ let linkCreated = false;
63
+
64
+ try {
65
+ await (options.copyDirectory ?? copyDirectory)(source, generation);
66
+ await (options.validateGeneration ?? validateStaticGeneration)(generation);
67
+ options.onStage?.('prepared');
68
+ await symlink(path.relative(root, generation), temporaryLink, 'dir');
69
+ linkCreated = true;
70
+ options.onStage?.('before-swap');
71
+ await (options.renamePointer ?? rename)(temporaryLink, out);
72
+ linkCreated = false;
73
+ committed = true;
74
+ options.onStage?.('after-swap');
75
+ return generation;
76
+ } finally {
77
+ if (linkCreated) await rm(temporaryLink, { force: true });
78
+ if (!committed) await rm(generation, { recursive: true, force: true });
79
+ }
80
+ }
@@ -0,0 +1,129 @@
1
+ import { boardColumn, cardTitle, foldCard, type BoardColumn, type TaskCardEntry, type TaskCardSection } from './task-card-model';
2
+
3
+ export const MINI_BOARD_COLUMNS: readonly BoardColumn[] = Object.freeze([
4
+ 'steward', 'landing', 'execution', 'release', 'done',
5
+ ]);
6
+
7
+ export interface MiniBoardCard {
8
+ taskId: string;
9
+ title: string;
10
+ summary: string;
11
+ column: BoardColumn;
12
+ updatedAt: number;
13
+ runId?: string;
14
+ resultUrl?: string;
15
+ }
16
+
17
+ export interface MiniBoardProjection {
18
+ updatedAt: number;
19
+ columns: Record<BoardColumn, MiniBoardCard[]>;
20
+ }
21
+
22
+ export const MINI_BOARD_STORE_EVENT_SECTIONS: readonly TaskCardSection[] = Object.freeze([
23
+ 'intake', 'triage', 'gates', 'relations', 'memory', 'workspace', 'run', 'landing', 'release', 'incidents',
24
+ ]);
25
+
26
+ function nonEmptyString(value: unknown): string | undefined {
27
+ return typeof value === 'string' && value.trim() ? value.trim() : undefined;
28
+ }
29
+
30
+ function parseStoreEventJson(value: unknown): TaskCardEntry | undefined {
31
+ if (!value || typeof value !== 'object' || Array.isArray(value)) return undefined;
32
+ const record = value as Record<string, unknown>;
33
+ const taskId = nonEmptyString(record.taskId);
34
+ const owner = nonEmptyString(record.owner);
35
+ const key = nonEmptyString(record.key);
36
+ const section = record.section;
37
+ const data = record.data;
38
+ const hasRunId = Object.hasOwn(record, 'runId');
39
+ const runId = hasRunId ? nonEmptyString(record.runId) : undefined;
40
+ if (!taskId || !owner || !key || typeof record.ts !== 'number' || !Number.isFinite(record.ts)
41
+ || typeof section !== 'string' || !MINI_BOARD_STORE_EVENT_SECTIONS.includes(section as TaskCardSection)
42
+ || !data || typeof data !== 'object' || Array.isArray(data) || (hasRunId && !runId)) return undefined;
43
+ return {
44
+ ts: record.ts,
45
+ taskId,
46
+ section: section as TaskCardSection,
47
+ owner,
48
+ key,
49
+ data: data as Record<string, unknown>,
50
+ ...(runId ? { runId } : {}),
51
+ };
52
+ }
53
+
54
+ function latestSection(card: ReturnType<typeof foldCard>): TaskCardEntry | undefined {
55
+ if (!card) return undefined;
56
+ return Object.values(card.sections).filter((entry): entry is TaskCardEntry => Boolean(entry))
57
+ .reduce<TaskCardEntry | undefined>((latest, entry) => !latest || entry.ts >= latest.ts ? entry : latest, undefined);
58
+ }
59
+
60
+ function safePublicUrl(value: unknown): string | undefined {
61
+ const candidate = nonEmptyString(value);
62
+ if (!candidate) return undefined;
63
+ try {
64
+ const url = new URL(candidate);
65
+ return url.protocol === 'https:' && !url.username && !url.password ? url.href : undefined;
66
+ } catch {
67
+ return undefined;
68
+ }
69
+ }
70
+
71
+ function completedResultUrl(card: NonNullable<ReturnType<typeof foldCard>>, journal: readonly TaskCardEntry[]): string | undefined {
72
+ const release = card.sections.release;
73
+ if (release?.data.status !== 'done' && release?.data.status !== 'completed') return undefined;
74
+ const releaseUrl = safePublicUrl(release.data.resultUrl) ?? safePublicUrl(release.data.publicUrl);
75
+ if (releaseUrl) return releaseUrl;
76
+ return journal
77
+ .filter(entry => entry.section === 'run' && entry.key.startsWith('app-publish:'))
78
+ .slice()
79
+ .sort((left, right) => right.ts - left.ts)
80
+ .map(entry => safePublicUrl(entry.data.publicUrl))
81
+ .find(Boolean);
82
+ }
83
+
84
+ function projectColumn(card: NonNullable<ReturnType<typeof foldCard>>, activity: TaskCardEntry | undefined): BoardColumn {
85
+ const release = card.sections.release?.data;
86
+ if (release?.status === 'done' || release?.status === 'completed') return 'done';
87
+ if (activity?.section === 'release') return 'release';
88
+ if (activity?.section === 'landing') return 'landing';
89
+ if (activity && ['workspace', 'run', 'gates', 'relations', 'memory'].includes(activity.section)) return 'execution';
90
+ return boardColumn(card);
91
+ }
92
+
93
+ /** Read-only projection of JSON store events into the existing card model. It creates no second card state. */
94
+ export function projectMiniBoard(events: readonly unknown[]): MiniBoardProjection {
95
+ const grouped = new Map<string, TaskCardEntry[]>();
96
+ let updatedAt: number | undefined;
97
+ for (const value of events) {
98
+ const entry = parseStoreEventJson(value);
99
+ if (!entry) continue;
100
+ updatedAt = updatedAt === undefined ? entry.ts : Math.max(updatedAt, entry.ts);
101
+ const group = grouped.get(entry.taskId) ?? [];
102
+ group.push(entry);
103
+ grouped.set(entry.taskId, group);
104
+ }
105
+
106
+ const columns: MiniBoardProjection['columns'] = {
107
+ steward: [], landing: [], execution: [], release: [], done: [],
108
+ };
109
+ for (const journal of grouped.values()) {
110
+ const card = foldCard(journal);
111
+ if (!card) continue;
112
+ const section = latestSection(card);
113
+ const column = projectColumn(card, section);
114
+ const title = cardTitle(card);
115
+ const summary = nonEmptyString(section?.data.summary) ?? nonEmptyString(section?.data.text) ?? title;
116
+ const resultUrl = completedResultUrl(card, journal);
117
+ columns[column].push({
118
+ taskId: card.taskId,
119
+ title,
120
+ summary,
121
+ column,
122
+ updatedAt: card.updatedAt,
123
+ ...(card.runId ? { runId: card.runId.slice(0, 4) } : {}),
124
+ ...(resultUrl ? { resultUrl } : {}),
125
+ });
126
+ }
127
+ for (const column of MINI_BOARD_COLUMNS) columns[column].sort((a, b) => b.updatedAt - a.updatedAt || a.taskId.localeCompare(b.taskId));
128
+ return { updatedAt: updatedAt ?? 0, columns };
129
+ }
@@ -0,0 +1,26 @@
1
+ export type PwaProvenanceBadgeProjection =
2
+ | { readonly kind: 'badge'; readonly source: 'sim' | 'replay' | 'injected' | 'shadow'; readonly icon: string; readonly label: string }
3
+ | { readonly kind: 'unbadged'; readonly source: 'real' | 'synthetic-probe' }
4
+ | { readonly kind: 'unknown'; readonly source: string; readonly icon: '?'; readonly label: '출처 미상' };
5
+
6
+ const VISIBLE_BADGES = {
7
+ sim: { icon: '🧪', label: '시뮬' },
8
+ replay: { icon: '🎞', label: '재생' },
9
+ injected: { icon: '💉', label: '주입' },
10
+ shadow: { icon: '👻', label: '그림자' },
11
+ } as const;
12
+
13
+ /** Project RFC-hybrid-sim-real §3 source provenance into the PWA's visible badge contract. */
14
+ export function projectPwaProvenanceBadge(source: unknown): PwaProvenanceBadgeProjection {
15
+ if (typeof source !== 'string' || source.trim().length === 0) {
16
+ return { kind: 'unknown', source: 'unknown', icon: '?', label: '출처 미상' };
17
+ }
18
+
19
+ if (Object.hasOwn(VISIBLE_BADGES, source)) {
20
+ const visibleSource = source as keyof typeof VISIBLE_BADGES;
21
+ return { kind: 'badge', source: visibleSource, ...VISIBLE_BADGES[visibleSource] };
22
+ }
23
+
24
+ if (source === 'real' || source === 'synthetic-probe') return { kind: 'unbadged', source };
25
+ return { kind: 'unknown', source, icon: '?', label: '출처 미상' };
26
+ }
@@ -0,0 +1,73 @@
1
+ export type TaskCardSection =
2
+ | 'intake' | 'triage' | 'gates' | 'relations' | 'memory'
3
+ | 'workspace' | 'run' | 'landing' | 'release' | 'incidents';
4
+
5
+ export interface TaskCardEntry {
6
+ ts: number;
7
+ taskId: string;
8
+ section: TaskCardSection;
9
+ owner: string;
10
+ runId?: string;
11
+ key: string;
12
+ data: Record<string, unknown>;
13
+ }
14
+
15
+ export interface TaskCard {
16
+ taskId: string;
17
+ sections: Partial<Record<Exclude<TaskCardSection, 'incidents'>, TaskCardEntry>>;
18
+ incidents: TaskCardEntry[];
19
+ updatedAt: number;
20
+ runId?: string;
21
+ apiTitle?: string;
22
+ status?: 'open' | 'closed';
23
+ closedReason?: string;
24
+ wishReply?: { surface: string; address: string | null } | null;
25
+ }
26
+
27
+ export type BoardColumn = 'steward' | 'execution' | 'landing' | 'release' | 'done';
28
+
29
+ /** Fold the append-only card journal. A repeated key is the same event, not a new update. */
30
+ export function foldCard(entries: readonly TaskCardEntry[]): TaskCard | null {
31
+ const first = entries[0];
32
+ if (!first) return null;
33
+
34
+ const sections: TaskCard['sections'] = {};
35
+ const incidents: TaskCardEntry[] = [];
36
+ const seen = new Set<string>();
37
+ let updatedAt = first.ts;
38
+ let runId: string | undefined;
39
+ let runIdAt = -Infinity;
40
+ for (const entry of entries) {
41
+ if (entry.taskId !== first.taskId || seen.has(entry.key)) continue;
42
+ seen.add(entry.key);
43
+ updatedAt = Math.max(updatedAt, entry.ts);
44
+ if (entry.runId && entry.ts >= runIdAt) {
45
+ runId = entry.runId;
46
+ runIdAt = entry.ts;
47
+ }
48
+ if (entry.section === 'incidents') {
49
+ incidents.push(entry);
50
+ } else {
51
+ const previous = sections[entry.section];
52
+ if (!previous || entry.ts >= previous.ts) sections[entry.section] = entry;
53
+ }
54
+ }
55
+ return { taskId: first.taskId, sections, incidents, updatedAt, ...(runId ? { runId } : {}) };
56
+ }
57
+
58
+ export function boardColumn(card: TaskCard): BoardColumn {
59
+ const release = card.sections.release?.data;
60
+ if (release?.status === 'done' || release?.status === 'completed') return 'done';
61
+ if (release) return 'release';
62
+ if (card.sections.landing) return 'landing';
63
+ if (card.sections.run || card.sections.workspace || card.sections.gates || card.sections.relations || card.sections.memory) return 'execution';
64
+ return 'steward';
65
+ }
66
+
67
+ export function cardTitle(card: TaskCard): string {
68
+ for (const section of [card.sections.triage, card.sections.intake]) {
69
+ const title = section?.data.title;
70
+ if (typeof title === 'string' && title.trim()) return title.trim();
71
+ }
72
+ return card.apiTitle?.trim() || card.taskId;
73
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "elanous",
3
3
  "mcpName": "io.github.ElanvitalAI/elanous",
4
- "version": "0.3.9",
4
+ "version": "0.3.10",
5
5
  "description": "Self-healing coding harness where eyes, hands, and memory all turn on one sentence — it authors its own goals, implements them in isolated worktrees, and reviews its own work.",
6
6
  "license": "Apache-2.0",
7
7
  "author": "Elanvital AI",
@@ -30,6 +30,7 @@
30
30
  "widgets/",
31
31
  "plugins/",
32
32
  "templates/",
33
+ "scenarios/**",
33
34
  "samples/workflows/templates/",
34
35
  "catalog/",
35
36
  "personas/",
@@ -37,6 +38,11 @@
37
38
  "examples/teams/",
38
39
  "graphs/",
39
40
  "apps/pwa/out/",
41
+ "apps/pwa/src/lib/task-card-model.ts",
42
+ "apps/pwa/src/lib/mini-board-projection.ts",
43
+ "apps/pwa/src/lib/provenance-badge.ts",
44
+ "apps/pwa/scripts/publish-static-generation.ts",
45
+ "test/helpers/dashboard-source.ts",
40
46
  ".python-version",
41
47
  ".bun-version",
42
48
  "requirements-python.txt",
@@ -0,0 +1,53 @@
1
+ # ── Scenario · dashboard-default ──
2
+ #
3
+ # Minimal 2-pane reference layout that exercises the P2 + P3 + P4 chain
4
+ # end-to-end: a chat-style log next to a focused list. Every rendered
5
+ # attribute (border, borderRadius, padding, color) runs through the
6
+ # same decoder path a Playground-authored scenario would.
7
+
8
+ id: dashboard-default
9
+ title: Dashboard Default
10
+ description: |
11
+ Reference layout with a log pane and a focused list pane. Serves as
12
+ the visual regression baseline for the P5a materialization pipeline.
13
+
14
+ meta:
15
+ tags: [reference, smoke-test]
16
+ author: widget-team
17
+
18
+ layout:
19
+ - widget: log
20
+ id: dashboard-log
21
+ config:
22
+ lines:
23
+ - "> ready"
24
+ style:
25
+ decoration:
26
+ color: surface
27
+ border:
28
+ all: { color: border, width: 1 }
29
+ borderRadius:
30
+ circular: 1
31
+ padding: 1
32
+
33
+ - widget: list
34
+ id: dashboard-list
35
+ config:
36
+ items:
37
+ - Overview
38
+ - Tasks
39
+ - Logs
40
+ character: Focus
41
+ style:
42
+ decoration:
43
+ color: surface.raised
44
+ border:
45
+ all: { color: border.focused, width: 1 }
46
+ borderRadius:
47
+ circular: 1
48
+ padding:
49
+ symmetric: { horizontal: 2, vertical: 1 }
50
+ boxShadow:
51
+ - offset: { dx: 1, dy: 1 }
52
+ color: border
53
+ opacity: 0.4
@@ -0,0 +1,46 @@
1
+ # ── Scenario · heap-graph ──
2
+ #
3
+ # Telemetry-style dashboard that pairs a hello-text pane with a log.
4
+ # Exercises the symmetric border + padding shorthand + the `padding: 2`
5
+ # scalar form (== EdgeInsets.all(2) after expansion).
6
+
7
+ id: heap-graph
8
+ title: Heap Graph
9
+ description: |
10
+ Compact scenario intended for the V8 heap telemetry visualisation
11
+ (paired with a log summary). Keeps the widget set to primitives
12
+ already covered by the P3 schema registry so decode stays strict.
13
+
14
+ meta:
15
+ tags: [telemetry]
16
+
17
+ layout:
18
+ - widget: hello-text
19
+ id: heap-summary
20
+ config:
21
+ message: "Heap trend (last 60s)"
22
+ style:
23
+ decoration:
24
+ border:
25
+ symmetric:
26
+ horizontal: { color: border.accent, width: 1 }
27
+ vertical: { color: border, width: 1 }
28
+ padding: 2
29
+
30
+ - widget: log
31
+ id: heap-log
32
+ config:
33
+ lines:
34
+ - "heap: 42 MB"
35
+ - "gc: 0 recent"
36
+ style:
37
+ decoration:
38
+ color: surface.sunken
39
+ border:
40
+ only:
41
+ top: { color: border.focused, width: 1 }
42
+ bottom: { color: border, width: 1 }
43
+ padding:
44
+ only:
45
+ top: 1
46
+ bottom: 1
@@ -0,0 +1,46 @@
1
+ # ── Scenario · iul-timeline-viewer ──
2
+ #
3
+ # Minimal scenario that drives the iul-timeline plugin's viewer widget
4
+ # when available, falling back to a plain log pane otherwise. The
5
+ # `state-timeline-viewer` type isn't in the P3 schema registry yet so
6
+ # it flows through the permissive fallback — decode succeeds without
7
+ # per-field validation.
8
+
9
+ id: iul-timeline-viewer
10
+ title: IUL Timeline Viewer
11
+ description: |
12
+ Spawns the widget-recorder viewer modeled on the iul-timeline plugin.
13
+ Paired with a log so operators always have a live feedback channel
14
+ next to the scrub controls.
15
+
16
+ meta:
17
+ tags: [iul, debugging]
18
+ requires: widget-recorder
19
+
20
+ layout:
21
+ - widget: state-timeline-viewer
22
+ id: iul-viewer
23
+ config:
24
+ autoFollow: true
25
+ style:
26
+ decoration:
27
+ color: surface
28
+ border:
29
+ all: { color: border.focused, width: 1, style: double }
30
+ borderRadius:
31
+ circular: 1
32
+ padding: 1
33
+ boxShadow:
34
+ - offset: { dx: 1, dy: 1 }
35
+ color: shadow.soft
36
+
37
+ - widget: log
38
+ id: iul-log
39
+ config:
40
+ lines:
41
+ - "viewer ready"
42
+ style:
43
+ decoration:
44
+ border:
45
+ all: { color: border, width: 1 }
46
+ padding: 1
@@ -0,0 +1,22 @@
1
+ world: app-demo-1114
2
+ seed: 1114
3
+ clock: { start: '2100-11-14T00:00:00Z', speed: 60 }
4
+ apps:
5
+ - slug: voice-notes
6
+ versions:
7
+ - id: v1
8
+ files:
9
+ index.html: '<main>녹음 · 요약 · 할 일</main>'
10
+ - id: v2
11
+ files:
12
+ index.html: '<main>🔴 할 일을 맨 위에</main>'
13
+ - slug: shop-studio
14
+ versions:
15
+ - id: v1
16
+ files:
17
+ index.html: '<main>상품 · 사진 업로드 · 광고 영상</main>'
18
+ steps:
19
+ - observe: app-demo-1114
20
+ demo:
21
+ recording: kaist-demo-recording
22
+ transcript: 상품 소개 자료를 확인해 주세요
@@ -0,0 +1,78 @@
1
+ version: 1
2
+ kind: release-graph-simulation
3
+ id: arg-macro-canvas
4
+ canvas:
5
+ graph: graphs/release/release-loop.yaml
6
+ macrophage: graphs/release/macrophage-subscriber.yaml
7
+ graphId: release-loop
8
+ runId: sim-arg-macro-canvas
9
+ inject:
10
+ failureId: src/release.test.ts > injected regression
11
+ commit: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
12
+ expect:
13
+ declared:
14
+ gateFailure: gate-triage
15
+ macrophageWake: { event: node-end, nodeId: gate, action: wake }
16
+ argReturn: gate
17
+ macrophage:
18
+ sourceNode: gate
19
+ signature: unknown
20
+ path:
21
+ beforeResume: [gate, gate-triage]
22
+ afterResume: [gate, traffic-gate-passed]
23
+ manifest:
24
+ graphId: release-loop
25
+ edgeRef: scenarios/ux-sim/arg-macro-canvas.yaml#manifest
26
+ appendAfter: [gate-triage]
27
+ appendRecipes: [cmd:parked-pr-repair, cmd:preexisting-remeasure, cmd:pod-digest-diagnose, cmd:installed-hang-diagnose, cmd:review-cap-diagnose]
28
+ allowRecipes: [cmd:parked-pr-repair, cmd:preexisting-remeasure, cmd:pod-digest-diagnose, cmd:installed-hang-diagnose, cmd:review-cap-diagnose]
29
+ maxDepth: 1
30
+ allowance: 5
31
+ hitlNode: gate-repair-recovery
32
+ rejoinNode: gate
33
+ cases:
34
+ - id: parked-pr
35
+ scrap: { id: parked-pr, kind: parked-pr, owner: OP, evidence: { repairRecipe: cmd:parked-pr-repair } }
36
+ signal: { id: parked-pr, source: release-graph, signature: parked-pr, evidence: introduced, failureIds: [pr-parked], sourceFiles: [src/release-loop/parked-pr.ts] }
37
+ ladder: { evidence: introduced, failureIds: [pr-parked], sourceFiles: [src/release-loop/parked-pr.ts], changeKind: fixture, repairChildrenUsed: 0, elapsedMs: 0, minutesToCut: 180, estimatedStepMs: 300000 }
38
+ afterNodeId: gate-triage
39
+ recipe: cmd:parked-pr-repair
40
+ recipeOutcome: passed
41
+ simulatedTerminal: healed
42
+ expect: { macrophageAction: attempt-repair, policy: { label: fix, step: R1-single-file }, ladder: { action: repair-plan, step: R1-single-file } }
43
+ - id: preexisting-failure
44
+ scrap: { id: preexisting-failure, kind: repeated-failing-test, owner: OP, evidence: { consecutiveFailures: 3 } }
45
+ signal: { id: preexisting-failure, source: release-graph, signature: preexisting-failure, evidence: preexisting, retryable: true, failureIds: [known-test-failure], sourceFiles: [test/known.test.ts] }
46
+ ladder: { evidence: load-flaky, failureIds: [known-test-failure], sourceFiles: [test/known.test.ts], r0Attempts: 0, repairChildrenUsed: 0, elapsedMs: 0, minutesToCut: 180, estimatedStepMs: 300000 }
47
+ afterNodeId: gate-triage
48
+ recipe: cmd:preexisting-remeasure
49
+ recipeOutcome: passed
50
+ simulatedTerminal: healed
51
+ expect: { macrophageAction: open-cell, policy: { label: noise, step: R0-remeasure }, ladder: { action: remeasure-same-slice, step: R0-remeasure } }
52
+ - id: warm-pod-digest-mismatch
53
+ scrap: { id: warm-pod-digest-mismatch, kind: release-node-failure, owner: OP, evidence: { nodeId: gate, failureSignature: unknown, failureDetail: warm Pod digest mismatch } }
54
+ signal: { id: warm-pod-digest-mismatch, source: release-graph, signature: warm-pod-digest-mismatch, evidence: unmeasured, failureIds: [warm-pod-digest-mismatch] }
55
+ ladder: { evidence: image-drift, failureIds: [warm-pod-digest-mismatch], r0Attempts: 0, repairChildrenUsed: 0, elapsedMs: 0, minutesToCut: 180, estimatedStepMs: 300000 }
56
+ afterNodeId: gate-triage
57
+ recipe: cmd:pod-digest-diagnose
58
+ recipeOutcome: failed
59
+ simulatedTerminal: hitl
60
+ expect: { macrophageAction: notify-owner, policy: { label: hitl, step: R4-hitl }, ladder: { action: remeasure-same-slice, step: R0-remeasure } }
61
+ - id: installed-copy-hang
62
+ scrap: { id: installed-copy-hang, kind: release-node-failure, owner: OP, evidence: { nodeId: gate, failureSignature: unknown, failureDetail: installed copy hung } }
63
+ signal: { id: installed-copy-hang, source: release-graph, signature: installed-copy-hang, evidence: unmeasured, failureIds: [installed-copy-hang] }
64
+ ladder: { evidence: unmeasured, failureIds: [installed-copy-hang], repairChildrenUsed: 0, elapsedMs: 0, minutesToCut: 180, estimatedStepMs: 300000 }
65
+ afterNodeId: gate-triage
66
+ recipe: cmd:installed-hang-diagnose
67
+ recipeOutcome: failed
68
+ simulatedTerminal: hitl
69
+ expect: { macrophageAction: notify-owner, policy: { label: hitl, step: R4-hitl }, ladder: { action: raise-decision, step: R4-hitl } }
70
+ - id: review-cap-double-verdict
71
+ scrap: { id: review-cap-double-verdict, kind: release-node-failure, owner: OP, evidence: { nodeId: gate, failureSignature: unknown, failureDetail: review cap double verdict } }
72
+ signal: { id: review-cap-double-verdict, source: release-graph, signature: review-cap-double-verdict, evidence: unmeasured, failureIds: [review-cap-double-verdict] }
73
+ ladder: { evidence: unmeasured, failureIds: [review-cap-double-verdict], repairChildrenUsed: 0, elapsedMs: 0, minutesToCut: 180, estimatedStepMs: 300000 }
74
+ afterNodeId: gate-triage
75
+ recipe: cmd:review-cap-diagnose
76
+ recipeOutcome: failed
77
+ simulatedTerminal: hitl
78
+ expect: { macrophageAction: notify-owner, policy: { label: hitl, step: R4-hitl }, ladder: { action: raise-decision, step: R4-hitl } }
@@ -0,0 +1,27 @@
1
+ version: 0
2
+ id: ux-author-reviewer-precheck-applied
3
+ isolation: test
4
+ seed: 2451101
5
+ triggers:
6
+ - id: author-reviewer-precheck-applied
7
+ type: ux.author-reviewer-precheck.evaluate
8
+ variant: applied
9
+ expect:
10
+ screen:
11
+ mode: widget
12
+ snapshot:
13
+ contains:
14
+ - "Goal author reviewer precheck simulation"
15
+ - "variant=applied"
16
+ - "status=completed"
17
+ logs:
18
+ - category: author.reviewer-precheck
19
+ event: completed
20
+ level: debug
21
+ count: 1
22
+ data:
23
+ runId: "$runId"
24
+ authorRunId: "$runId"
25
+ status: completed
26
+ appliedFixCount: 1
27
+ unappliedItemCount: 0
@@ -0,0 +1,27 @@
1
+ version: 0
2
+ id: ux-author-reviewer-precheck-rejected-unprovable
3
+ isolation: test
4
+ seed: 2451102
5
+ triggers:
6
+ - id: author-reviewer-precheck-rejected-unprovable
7
+ type: ux.author-reviewer-precheck.evaluate
8
+ variant: rejected-unprovable
9
+ expect:
10
+ screen:
11
+ mode: widget
12
+ snapshot:
13
+ contains:
14
+ - "Goal author reviewer precheck simulation"
15
+ - "variant=rejected-unprovable"
16
+ - "status=rejected-soft"
17
+ logs:
18
+ - category: author.reviewer-precheck
19
+ event: revision-rejected
20
+ level: debug
21
+ count: 1
22
+ data:
23
+ runId: "$runId"
24
+ authorRunId: "$runId"
25
+ status: rejected-soft
26
+ appliedFixCount: 0
27
+ unappliedItemCount: 1