Repository navigation
fix(mcp): bundle the authoring primer production serves - #1325
Conversation
#1314 bundled a primer taken from a local backend (release 2026-11-15.1), because production did not yet serve the browser revision guidance, and let the snapshot test accept that source. Production now serves it (release 2026-11-22.3), so the snapshot is regenerated from https://api.sapiom.ai and the test requires production again. The browser revision checks now match the served wording, and the App Links test no longer expects the docs.sapiom.ai link the primer dropped. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
| // A hand edit anywhere in the committed snapshot, header included, fails this offline: | ||
| // the file must be exactly what the generator renders from its own constants. | ||
| test("the committed snapshot is the generator's output for its own body", async () => { |
There was a problem hiding this comment.
🔍 Source label is not provenance
The offline test passes checked-in values to renderModule rather than comparing them with a production response. A locally generated snapshot still passes if its source header is relabeled as production.
Was this helpful? React with 👍 or 👎 to provide feedback.
| \`lineItems\` go in \`claimedLineItems\`; merchant, currency and card stay the same). You can also | ||
| update a purchase that is waiting for approval or ready to pay, until the card is entered. Then | ||
| follow the new \`nextAction\`: the person may be asked to approve again. If the response is lost, |
There was a problem hiding this comment.
🔍 Earlier browser checkout revision cutoff
The primer ends revisions at card entry, while transactions.update documents revisions for unused authorizations. Browser Pay separates filling the form from relaying payment.
Was this helpful? React with 👍 or 👎 to provide feedback.
Primary change type
Problem and motivation
@sapiom/mcpbundles a copy of the authoring primer that it falls back to when neither the live instructions nor a cached copy is available. #1314 bundled a copy taken from a local backend (127.0.0.1, release2026-11-15.1), because production did not yet serve the browser revision guidance, and changed the snapshot test to accept that source. George approved #1314 on the condition that the primer is regenerated from production and the production-URL test restored once backend #6972 deployed. #6972 is live, but #1314 merged before the refresh, so the release PR #1322 would currently publish the local copy.Summary and scope
packages/mcp/src/instructions.generated.tsfromhttps://api.sapiom.ai/v1/mcp/instructions(release2026-11-22.3, digest8fd85f75d34f, verified against the served digest).https://api.sapiom.aiand so rejects any other source.instructions.test.tsto the served wording, which replaced the phrases feat(purchases): add explicit browser revision handling #1314 asserted. The test still checks both sides: a browser revision the agent resends under the same key, and an uncertain merchant update a person reconciles.docs.sapiom.ai/capabilities/app-linkscheck; the served primer no longer links to docs.sapiom.ai.@sapiom/mcppatch changeset.Out of scope: no code or API change. Merge this before the release PR #1322.
Related work
Related issue or discussion: George's approval of #1314, which asked for this before merge. Backend: Sapiom #6972, deployed at
547e88e71.Validation
Tests and documentation
The snapshot test again requires a production source. The browser revision and App Links tests follow the served primer. No documentation change:
PUBLISHING.mdalready describes this refresh as the first step of an@sapiom/mcprelease.Compatibility and release impact
@sapiom/mcppatch).Security
will follow the
Security Policy for
private reporting.
AI assistance
Claude Code ran the generator against production and edited the tests and changeset. The results were checked by the commands above, including putting the old snapshot back to confirm the restored tests reject it.
Checklist
CONTRIBUTING.md, and this contribution follows the direct-PR or issue-first policy.any N/A checks above.
🤖 Generated with Claude Code
Summary by CodeRabbit