Commit Graph

45 Commits

Author SHA1 Message Date
RaymondVerhoef
4a8dbee7df feat: phase 1 of AI pipeline hardening — single LLM client + tier-aware models
Implements phase 1 of AI_PIPELINE_HARDENING_PLAN.md. Every Anthropic call
now goes through one module that owns retry, timeout, abort, structured-
output parsing, schema validation, and best-effort call telemetry.

* src/lib/llm.js — single callLLM entry point. Resolves model per tier
  (fast / standard / reasoning) with admin:model legacy fallback for the
  standard tier; 60s default timeout via AbortController; balanced-brace
  JSON extraction; LLMHttpError, LLMTruncatedError, LLMOutputError, and
  LLMValidationError surface clearly distinct failure modes.
* src/lib/llmRetry.js — exponential backoff with full jitter, retries
  only on transient HTTP statuses, honours Retry-After up to 60s, never
  retries on AbortError.
* src/lib/llmSchemas.js — Zod schemas for every structured task plus
  normalizeHandbookResult (collapses legacy "executes" relations into
  the canonical "executed_by" vocabulary).
* src/lib/api.js — thin shim over callLLM so existing callers (extraction
  pipeline, learning, quiz, R42, knowledge graph) keep working unchanged.
* src/lib/__tests__/ — 32 Vitest cases covering parse paths, error
  surfaces, simulation mode, model resolution, and schema validation.
* src/pages/Admin/index.jsx — three model inputs (fast / standard /
  reasoning) replacing the single legacy field; legacy value falls back
  for the standard tier so existing overrides survive.

Adds Zod and Vitest, plus an "npm run test" script.

Also cleans up the pre-existing repo-wide ESLint failures so phase 1's
"npm run lint passes" acceptance criterion can be checked: drops unused
React imports across the JSX tree (React 19 JSX runtime auto-imports),
attaches cause to rethrown errors in the service modules, ignores
pb_migrations in the ESLint config (PocketBase JSVM globals), and
removes one dead handleCreateCustom function in Leren.jsx. A real
behaviour bug surfaced in Testen.jsx — the quiz timer captured a stale
finishQuiz via setInterval closure; now updated via finishQuizRef so the
timer always invokes the latest callback.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-20 13:50:09 +02:00
RaymondVerhoef
db5bb854c3 docs: add AI pipeline hardening plan; rename giteaService to githubService
All checks were successful
On Pull Request to Main / test (pull_request) Successful in 30s
On Pull Request to Main / publish (pull_request) Successful in 58s
On Pull Request to Main / deploy-dev (pull_request) Successful in 1m35s
Adds AI_PIPELINE_HARDENING_PLAN.md — a phased, self-contained plan an AI
agent can execute to harden the Anthropic integration (central LLM
client, tool-based structured outputs, prompt caching, retrieval-based
R42 context, eval harness).

Renames src/lib/giteaService.js to src/lib/githubService.js. The module
calls api.github.com and raw.githubusercontent.com; the previous name
was misleading. No behaviour change. Updates the single import site in
src/components/admin/KnowledgeGraph.jsx.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-20 12:03:25 +02:00
RaymondVerhoef
6fe66bbd93 feat: implement curriculum service and learning automation infrastructure
All checks were successful
On Push to Main / test (push) Successful in 30s
On Push to Main / publish (push) Successful in 57s
On Push to Main / deploy-dev (push) Successful in 1m33s
2026-05-20 11:44:58 +02:00
RaymondVerhoef
2752fb95d9 feat: implement AI-driven knowledge extraction pipeline for company documentation
All checks were successful
On Push to Main / test (push) Successful in 30s
On Push to Main / publish (push) Successful in 59s
On Push to Main / deploy-dev (push) Successful in 1m32s
2026-05-20 09:35:57 +02:00
RaymondVerhoef
caaf2b9eba feat: implement extraction pipeline for knowledge graph generation from text and handbook updates 2026-05-20 09:29:21 +02:00
RaymondVerhoef
d6c1813f75 feat: add extractionPipeline to process source text and handbook updates into a structured knowledge graph 2026-05-20 09:29:16 +02:00
RaymondVerhoef
d5655d2232 feat: implement automated knowledge graph extraction pipeline and visualization component 2026-05-20 08:55:27 +02:00
RaymondVerhoef
08aaed591f feat: add KnowledgeGraph component for visualizing and managing learning topics and relationships
All checks were successful
On Push to Main / test (push) Successful in 30s
On Push to Main / publish (push) Successful in 57s
On Push to Main / deploy-dev (push) Successful in 1m37s
2026-05-19 12:33:12 +02:00
RaymondVerhoef
8529def748 feat: add UploadZone component and database utility for file processing
All checks were successful
On Push to Main / test (push) Successful in 31s
On Push to Main / publish (push) Successful in 59s
On Push to Main / deploy-dev (push) Successful in 1m35s
2026-05-19 12:00:14 +02:00
RaymondVerhoef
d23b0b6b16 feat: add learning_relevance field to topics and implement KnowledgeGraph UI with handbook synchronization capabilities
All checks were successful
On Push to Main / test (push) Successful in 30s
On Push to Main / publish (push) Successful in 58s
On Push to Main / deploy-dev (push) Successful in 1m39s
2026-05-19 08:40:52 +02:00
RaymondVerhoef
190d1a6e0b feat: add KnowledgeGraph component for visualizing, editing, and syncing handbook content with AI-driven analysis
All checks were successful
On Push to Main / test (push) Successful in 31s
On Push to Main / publish (push) Successful in 59s
On Push to Main / deploy-dev (push) Successful in 1m49s
2026-05-18 22:12:19 +02:00
RaymondVerhoef
d2b067735c feat: add UploadZone component for drag-and-drop file processing
All checks were successful
On Push to Main / test (push) Successful in 31s
On Push to Main / publish (push) Successful in 57s
On Push to Main / deploy-dev (push) Successful in 1m34s
2026-05-18 22:03:10 +02:00
RaymondVerhoef
00541f4a08 feat: add KnowledgeGraph visualization and handbook synchronization component for admin interface 2026-05-18 22:01:02 +02:00
RaymondVerhoef
590912ac04 feat: add KnowledgeGraph component for visualizing and managing knowledge base topics and relations 2026-05-18 21:42:14 +02:00
RaymondVerhoef
d71caa41f6 feat: implement interactive Knowledge Graph visualization with AI-driven content analysis and handbook synchronization tools 2026-05-18 21:30:05 +02:00
RaymondVerhoef
f68d76e3d2 feat: add giteaService for fetching files and content from GitHub repositories 2026-05-18 21:25:18 +02:00
RaymondVerhoef
7b84545dc5 feat: add KnowledgeGraph component for D3-based visualization and AI-driven graph management 2026-05-18 21:21:58 +02:00
RaymondVerhoef
f35550f270 feat: add knowledge graph component and persistent handbook sync state collection 2026-05-18 21:13:17 +02:00
RaymondVerhoef
08f5b1fe18 feat: implement 52-week annual curriculum system with admin management and automated topic progression 2026-05-18 19:49:05 +02:00
RaymondVerhoef
06eb974825 feat: add Anthropic API client and knowledge graph extraction pipeline
All checks were successful
On Push to Main / test (push) Successful in 30s
On Push to Main / publish (push) Successful in 58s
On Push to Main / deploy-dev (push) Successful in 1m35s
2026-05-17 18:20:29 +02:00
RaymondVerhoef
5659ff6726 feat: implement learning module page with AI-generated content and feedback workflow
All checks were successful
On Push to Main / test (push) Successful in 29s
On Push to Main / publish (push) Successful in 58s
On Push to Main / deploy-dev (push) Successful in 1m34s
2026-05-17 17:53:09 +02:00
RaymondVerhoef
5b37c04588 feat: implement AI-driven learning content generation service and interactive student dashboard
All checks were successful
On Push to Main / test (push) Successful in 30s
On Push to Main / publish (push) Successful in 57s
On Push to Main / deploy-dev (push) Successful in 1m32s
2026-05-17 17:10:40 +02:00
RaymondVerhoef
98e32d8ac0 feat: implement R42 chat infrastructure with Anthropic API integration and custom design system
All checks were successful
On Push to Main / test (push) Successful in 30s
On Push to Main / publish (push) Successful in 57s
On Push to Main / deploy-dev (push) Successful in 1m31s
2026-05-17 16:48:40 +02:00
RaymondVerhoef
b28956bbe7 feat: initialize PocketBase client with global auto-cancellation disabled and custom session expiry handling
All checks were successful
On Push to Main / test (push) Successful in 30s
On Push to Main / publish (push) Successful in 57s
On Push to Main / deploy-dev (push) Successful in 1m33s
2026-05-17 15:27:34 +02:00
RaymondVerhoef
e2de7f0729 feat: add GitHub repository synchronization functionality with document extraction pipeline and update security policy to permit GitHub API access.
All checks were successful
On Push to Main / test (push) Successful in 29s
On Push to Main / publish (push) Successful in 58s
On Push to Main / deploy-dev (push) Successful in 1m32s
2026-05-17 15:15:51 +02:00
RaymondVerhoef
77d411b77e feat: implement Anthropic API client with simulation support and add PocketBase configuration with session expiry handling
All checks were successful
On Push to Main / test (push) Successful in 30s
On Push to Main / publish (push) Successful in 58s
On Push to Main / deploy-dev (push) Successful in 1m33s
2026-05-17 14:27:31 +02:00
RaymondVerhoef
775c3030d5 feat: implement PocketBase database schema setup script and core API service for content management
All checks were successful
On Push to Main / test (push) Successful in 29s
On Push to Main / publish (push) Successful in 59s
On Push to Main / deploy-dev (push) Successful in 1m33s
2026-05-17 14:18:26 +02:00
RaymondVerhoef
1ba647fecd feat: add roles documentation and database configuration files while removing deployment guide
All checks were successful
On Push to Main / test (push) Successful in 38s
On Push to Main / publish (push) Successful in 1m4s
On Push to Main / deploy-dev (push) Successful in 1m38s
2026-05-17 13:39:58 +02:00
RaymondVerhoef
8b57e10754 feat: implement admin dashboard with management modules and PocketBase setup script 2026-05-17 10:29:06 +02:00
RaymondVerhoef
e68335e159 feat: implement automated Ansible deployment workflows and secure Anthropic API key management via reverse proxy injection
All checks were successful
On Push to Main / test (push) Successful in 41s
On Push to Main / publish (push) Successful in 1m8s
On Push to Main / deploy-dev (push) Successful in 1m39s
2026-05-17 10:00:14 +02:00
RaymondVerhoef
267fa340a8 feat: initialize database connection module for data persistence
All checks were successful
On Push to Main / test (push) Successful in 39s
On Push to Main / publish (push) Successful in 1m6s
On Push to Main / deploy-dev (push) Successful in 1m40s
2026-05-16 19:44:30 +02:00
RaymondVerhoef
0a73ab3466 feat: implement content management dashboard and update proxy configurations to support AI-assisted learning material generation
All checks were successful
On Push to Main / test (push) Successful in 23s
On Push to Main / publish (push) Successful in 50s
On Push to Main / deploy-dev (push) Successful in 1m22s
2026-05-15 12:53:53 +02:00
RaymondVerhoef
e223836d7d feat: add Leren learning page for content generation and feedback, and create TestManager admin component
Some checks failed
On Push to Main / test (push) Has been cancelled
On Push to Main / publish (push) Has been cancelled
On Push to Main / deploy-dev (push) Has been cancelled
2026-05-14 22:21:39 +02:00
RaymondVerhoef
0673122536 feat: create TestManager component to manage and review topic-specific question banks 2026-05-14 22:15:25 +02:00
RaymondVerhoef
74ba5d3dc0 feat: implement knowledge testing system with leaderboard, quiz generation, and PocketBase integration 2026-05-14 16:53:10 +02:00
RaymondVerhoef
42d7209773 feat: add Leren page for AI-generated learning modules and update Caddyfile configuration for static routing
Some checks failed
On Push to Main / test (push) Has been cancelled
On Push to Main / publish (push) Has been cancelled
On Push to Main / deploy-dev (push) Has been cancelled
2026-05-14 16:33:07 +02:00
RaymondVerhoef
c940c984ad feat: implement interactive knowledge graph visualization and AI-driven graph optimization dashboard 2026-05-11 22:32:47 +02:00
RaymondVerhoef
2597dc751a feat: implement AI-driven learning content generation service and interactive leaderboard functionality 2026-05-11 20:16:56 +02:00
RaymondVerhoef
0cf5758742 feat: implement leaderboard page and integrate into application routing 2026-05-10 21:47:14 +02:00
RaymondVerhoef
31aacd68d5 feat: implement core knowledge graph UI components, extraction pipeline, and initial platform navigation pages 2026-05-10 21:33:02 +02:00
RaymondVerhoef
a626042092 feat: implement Anthropic API integration with simulation mode and a configurable admin dashboard 2026-05-10 12:07:00 +02:00
RaymondVerhoef
260644b41a feat: implement admin knowledge extraction system with document upload and AI pipeline integration 2026-05-10 11:18:48 +02:00
RaymondVerhoef
f8d0c68f84 feat: initialize main application routing and responsive navigation layout with authentication guards 2026-05-10 11:00:39 +02:00
RaymondVerhoef
b988028cf8 feat: implement core UI components and build initial dashboard layout with navigation structure 2026-05-10 10:52:12 +02:00
RaymondVerhoef
2fb50a19c9 feat: initialize learning platform project with React, Vite, and baseline application structure 2026-05-10 10:30:30 +02:00