Skip to content

Commit 779ed23

Browse files
committed
test(dogfood): declare the credential-redaction fixture's hand-wired composition (strict: false) — it declares a webhook without requires on purpose
The without-plugin-webhooks composition is what the redactor pins need; declaring requires: ['webhooks', 'realtime'] would have bootStack mount the plugin and remove that composition. Same disposition as webhook-materialization-fixture. Claude-Session: https://claude.ai/code/session_01D6F9axfoPzR7t8G1J7Ytzz Co-authored-by: Claude <noreply@anthropic.com>
1 parent e69078f commit 779ed23

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

‎packages/qa/dogfood/test/webhook-meta-door-credential-redaction.dogfood.test.ts‎

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,19 @@ const WcrTask = ObjectSchema.create({
5757
fields: { name: Field.text({ label: 'Name', required: true }) },
5858
});
5959

60+
/**
61+
* Built with `strict: false`, on purpose — DECLARED, not an oversight. This
62+
* stack declares a webhook and no `requires`, so `defineStack`'s default
63+
* judgement refuses it (`STACK_WEBHOOK_CAPABILITY_REQUIRED`: a declared webhook
64+
* owes `requires: ['webhooks', 'realtime']`, ruling A on #24910). The pins
65+
* below need a composition that judgement cannot reach: a hand-wired host
66+
* WITHOUT `@objectstack/plugin-webhooks`, where the redactor must still hold
67+
* because it is derived from the schema rather than registered by the plugin.
68+
* Declaring the pair instead would have `bootStack` mount the webhook plugin
69+
* the way `serve` does, and the "without plugin-webhooks" composition would
70+
* silently stop existing. Everything else about the stack is an ordinary
71+
* authored package.
72+
*/
6073
const fixture = defineStack({
6174
manifest: {
6275
id: 'com.dogfood.webhook-credential-redaction',
@@ -79,7 +92,7 @@ const fixture = defineStack({
7992
isActive: false,
8093
}),
8194
],
82-
});
95+
}, { strict: false });
8396

8497
const savedBody = () => ({
8598
name: SAVED,

0 commit comments

Comments
 (0)