brainstorming
brainstorming
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).
persona-local-dev-loopRun a deterministic local Persona sandbox loop with synthetic inquiries, raw webhook fixtures, and replay checks. Use when developing without production PII. Trigger with: "develop Persona locally", "test Persona webhook", "mock Persona flow".
Independent GitHub snapshot · Automated classification · Original documentation governs
name: persona-local-dev-loop description: >- Run a deterministic local Persona sandbox loop with synthetic inquiries, raw webhook fixtures, and replay checks. Use when developing without production PII. Trigger with: "develop Persona locally", "test Persona webhook", "mock Persona flow". allowed-tools: Read, Grep, Write, Edit version: 2.0.0 argument-hint: '[fixture-scenario]' model: inherit effort: high license: MIT author: Jeremy Longshore jeremy@intentsolutions.io tags:
Build the local loop around Persona sandbox behavior and captured contract fixtures, not around calls to production. Sandbox performs no real verification, supports forced pass or fail paths, and incurs no usage charges.
Name the template, forced outcome, inquiry state, expected event type, API version, and cleanup disposition.
Create a sandbox inquiry using a unique Idempotency-Key. Persist IDs separately from synthetic payloads.
Use the supported sandbox flow to force pass or fail. Do not encode sandbox-only controls into production request code.
Save headers and raw body before parsing, redact PII, and preserve duplicate deliveries and deliberately reordered fixtures.
Verify HMAC against raw bytes, deduplicate by event ID, order business processing by data.attributes.created-at, and assert the terminal local state.
Delete only generated local artifacts through the project’s approved cleanup path; retain the contract fingerprint and test receipt.
Use a sandbox bearer key for REST requests and a separate sandbox webhook secret for HMAC verification. Never expose either value in a tunnel URL, fixture, console log, or committed .env file.
Use Read and Grep to inspect application configuration, provider documentation, fixtures, schemas, tests, and redacted operational evidence before proposing a change. Use Write or Edit only for an approved implementation, configuration, test, runbook, or redacted receipt. Do not create, resume, approve, decline, redact, rotate, revoke, deploy, or otherwise mutate production Persona resources without explicit operator approval.
Return the environment, resource and event identifiers, API version, template context, source-contract fingerprint, evidence, unresolved risk, rollback state, and final decision without exposing bearer keys, webhook secrets, inquiry session tokens, raw identity documents, or unnecessary PII.
The government-id-fail scenario creates a sandbox inquiry, forces failure, captures two deliveries of the same event, replays them out of order, and proves exactly one transition to the expected failed state.
| Failure | Response |
|---|---|
| Tunnel receives parsed JSON only | Disable body transformation and retain the exact raw bytes before JSON parsing. |
| Fixture signature fails after editing | Regenerate the signature from the edited timestamp and raw body; never weaken verification. |
| Sandbox and production settings diverge | Record the drift and stop promotion until templates, events, and API version are reviewed. |
Verify the result against the linked first-party evidence, the pinned API version, redacted contract fixtures, an expected failure path, and the documented rollback or manual-disposition path. A successful request is not proof of a successful identity decision.