# ISIS Marketing Key Art Pack Generation API Typed Request Contracts Runbook

Last Updated: 2026-03-02  
Scope: `MXA-0495` generation API exposure for `marketing-key-art-pack` workflows
with typed request contracts.

## Purpose

Generate and validate the canonical API contract artifact for
`marketing-key-art-pack` workflow run requests, including route exposure,
workflow ID coverage, typed parameter requirements, and validation guard
behavior.

## Artifacts

- `docs/domains/isis/remediation-v2/ISIS_V2_MARKETING_KEY_ART_PACK_GENERATION_API_TYPED_REQUEST_CONTRACTS.json`
- `docs/domains/isis/remediation-v2/ISIS_V2_MARKETING_KEY_ART_PACK_GENERATION_API_TYPED_REQUEST_CONTRACTS.md`

## Generator

```bash
node scripts/isis/generate-v2-marketing-key-art-pack-generation-api-typed-request-contracts.mjs
```

Options:

- `--report-date=YYYY-MM-DD` (default: current UTC date)

## Validator

```bash
node scripts/isis/validate-v2-marketing-key-art-pack-generation-api-typed-request-contracts.mjs
```

## Source Inputs

- `docs/domains/isis/remediation-v2/ISIS_REMEDIATION_V2_TICKETS.json`
- `docs/domains/isis/remediation-v2/ISIS_V2_MARKETING_KEY_ART_PACK_REQUIREMENTS_BRIEF.json`
- `apps/isis/generation-api/src/schemas/marketing-key-art-pack.schema.ts`
- `apps/isis/generation-api/src/routes/workflows.ts`
- `apps/isis/generation-api/src/schemas/marketing-key-art-pack.schema.spec.ts`
- `apps/isis/generation-api/src/routes/workflows.spec.ts`

## Operational Cadence

1. Regenerate whenever typed workflow IDs or required parameter contracts
   change.
2. Validate before closing SDK/UI exposure tasks (`MXA-0496`, `MXA-0497`) and
   parity/regression tasks.
3. Keep route guard error codes and typed schema coverage synchronized with API
   tests and public contract docs.

## Related Artifacts

- `apps/isis/generation-api/src/schemas/marketing-key-art-pack.schema.ts`
- `apps/isis/generation-api/src/routes/workflows.ts`
- `docs/domains/isis/remediation-v2/ISIS_REMEDIATION_V2_BACKLOG.md`
