Skip to content

fix(safety): Zod validation, structured SW logging, ADR status sync#843

Merged
d-oit merged 1 commit into
mainfrom
fix/plan-200-cleanup-compliance-swarm
Jul 23, 2026
Merged

fix(safety): Zod validation, structured SW logging, ADR status sync#843
d-oit merged 1 commit into
mainfrom
fix/plan-200-cleanup-compliance-swarm

Conversation

@d-oit

@d-oit d-oit commented Jul 23, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add Zod runtime validation to NotificationBadge and NotificationPanel fetch calls (removes eslint-disable suppressions)
  • Convert raw console.error in SW quotaGuardPlugin to structured JSON logging with traceId
  • Update ADR 105/107/110/113 file headers from "Proposed" to "Accepted" (ADR-INDEX already marked them Accepted)
  • Add Plan 200 GOAP execution record and 5 learnings to LEARNINGS.md

Changes

File Change
NotificationBadge.tsx Zod UnreadCountResponseSchema.parse() replaces unsafe as cast
NotificationPanel.tsx Zod NotificationResponseSchema.parse() replaces unsafe as cast
sw.ts Structured JSON.stringify({ level, traceId, event, error }) logging
plans/105,107,110,113 Status field "Proposed" → "Accepted"
plans/200-goap-...md GOAP execution plan with evidence
LEARNINGS.md 5 new project learnings

Quality Gate

  • pnpm lint passes
  • pnpm typecheck passes (7/7)
  • pnpm test:unit passes (862 web tests)
  • pnpm build passes
  • ./scripts/validate-workflows.sh passes (11/11)

… ADR status sync

- Add Zod runtime validation to NotificationBadge and NotificationPanel fetch calls (removes eslint-disable suppressions)
- Convert raw console.error in SW quotaGuardPlugin to structured JSON logging with traceId
- Update ADR 105/107/110/113 file headers from 'Proposed' to 'Accepted' (ADR-INDEX already marked them Accepted)
- Add Plan 200 GOAP execution record and 5 learnings to LEARNINGS.md

Co-authored-by: GOAP Agent <agent@do-epub-studio>
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying do-epub-studio with  Cloudflare Pages  Cloudflare Pages

Latest commit: 9d90d14
Status: ✅  Deploy successful!
Preview URL: https://7d025b13.do-epub-studio.pages.dev
Branch Preview URL: https://fix-plan-200-cleanup-complia.do-epub-studio.pages.dev

View logs

@github-actions

github-actions Bot commented Jul 23, 2026

Copy link
Copy Markdown

🚀 Performance Report

⚡ Startup & Interaction

Metric Value (ms) Limit (ms) Trend Status
First Contentful Paint 304.00 1500 -
Chapter Switch Latency 0.00 300 -
Offline Rehydrate Time 210.60 800 -
DOM Interactive 39.00 - - -
Load Event End 192.30 - - -

🛠️ CI & Workflow

Metric Value Limit Status
Total CI Duration 8.97 min 15.00 min
Pnpm Cache Hit Hit -

@github-actions github-actions Bot added documentation Improvements or additions to documentation area:web area:reader agents labels Jul 23, 2026
@codacy-production

Copy link
Copy Markdown
Contributor

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 complexity · 0 duplication

Metric Results
Complexity 0
Duplication 0

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@d-oit
d-oit merged commit 5b5e35e into main Jul 23, 2026
29 checks passed
@d-oit
d-oit deleted the fix/plan-200-cleanup-compliance-swarm branch July 23, 2026 17:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents area:reader area:web documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant