Skip to content

Commit 4664850

Browse files
committed
fix(app-showcase): stamp inquiry source only when absent (verify fidelity)
The guest-defaults hook unconditionally set source='web', so the verify round-trip wrote source='verify-sample' and read back 'web' — a fidelity gap that failed the Dogfood Regression Gate. Make it a default (only when absent), matching status. Public submissions never include source (the form whitelist excludes it), so they still get 'web'; explicit values now round-trip cleanly.
1 parent 1a0bbba commit 4664850

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

examples/app-showcase/src/hooks/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ export const StampInquiryDefaultsHook = {
9494
events: ['beforeInsert'] as LifecycleEvent[],
9595
body: {
9696
language: 'js' as const,
97-
source: "if (!ctx.input.status) ctx.input.status = 'new'; ctx.input.source = 'web';",
97+
source: "if (!ctx.input.status) ctx.input.status = 'new'; if (!ctx.input.source) ctx.input.source = 'web';",
9898
},
9999
priority: 50,
100100
onError: 'abort' as const,

0 commit comments

Comments
 (0)