[APP-2] Second reference application (NaaP Sample CLI) — DO NOT MERGE#381
[APP-2] Second reference application (NaaP Sample CLI) — DO NOT MERGE#381seanhanca wants to merge 1 commit into
Conversation
Add APP-2 — a standalone CLI (examples/app2-cli) that uses a native naap_ key through the NAAP-C front door (BPP ③) to run an inference job. It shares ZERO code with Storyboard and is provider-agnostic (never sees a provider token/URL; receives an opaque signerSession + gated capabilities). Proves the API key + capability model is app-agnostic (generalization E9). - examples/app2-cli: zero-dependency ESM client + runnable CLI + app2.descriptor.json (NAAP-D registration) + README. Structured JSON logs only; key always redacted; node --test guardrail suite (9 tests, green). - apps/web-next app2-attribution.test.ts: drives the real front door with the SAME key under two registered apps — asserts distinct per-app attribution and that capabilities are gated to each app's grant (text-to-video filtered for APP-2), and that the same flow works when the team is backed by the stub provider (E8). Requires key_validation_front_door (+ app_registry) flags ON to do anything; default OFF ⇒ no production impact (INV-1 green). Co-authored-by: Cursor <cursoragent@cursor.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
|
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
🔎 Self code-review (APP-2)Correctness
App- & provider-agnosticism (the point of APP-2)
Safety
Risks considered
|
Coordination
What
A minimal second reference application (
examples/app2-cli) that uses a nativenaap_key through the NAAP-C front door (BPP ③) to run an inference job. Shares zero code with Storyboard; provider-agnostic (never sees a provider token/URL — only an opaquesignerSession+ gatedcapabilities). Proves the API key + capability model is app-agnostic (generalization E9).examples/app2-cli/— zero-dependency ESM front-door client + runnable CLI +app2.descriptor.json(NAAP-D registration) + README. Structured JSON logs only; key always redacted;node --testsuite (9 tests, green).apps/web-next/.../app2-attribution.test.ts— drives the real front door with the SAME key under two registered apps (Storyboard + APP-2): asserts distinct per-app attribution; capabilities gated to each app's grant (text-to-videofiltered for APP-2); same flow works under the stub provider (E8).Self-review
X-App-Id.key_validation_front_door(+app_registry) ON to act; default OFF ⇒ no prod impact. No secrets.DoD
naap_key through the front doorMade with Cursor