Initial Commit
This commit is contained in:
73
openspec/archive/2026-05-25-api-graphql/tasks.md
Normal file
73
openspec/archive/2026-05-25-api-graphql/tasks.md
Normal file
@@ -0,0 +1,73 @@
|
||||
# Tasks — `@suaveplan/api-graphql`
|
||||
|
||||
> Every checkbox MUST reflect work actually done in this change.
|
||||
|
||||
## 0. Pre-flight (non-negotiable)
|
||||
|
||||
- [x] 0.1 Confirm clean working tree (`git status` reports nothing) and no in-flight worktrees with uncommitted work
|
||||
- [x] 0.2 Worktree audit complete; isolated agent worktree.
|
||||
- [x] 0.3 Confirm the package set in `MANIFEST.md` matches package count
|
||||
|
||||
## 1. Spec authoring
|
||||
|
||||
- [x] 1.1 Read design doc §10
|
||||
- [x] 1.2 Read `openspec/specs/api-graphql/spec.md` (does not exist yet)
|
||||
- [x] 1.3 Read `openspec/AGENTS.md` Sections 13, 14
|
||||
- [x] 1.4 Draft `proposal.md`
|
||||
- [x] 1.5 Source-mapping table
|
||||
- [x] 1.6 Draft `specs/api-graphql/spec.md`
|
||||
- [x] 1.7 `**Verified by:**` line on every requirement
|
||||
|
||||
## 2. Implementation
|
||||
|
||||
- [x] 2.1 Scaffold `packages/api-stack/api/api-graphql/` (`0.1.0`, `sideEffects: false`, deps locked)
|
||||
- [x] 2.2 `src/registry/` — abstract `GraphqlRegistry` + concrete `createGraphqlRegistry` accumulator with freeze()
|
||||
- [x] 2.3 `src/resolver/` — `Resolver` re-export + `ResolverMap` / `ResolverFieldMap`
|
||||
- [x] 2.4 `src/loader/` — `LoaderFactory` re-export + `BatchFn` signature
|
||||
- [x] 2.5 `src/subscription/` — `SubscriptionResolver` + `graphql-ws` Zod schema + transport assertion
|
||||
- [x] 2.6 `src/federation/` — `mergeSdl`, `applyNamespace`, `parseSdl`
|
||||
- [x] 2.7 `src/directives/` — `@auth` + `@rateLimit` descriptors + `HOST_DIRECTIVES`
|
||||
- [x] 2.8 `src/engine/` — `GraphqlEngine` lifecycle interface
|
||||
- [x] 2.9 `src/capability-id/` — `GraphqlCapabilityId` literal + runtime constant
|
||||
- [x] 2.10 `src/error-codes/` — `GRAPHQL_CODES` (7) + `GraphqlError`
|
||||
- [x] 2.11 `src/testing/` — `runGraphqlEngineConformance`
|
||||
- [x] 2.12 `src/validators/` — `validateResolvers`, `lookupDirective`, `lookupLoader`
|
||||
- [x] 2.13 `src/index.ts` — explicit named re-exports
|
||||
- [x] 2.14 `package.json` `exports` per subpath
|
||||
|
||||
## 3. Tests
|
||||
|
||||
- [x] 3.1 Unit tests per feature
|
||||
- [x] 3.2 Spec-conformance tests (type-level) for resolver / subscription / engine / capability-id / error-codes
|
||||
- [x] 3.3 Federation collision + namespace property tests
|
||||
- [x] 3.4 Every `it(...)` carries `{ timeout: 5000 }`
|
||||
|
||||
## 4. Documentation
|
||||
|
||||
- [x] 4.1 Sibling `.md` for every implementation `.ts` (9/9 100%)
|
||||
- [x] 4.2 `README.md` linking every feature module
|
||||
- [x] 4.3 No CLAUDE.md update
|
||||
|
||||
## 5. Pre-archive verification
|
||||
|
||||
- [x] 5.1 `bun run check` — clean
|
||||
- [x] 5.2 `bunx turbo lint typecheck test --filter=@suaveplan/api-graphql` — green (82/82 tests)
|
||||
- [x] 5.3 `bunx turbo test:coverage --filter=@suaveplan/api-graphql` — 100/100/100/100
|
||||
- [x] 5.4 `bunx turbo build --filter=@suaveplan/api-graphql` — green
|
||||
|
||||
## 6. Pre-archive 7-row checklist
|
||||
|
||||
- [x] 6.1 Generics on `Resolver<Parent, Args, Result, Caps>` + `expectTypeOf`
|
||||
- [x] 6.2 Zod wired on subscription protocol envelope
|
||||
- [x] 6.3 Every `GRAPHQL_CODES` entry thrown by a production path (verified by error-codes.spec-conformance)
|
||||
- [x] 6.4 Federation collision strict-mode tested on / off
|
||||
- [x] 6.5 OTel — N/A (engines emit)
|
||||
- [x] 6.6 Lifecycle dedup — N/A
|
||||
- [x] 6.7 No retroactive tick
|
||||
|
||||
## 7. Archive
|
||||
|
||||
- [x] 7.1 Fold spec delta into `openspec/specs/api-graphql/spec.md`
|
||||
- [x] 7.2 Move to `openspec/archive/2026-05-25-api-graphql/`
|
||||
- [x] 7.3 Tick umbrella `1.4` (deferred — umbrella file owner)
|
||||
- [x] 7.4 Refresh `MANIFEST.md`
|
||||
Reference in New Issue
Block a user