Skip to content

Commit e871e3c

Browse files
committed
test(skills): the push eval case pins the direct transport and refuses the relay
Case 12's expected answer names transport: 'direct' with apns / fcm blocks, each with its credentialRef, and says the hosted relay (also an absent or empty push block) is refused at boot until its sender ships; the case adds transport: 'relay' to must_not_contain. The changeset says the same. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01J8VVAjFpbQxLtYHuw3di1T
1 parent 44939f5 commit e871e3c

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

‎.changeset/29969-platform-push-eval.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ test(skills): the platform skill's evals ask for push notifications on an `os se
77
Clause-②: no
88
Metadata-protocol: none
99

10-
`skills/objectstack-platform/evals/config-plugins-ops.json` gains case 12: the prompt asks to turn on push notifications for an `os serve` deployment, and the expected answer declares `requires: ['push']` with a top-level `push:` key on the stack definition and writes no secret inline (the APNs signing key and the Firebase service-account JSON are named by reference). The assertions stay with what `objectstack-platform/SKILL.md` teaches today, the `push` token and the top-level key; the push block's transport and vendor shape are not asserted until the skill teaches them.
10+
`skills/objectstack-platform/evals/config-plugins-ops.json` gains case 12: the prompt asks to turn on push notifications for an `os serve` deployment of the team's own white-label apps, and the expected answer declares `requires: ['push']` with a top-level `push:` key on the stack definition using `transport: 'direct'` and an `apns` and/or `fcm` block, each naming its secret by `credentialRef`, and writes no secret inline. The case refuses `transport: 'relay'`: the hosted relay, which an absent or empty `push` block also reads as, is refused at boot until its sender ships.

‎skills/objectstack-platform/evals/config-plugins-ops.json‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@
201201
{
202202
"id": 12,
203203
"prompt": "Turn on push notifications for our `os serve` deployment: our own iOS and Android apps, signed with our APNs key and our Firebase project.",
204-
"expected_output": "`requires: ['push']` on the stack root (the token mounts `@objectstack/service-push`) plus a top-level `push:` key on the stack definition for the transport; no host code, no `PushServicePlugin` in `plugins:`. The APNs signing key and the Firebase service-account JSON stay in the secrets layer (an environment variable in the open tier) and the config names them by reference (`credentialRef`): no `.p8` key, `privateKey` or service-account JSON written inline.",
204+
"expected_output": "`requires: ['push']` on the stack root (the token mounts `@objectstack/service-push`) plus a top-level `push:` key on the stack definition with `transport: 'direct'` and an `apns` and/or `fcm` block, each with its `credentialRef`; the hosted relay (`transport` relay, or an absent or empty `push` block) is refused at boot until its sender ships; no host code, no `PushServicePlugin` in `plugins:`. The APNs signing key and the Firebase service-account JSON stay in the secrets layer (an environment variable in the open tier) and the config names them by reference: no `.p8` key, `privateKey` or service-account JSON written inline.",
205205
"files": [],
206206
"assertions": {
207207
"must_contain": [
@@ -212,7 +212,8 @@
212212
"must_not_contain": [
213213
"BEGIN PRIVATE KEY",
214214
"privateKey:",
215-
"\"private_key\""
215+
"\"private_key\"",
216+
"transport: 'relay'"
216217
]
217218
}
218219
}

0 commit comments

Comments
 (0)