بنقرة واحدة
session-cookie-ownership
Design possession-based API access with opaque session cookies and explicit miss semantics
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Design possession-based API access with opaque session cookies and explicit miss semantics
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Pilot a community Spec Kit extension without pretending it is trusted, official, or a hard gate
Lock what an analytical financial redesign may beautify, but never hide, reorder, or distort
Test tripwires for mortgage analysis UI redesign — preserves logic integrity through visual changes
Choose Spec Kit extensions that reinforce real repo gaps without duplicating existing orchestration
Run Spec Kit through the repo-pinned official CLI and keep the official git extension as the branch workflow source of truth
Freeze cross-cutting contracts before parallel implementation starts
| name | session-cookie-ownership |
| description | Design possession-based API access with opaque session cookies and explicit miss semantics |
| domain | api-design |
| confidence | high |
| source | earned |
Use this pattern when a product has no user accounts yet, but individual resources still need private ownership semantics. The goal is boring transport behavior: possession-based access, explicit retention, and no leakage about whether a resource exists for someone else.
HttpOnly, SameSite=Lax, Secure cookies for the opaque token.Secure in local development.401 when the ownership cookie is absent.404 for unknown, expired, deleted, or not-owned resources.apps/api/src/routes/analyses.ts requires analysis_session on GET, DELETE, compare, and affordability, returning 401 when missing and 404 on ownership miss.apps/api/src/modules/analyses/analysis-service.ts stores hashed session ownership and emits retention metadata tied to the cookie-based access model.specs/001-mortgage-comparator-mvp/plan.md documents the expected possession, TTL, and purge semantics before implementation.403 for not-owned resources and leaking that the record exists.HttpOnly cookie fits.