Wiki Maintenance Log
Append wiki-level changes here. Keep entries short and link to canonical sources when useful.
Use grep-friendly headings: ## [YYYY-MM-DD] operation | Title where operation is ingest, query, lint, or maintenance.
[2026-06-17] ingest | Initial wiki seed
- Created the wiki compression layer under
docs-md/wiki/. - Added seed topic pages for system overview, graph workflows, HITL, auth/groups, and deployment/ops.
- Added a source registry and anti-bloat maintenance rules.
- Wiki pages publish to the docs site as generated
wiki*.htmlat deploy time (not committed).
[2026-06-17] maintenance | Wiki operations and validation
- Documented ingest, query, and lint workflows in
docs-md/wiki/README.md. - Adopted grep-friendly
log.mdentry format and extendedscripts/validate-wiki.jsfor links, index coverage, and source registry paths. - Added
.github/workflows/wiki-check.ymland removed maintainer-onlyREADME.mdfrom docs site navigation.
[2026-06-17] maintenance | Wiki markdown renderer
- Replaced custom Markdown-to-HTML body parser with
markedinscripts/build-docs-wiki.js. - Kept custom frontmatter cards, sidebar nav, and wiki link rewriting.
[2026-06-17] ingest | Topic pages and cross-links
- Added wiki topic pages for blob storage, tables/extensions, and workflow builder.
- Linked repo wiki from root
README.mdand expandedindex.md. - Added Related Topics cross-links across all active topic pages.
[2026-06-17] maintenance | Deploy-time wiki HTML and agent parity
- Stopped committing generated
docs/wiki*.html; build viadocs/build.shat docs deploy (.github/workflows/pages.yml). - Added
AGENTS.mdand wiki rules to.github/copilot-instructions.md. - Added PR template wiki checklist item and
paths:filters towiki-check.yml. - Added wiki topic routing table to
sources.md.
[2026-06-19] maintenance | Documentation audit fixes
- Removed embedded API key from contributor docs; canonical wiki rules consolidated in
AGENTS.md. - Untracked generated
docs/wiki*.html; fixed root README compose paths and docs site quick start. - Updated API key module references (
actor/,auth/); deduplicated workflow builder guide. - Documented docs build dependencies and documentation ownership in wiki open questions.
[2026-06-20] maintenance | Documentation audit phases 1–3
- Phase 1: fixed dev script scope, Prisma order, monitoring compose paths, docs site stats, TESTING.md scripts.
- Phase 2: aligned workflow builder claims, wiki auth sources (
actor/), docs build description. - Phase 3: trimmed
apps/README.md, aligned copilot with CLAUDE Swagger/API rules, addeddocs-md/archive/README.md.
[2026-06-20] lint | Holistic docs-vs-code alignment
- Verified backend routes, workflow engine, auth, and blob storage against code via exploration.
- Fixed API keys are group-scoped (not per user) in README and backend README.
- Replaced stale workflow node catalog (Start/OCR/HTTP/End) with real graph node types (
activity,switch,map,join,childWorkflow,pollUntil,humanGate) in README and frontend README. - Migrated labeling/training docs to the template-models API: README endpoints/tree, backend README, frontend README pages,
DATABASE_SERVICES.md, and theGROUP_RESOURCE_AUTHORIZATION.mdroute tables. - Fixed broken
TEMPLATE_TRAINING.mdlinks toTEMPLATE_MODELS.md. - Noted workflow form editor (default) alongside JSON + read-only React Flow in wiki and READMEs.
[2026-07-03] maintenance | docs-md topic reorganization and code-verified audit
- Reorganized docs-md from a flat dump into topic folders (architecture/ auth/ groups/ workflows/ extraction/ operations/ monitoring/ benchmarking/ frontend/ archive/); all repo references rewritten, taxonomy index at docs-md/README.md.
- Archived point-in-time artifacts (temp/ audits, rapid-assessment-2026-04-09/, PR-88 review, May load-test report, completed Temporal footprint plan, DATABASE_ROLES.md describing the removed Role/UserRole schema) under docs-md/archive/ with a policy README.
- Audited 32 docs against code and fixed drift (groups API endpoints, audit event catalog, database services map, classifier deletion flow, shared packages, ground-truth/HITL dataset flows); remaining docs tracked in feature-docs/20260702-docs-sync-cleanup/remaining-audit-checklist.md.
- Added the docs-sync skill (.claude/skills/docs-sync/) encoding ingest/audit/add/archive workflows and a docs-md-wide link checker.
- Untracked generated docs/wiki*.html (gitignored; built at deploy).
[2026-07-03] lint | Completed code-verified audit of all 88 active docs
- Finished the remaining 56 doc audits inline (architecture, auth, benchmarking, extraction, frontend, groups UI, monitoring, operations, workflows batches); notable fixes: blob key scheme is group-scoped
{groupId}/{category}/..., confusion-matrix derivation is the confusion-profiles module, legacy step-based enrichment config removed, node catalog now covers all registry activities, DAG engine historical migration appendix replaced. - Gap scan across backend/temporal/frontend/packages/ops/CI found one substantive gap: added docs-md/operations/CI_WORKFLOWS.md (GitHub Actions map). Thin modules (queue, health, ocr) are covered indirectly by upload/HA/template-model docs.
- Archived stray docs/LOGGING.md as docs-md/archive/LOGGING_CATEGORIES_2026-03.md.
[2026-07-03] ingest | Add Extraction wiki topic page
- Added
extraction.mdtopic page routing the 11 OCR/extraction docs (previously reachable only by folder browsing); linked fromindex.mdand registered insources.md. Resolves the extraction-topic open question.
[2026-07-08] ingest | Reconcile develop-merged feature docs with topic taxonomy
- Relocated 7 feature docs merged from develop that had landed in
docs-md/root into topic folders:architecture/DOCUMENT_CONTENT_HASH.md,architecture/EPHEMERAL_DOCUMENT_CLEANUP.md,architecture/TRANSACTION_AND_AUDIT_AUDIT.md,extraction/OCR_FAILURE_HANDLING.md, and threefrontend/UX docs; fixed all resulting dangling links and updatedCLAUDE.md/.github/copilot-instructions.mdpaths. - Corrected package drift:
@ai-di/graph-workflow-configwas consolidated into@ai-di/graph-workflow(fixedSHARED_PACKAGES.md,workflows/workflow-config-overrides.md,workflows/DAG_WORKFLOW_ENGINE.md,extraction/OCR_IMPROVEMENT_PIPELINE.md; removed the dead temporalbuild:graph-workflow-configscript). - Added new docs for previously-undocumented merged subsystems:
workflows/TEMPORAL_PAYLOAD_FOOTPRINT.md(gzip codec + OCR payload refs) andextraction/OCR_RESULT_VIEWS.md(AI-1445); routed both fromgraph-workflows.md/extraction.mdand registered the codec package insources.md. - Expanded
architecture/AUDIT.md(group, tables,document_deleted,system_bootstrapdomains; hybrid benchmark audit;recordEvent(events, tx?)) and reconciled the stale Findings-vs-Summary contradiction inTRANSACTION_AND_AUDIT_AUDIT.md. - Fixed
benchmarking/LOAD_TESTING.mdHA row: backendbackend-services/pvc.yml(RWX blob PVC) was removed; blob storage is object storage viaBLOB_STORAGE_PROVIDER. - Added canonical doc
extraction/OCR_RECOVER_NUMERIC_ZEROS.mdfor the newocr.recoverNumericZerosFromCheckboxesactivity (blob-backed correction tool that recovers numeric zeros Azure DI misread as selection marks; three table-finder strategies). Relocated it from thedocs-md/root into theextraction/topic folder and fixed its links after the develop merge renamedgraph-workflows/→workflows/. - Wired it into
extraction.mdand noted the blob-backed correction-tool contract (ocr-activity-ref-utils.ts). Theextraction/folder is already registered insources.md. - Kept the generic
standard-ocr-workflow.jsonfree of the SDPR-specific config: moved therecoverNumericZerosnode into a form-specific variantstandard-ocr-workflow-sdpr.json(seeded asseed-workflow-standard-ocr-sdpr). Fixed the node's ctx wiring — it now reads/writesocrResultRefin place (was reading an unpopulatedocrResultkey, which left the recovery off the data path sopostOcrCleanupnever saw it).
[2026-07-17] ingest | pgBackRest restore runbook
- Added
docs-md/operations/PGBACKREST_RESTORE.md: step-by-step runbook for restoring the backend (app-pg) and Temporal (temporal-pg) databases from automated pgBackRest backups in OpenShift. Covers inspecting available backups, scaling down application pods, patchingspec.backups.pgbackrest.restorefor a latest or named-backup restore, triggering the operator's in-place restore by annotation (the cluster is not shut down), monitoring it, removing the restore spec, and scaling back up. - Added the
pgBackRest List BackupsandpgBackRest Database RestoreGitHub Actions workflows, which automate that runbook for the test and prod environments.
[2026-07-23] ingest | Add Billing topic and canonical usage-metering doc (AI-1580)
- Added
docs-md/architecture/USAGE_METERING_AND_BILLING.mdas the canonical how-it-works/how-to-use doc for the AI-1580 usage-metering + spending-cap feature (data model, rate versions, cap check, storage charging, env config, API, known limitations). - Added
billing.mdtopic page routing to it and thepackages/billing/+ backend/temporal billing source areas; linked fromindex.mdand registered insources.md(routing row, stable-docs entry, code-adjacent sources). - Recorded the soft-cap-vs-"atomic"-REQUIREMENTS contradiction and the
.env.sampleblob-flag name drift inopen-questions.md.
[2026-08-01] ingest | HITL inline canvas editor, persist-before-gate, demo seed
architecture/HITL_ARCHITECTURE.md: corrected the queue-flow diagram (default queue status isawaiting_review, notextracted), documented how documents enter the queue (gated templates now runpersistOcrbeforereviewSwitch; humanGate setsawaiting_review; post-gate store persists corrections), and added the inline canvas editor components (CanvasFieldOverlay, ConfidenceIndicator, useFieldFocus) to Frontend Architecture. Shipped on PR #184.- Relocated
hitl-demo-reset.mdfrom the docs-md root intoextraction/HITL_DEMO_RESET.md(post-reorg straggler) and registered it as a canonical source on the hitl topic. hitl.md: routing notes for the persist-before-gate ordering, the inline editor, and the demo seed.
[2026-08-18] maintenance | Retire resolved billing drift risks
- Removed the soft-cap-vs-"atomic"-REQUIREMENTS contradiction and the
.env.sampleblob-flag name drift fromopen-questions.mdandbilling.md:REQUIREMENTS.mdnow describes the cap as a best-effort soft cap, and.env.samplenow carries the flag name the temporal code reads (CHARGE_FOR_TEMPORAL_BLOB_TRANSACTION_SEPARATELY). - Replaced them in
billing.mdwith the standing risk that the backend and Temporal activity registries can diverge, leaving an activity unpriced and therefore silently free. - Dropped
billing.md's pointer toopen-questions.md, which no longer carries a billing section.
[2026-08-25] ingest | HITL review outcomes: flag replaces escalate, skip abandons
architecture/HITL_ARCHITECTURE.md: rewrote the session state machine, transition table, queue states and terminal-action flows for the three-outcome model (approved/flagged/abandoned); documented the lock-expiry cron, the read-only Flagged tab, and the queue-wide statistics endpoint.hitl.md: routing notes for the three session outcomes, lock reclamation, and the counting basis of the queue stats.
[2026-08-28] ingest | Flagged review becomes a hand-off
architecture/HITL_ARCHITECTURE.md: split the reopen transition in two — an approved session reopens for its own reviewer within five minutes, a flagged session is taken over by any group member with no time limit — and documented the Flagged tab's View/Take actions.hitl.md: flagging is a hand-off rather than a terminal state; editing always holds a lock.
[2026-08-28] maintenance | Backup RPO/RTO doc
- Created
docs-md/operations/BACKUP_RPO_RTO.mdrecording the RPO, recovery window and RTO implied by PR #238's backup settings (weekly fulls, 4-hour incrementals, 2-full count retention).
[2026-09-19] ingest | Label suggestions move from rules to an LLM
architecture/TEMPLATE_MODELS.md: documented thelabel-suggestions/module (tagged-text rendering, the Azure OpenAI call, ref resolution), the bulk field-create and field-suggestion endpoints, the optionalFieldDefinition.descriptioncolumn, and the new Field schema "Suggest fields" UI. The rule-basedsuggestion.service.tsthis replaces is gone from the tree and the doc.extraction.md: added a Design Notes bullet distinguishing label/field suggestions (one-shot, per-document) from the confusion-profile/format-suggestion feedback loops next to it.
[2026-09-29] ingest | Frontend route permissions and the reviewer role
auth/FRONTEND_ROUTE_PERMISSIONS.md: new —appRoutesinroutes.config.tsx,GroupPermissionGuard, sidebar filtering,HomeRedirectlanding pages, and the numeric permission list/api/auth/mesends.auth/GROUP_RESOURCE_AUTHORIZATION.md: roles table matchesRoleClaimsMap(18 group-admin-only permissions; reviewers hold document view and download and leave-group).groups/GROUP_CONTEXT.md:Group.roleandpermissions,hasPermissionForGroup, and the active group derived during render.groups/DELETE_GROUP.md,auth/AUTHENTICATION.md: memberships in soft-deleted groups grant no access.auth-and-groups.md: new canonical source, and the drift risk of the frontend's copy of thePermissionenum.
[2026-10-05] ingest | HITL rejection marks the document rejected
architecture/HITL_ARCHITECTURE.md: the reject transition stores the reason and comment on the session and marks the documentrejected; added the reject path, how the workflow's failure hook leavesrejectedalone, who the approval and rejection name, and that Reject is hidden while labelling a dataset.extraction/OCR_FAILURE_HANDLING.md,architecture/DOCUMENT_RETENTION.md,architecture/EPHEMERAL_DOCUMENT_CLEANUP.md,operations/ENVIRONMENT_CONFIGURATION.md:rejectedis a terminal, purgeable document status, and rejected sessions age out like approved ones.hitl.md: four session outcomes, rejection is final, and the drift risk of the rejection reasons being defined in both the schema and the frontend.
[2026-10-06] ingest | HITL flag notes and correction authors
architecture/HITL_ARCHITECTURE.md: flagging stores an optional note (flag_note) shown in the Flagged tab and as a banner; Take sits in the read-only view, hands the session to the reader and keeps the note; each correction records who made it (field_corrections.actor_id), which the analyticsreviewerIdfilter uses.architecture/HITL_ARCHITECTURE.md: approving, rejecting and flagging save the review page's unsaved corrections first, sending only fields that differ from their last saved correction; skipping discards them.architecture/HITL_ARCHITECTURE.md: a lapsed lock returns a session that carries a flag note toflaggedinstead ofabandoned, and the review page reports a released session when its heartbeat answers 409.hitl.md: the flag note, Take handing the session over, per-correction authors, and lapsed hand-offs returning toflagged.
[2026-10-07] ingest | Group scope for references and the workflow worker
auth/GROUP_RESOURCE_AUTHORIZATION.md: more reference rules (labeling upload and attach, uploadmodel_idandctx_overrides, thumbnails, HITL field schema, confusion-profile derivation, format suggestions, benchmark error detection, ground-truth generation, baseline history, classification results, blob path components, membership check), the blob path rules, and a Workflow Worker section.workflows/DAG_WORKFLOW_ENGINE.md,workflows/03-content-understanding-OCR.md: child workflow refs resolve within the run's group; Content Understanding analyzers are named per group.auth-and-groups.md: pointer to the worker rules, and the drift risk of a new activity trusting an id from its input.auth/GROUP_RESOURCE_AUTHORIZATION.md,auth-and-groups.md: worker blob access goes throughgetGroupBlobStorage/readGroupBlob, enforced by a lint rule; the group-scope rule is also inCLAUDE.mdand.github/copilot-instructions.md.
[2026-10-13] ingest | Group scope follow-ups
auth/GROUP_RESOURCE_AUTHORIZATION.md: API keys of a deleted group, thegroup_idfilter onGET /api/models, one model-ownership rule for the upload check and the worker (trained or in training by another group, compared without case), themanifestPathrule, workflow overrides limited to node settings and ctx defaults, and template model ids on the shared Azure resource; worker rules for graph steps, sample ids and which refusals are not retried; benchmark runs take the dataset's group.architecture/BLOB_STORAGE.md: the worker example usesgetGroupBlobStorage/readGroupBlob; the file table and the import lint rule.workflows/GRAPH_TYPES.md,workflows/workflow-config-overrides.md,workflows/DAG_WORKFLOW_ENGINE.md,workflows/WORKFLOW_NODE_CATALOG.md: the exposed-parameter path rule;benchmark.*activities are worker-only, not palette nodes.workflows/03-content-understanding-OCR.md: the iteration script deploys under the group prefix.docs/_pages/benchmarking-technical.html: the benchmark cache is per group.blob-storage.md,auth-and-groups.md: worker blob routing, and the drift risk of ids on shared Azure resources.workflows/ADDING_GRAPH_NODES_AND_ACTIVITIES.md: worker-only activities stay out ofREGISTERED_ACTIVITY_TYPES.extraction/ground-truth-generation.md,architecture/TEMPLATE_MODELS.md: the override example and whatGET /api/modelslists.
[2026-10-15] ingest | Owner records for model ids, per-caller limits, undeclared ctx keys
auth/GROUP_RESOURCE_AUTHORIZATION.md,architecture/TEMPLATE_MODELS.md: owner records (model_owners) keep a model id its group's after the template is deleted; training claims the id with the job; deleting a template deletes its models from Azure, best effort.auth/AUTHENTICATION.md: the per-IP limits count the caller's own address behind the cluster's proxies.workflows/GRAPH_TYPES.md,workflows/workflow-config-overrides.md: an exposed ctx path whose key is not declared is a warning, and an override on it is refused.auth-and-groups.md: a training records its model id's group.
[2026-10-16] ingest | Template deletion refusals, owner records for older trainings
architecture/TEMPLATE_MODELS.md: deleting a template answers409while one of its trainings is in progress or a benchmark definition names one of its versions; the owner records' migration also reads the training audit events.architecture/AUDIT.md: thetemplate_model_deletedpayload lists the Azure model ids it deletes.auth/AUTHENTICATION.md: the per-IP limits'X-Forwarded-Forrule, stated for callers that come through the router.
[2026-10-22] maintenance | Workflow templates moved into graph-workflow
- The shipped workflow templates moved from
docs-md/workflows/templates/topackages/graph-workflow/templates/; their doc isworkflows/WORKFLOW_TEMPLATES.md. graph-workflows.md: the source map names the templates' folder.
[2026-10-28] ingest | Integration tutorial page, post-gate store wording
hitl.md: the post-gate store writes the extracted result again; reviewer corrections stay infield_corrections.open-questions.md: the From Zero to Integration tutorial is one of the published guides.
[2026-10-29] ingest | Post-gate store applies to some templates only
hitl.md: only templates with a post-gate store write the extracted result again; the base Standard OCR template has none.
[2026-11-02] ingest | HITL corrections across sessions, Save, skip back to Flagged
architecture/HITL_ARCHITECTURE.md: Save stores corrections without ending the session; the review page andGET /api/hitl/sessions/:id/correctionsshow every correction on the document across its sessions, each with its author; skipping a session that carries a flag note returns it to Flagged.extraction/ground-truth-generation.md,extraction/hitl-dataset-creation.md: ground truth is built from every correction on the document, not only the approving session's.hitl.md: the session-end bullet covers skip back to Flagged and corrections carried into a new session.
[2026-11-03] maintenance | HITL skip and lock expiry follow the takeover, not the flag note
hitl.md: a skipped or lapsed session goes back to Flagged when it was taken over from the Flagged tab and no corrections were saved during the takeover, which replaces the flag-note rule.architecture/HITL_ARCHITECTURE.md: the reviewer-workflow use case states the same rule.
[2026-11-04] maintenance | HITL flags: Skip and lock expiry follow open flags
hitl.md: a skipped or lapsed session goes back to Flagged while its document still has an open flag; a document can carry several flags, and Approve and Reject resolve any still open.architecture/HITL_ARCHITECTURE.md: the Flagged tab lists documents waiting to be taken and shows their number of open flags; the reviewer-workflow and flagging use cases follow the flag model.
[2026-11-13] ingest | Label suggestions keep hand labels; route timeouts for slow models
architecture/TEMPLATE_MODELS.md: suggestions now fill only fields the user has not labelled, the Suggest fields window is a table that marks keys already in the schema, field values follow OCR reading order, and a latency note links the route timeouts.operations/KUSTOMIZE_INSTANCE_TEMPLATE.md: new Route timeouts section (150 s on both base Routes and the frontend nginx/api/location, against the router's 30 s default).workflows/AGENT_SETUP.md: corrected which features default to which Azure OpenAI API version.
[2026-11-13] maintenance | Docs site publishes the wiki through VitePress
- The documentation site moved to VitePress.
scripts/sync-docs-wiki.mjsreplacesscripts/build-docs-wiki.js: it copies the wiki intodocs/wiki/when the site builds instead of rendering HTML, and the sidebar lists every page, includingbilling.mdandextraction.md. README.md: the publishing paragraph and maintenance rule 6 describe the copy step.open-questions.md:docs/replacesdocs/_pages/in the documentation ownership list.
[2026-11-13] ingest | AI Hub TEST migration validation
- Added routing to the canonical operator value map and migration validation runbook.
- Kept deployment instructions and endpoint inventories out of the wiki.
[2026-11-16] ingest | Local Azure Log Analytics mirror
- Added routing to the Fluent Bit mirror guide and configuration, including the boundary between host-file collection and container stdout.
[2026-11-17] ingest | OpenShift Azure log mirror
- Extended the canonical mirror guide to OpenShift sidecars, instance Secret provisioning, and nginx filtering; routed shared assets to
deployments/fluent-bit/.
[2026-11-19] maintenance | Limit AI Hub changes to migration and test wiring
- Kept endpoint/auth compatibility and canonical result-reference wiring; removed custom validation runners and unrelated fixes.
- Updated the migration runbook to use existing tests and benchmark UI/APIs.
[2026-11-24] ingest | Mistral AI Hub routing
- Linked extraction routing to the canonical Mistral configuration guide.
[2026-11-24] ingest | Content Understanding AI Hub routing
- Linked the extraction topic to the CU configuration and analyzer guide.
[2026-11-25] ingest | Opt-in Azure log mirror without identifiers
deployment-and-ops.md: the mirror deploys only where every requiredAZURE_LOGS_*setting is configured, through thecomponents/azure-log-mirrorKustomize component and the CHES chart'sazureLogs.enabled; locally it has its ownazure-logsCompose profile.sources.md: routes the component directory.- The canonical guide lists what is removed from a line before it is sent.