Octimo Delivery docs
P19 deployed: adventure map, optional detours and saved quest progress verified on OVH; educator review and real-learner acceptance remain open

OVH deployment on WorkSquares DNS

The verified development baseline and the database, identity, release and rollback work required to launch Octimo at octimo.worksquares.ai.

Verified infrastructure and release history

Keep the same DNS. octimo.worksquares.ai points to OVH. The WorkSquares zone and nameservers are retained.

Latest verified application release: P19, 2026-10-10T10:35:27Z, Octimo development preview on OVH. Open the release receipt.

Discovery snapshot (before application delivery)

Read-only infrastructure verification and planned Octimo-only deployment. No database, DNS or service mutation was performed for this plan.

ResourceObserved value at discoveryEvidence and limitation
Public hostnameoctimo.worksquares.aiA record resolves to 51.195.88.132.
DNS authorityworksquares.ains53.domaincontrol.com and ns54.domaincontrol.com; keep the same existing zone.
OVH host51.195.88.132SSH read-only probe succeeded; hostname dev; existing personal ovh_key used without printing credentials.
PostgreSQL17.11One Octimo database observed: octimo_db. Owner/login role octimo_app is not superuser and has no BYPASSRLS.
Foundation6 migrations / 22 tablesApplied 2026-10-04. Schemas: core 4, iam 9, ops 6, privacy 3. Local SHA-256 prefixes match the migration ledger.
Row security15 tables with forced RLSCounts observed: core 3, iam 6, ops 4, privacy 2. Presence of policies is not proof of tenant-isolation correctness.
API runtimeoctimo-api:latestHealthy container on 127.0.0.1:3140 → 3000. Image tag is not an immutable source-commit receipt.
Runtime modedevelopment / dev authDB_USER=octimo_app; DB_SSL=false. Dedicated runtime/grading roles and public production authentication remain to be implemented.
nginx/etc/nginx/sites-available/octimo-worksquares-aiStatic root /var/www/octimo. Public /api/v1/health/ is proxied; other /api/ routes return 404.
TLSExisting Certbot certificatenginx references /etc/letsencrypt/live/octimo.worksquares.ai/. Successful external HTTPS probes verify current serving, not future renewal.
Protected environment/opt/octimo/api.envOnly non-secret configuration fields were inspected; credential values were neither printed nor added to docs.
Independent checksPublic HTTPS and DNSLanding/prototype/live/ready: HTTP 200. /api/v1/me: HTTP 404 as expected. API npm run verify: 7 suites, 17 tests, lint, typecheck and build passed.

Open the dated discovery receipt. P19 release receipt · P18 release receipt · P17 release receipt · P16 release receipt · P15 release receipt · P01 release receipt · P11 release receipt · P14 release receipt · P10 release receipt · P09 release receipt · P08 release receipt · P07 release receipt · P06 release receipt · P05 release receipt · P04 release receipt · P03 release receipt · P02 release receipt · P01 release receipt.

Database creation and migration plan

EnvironmentDatabaseRole directionUse
Developmentoctimo_dbExisting octimo_app owner; introduce separate scoped runtime rolesExisting development site remains the baseline; never run parallel test suites or destructive reset here.
Automated integrationDisposable PostgreSQL per test runEphemeral test rolesRun locally or in CI; never aim destructive tests at shared OVH.
Stagingoctimo_staging (proposed)Separate migrator, runtime and grading/authoring privilegesSeparate secrets and data; test migrations, restore and full authenticated user journeys.
Productionoctimo_prod (proposed)Dedicated least-privilege logins; no schema-owner runtimeProvision before live learner data. Reuse the existing public hostname at the final controlled release switch.

The table lists target environments, not a claim that every target is provisioned. Current databases and migration counts are recorded in each release receipt. Applied migrations are immutable. Separate database work from application routing changes, with a backup, restore and compatibility check for each target.

Required role boundary

  • Migrator owns schema changes; runtime receives only required operations.
  • Protected grading and authoring privileges do not make keys visible to student routes.
  • Private identity access is limited to explicitly authorized services/projections.
  • All organization-owned data validates tenant context; PostgreSQL integration tests prove the boundary.
  • Credentials come from protected runtime configuration, never copied from a different WorkSquares product.

DNS, HTTPS and application routing

Record or routeVerified stateHandling
octimo.worksquares.ai A51.195.88.132Retain the existing record.
worksquares.ai NSns53.domaincontrol.com / ns54.domaincontrol.comRetain the same zone and delegation.
/Next.js application landing pageDeploy the UI with a committed release identity.
/prototype/Static screen prototypesLegacy admin pages redirect to the authenticated admin workspace.
/api/v1/health/Proxy to loopback APILiveness, readiness and release identity.
/api/ other routesReal OIDC sessions; anonymous access deniedSame-origin, tenant-scoped API authorization.
Student/Admin/adult routesAuthenticated application; admin MFA enforcedRoles and publication gates control available workflows.
Optional staging hostnameNot createdCreate inside the same WorkSquares zone only if needed.

No DNS credentials were required for the existing record. Provider write access for a future new record was not inspected.

Ordered release runbook

  1. Recheck target and preserve the baseline

    Inspect current DNS, host capacity, Octimo processes/ports, nginx path, current image IDs and database ledger. Record the exact source commits. Follow WorkSquares manual-release practices without assuming its product-specific gates or scripts already support Octimo.

    Evidence: Release manifest identifies Octimo resources and the existing WorkSquares zone; unrelated databases/sites/containers are out of scope.

  2. Provision isolated Octimo databases and roles

    Keep octimo_db intact. Create the named staging/production targets only after existence/owner checks; use separate migration and runtime credentials, SCRAM authentication, private or encrypted transport, scoped grants and no runtime BYPASSRLS. Put secrets in protected environment files or the existing secret store.

    Evidence: Role/privilege matrix, RLS tests and no direct runtime access to privacy.user_private or protected keys. No password appears in Git, HTML or logs.

  3. Back up and restore before migration

    Capture a consistent Octimo database backup and required asset/config metadata. Restore into an isolated target and verify the ledger, representative counts and login/attempt contracts. Set retention and encryption for backups.

    Evidence: Restored backup receipt meets the selected RPO/RTO. An untested dump does not satisfy this step.

  4. Build a reproducible candidate

    Build pinned API/UI/worker images from exact source commits, include release labels, and use protected environment configuration. Select free loopback candidate ports after inspection. Run migrations as a one-off task with advisory lock and checksum validation.

    Evidence: Build/test receipts and exact image digests. Migrations are forward-only; already-applied SQL files are never edited.

  5. Connect identity and keep exam data private

    Configure the selected OIDC provider and same-origin session callbacks. Run real Student/Admin/Guardian/Teacher acceptance against staging. Keep the current nginx /api/ block until public authentication is verified.

    Evidence: No dev-header authentication exposed. Cross-tenant/relationship denial and answer-key leakage cases pass.

  6. Reuse WorkSquares DNS and TLS

    Retain the existing octimo.worksquares.ai A record and authoritative nameservers. Add any chosen staging hostname inside the same worksquares.ai zone only if required. Check certificate coverage/renewal; validate the exact Octimo nginx candidate with nginx -t.

    Evidence: DNS resolves correctly and HTTPS presents the expected certificate. Existing WorkSquares DNS records, delegation and product routes remain intact.

  7. Switch the Octimo release and verify externally

    Take a deployment lock around shared nginx/Docker mutations. Switch the Octimo upstream or release symlink atomically after candidate health passes. Verify all five tracks from outside the host, including save/resume, timed submission, results, rewards and adult reports.

    Evidence: Public authenticated browser receipt, API/UI version identity, migration ledger, zero unresolved high-severity issues and active monitoring.

  8. Exercise rollback and operate the pilot

    Keep previous app images/static assets/configuration. Roll back app routing if health or business checks fail. Keep additive schema compatible with both releases and repair data forward; restore the database only under a deliberate recovery procedure.

    Evidence: Rehearsed rollback and restore evidence, alert ownership, learner support and an explicit pilot acceptance record.

Discovery gaps and delivery tracking

These gaps were recorded before implementation. Their current resolution belongs to the phase register and dated release receipts.

Gap at discoveryEvidence at discoveryRequired work
Runtime uses database ownerSource and live configuration both use octimo_app.Split roles before exposing the learning API; test grants and RLS with the actual runtime identity.
Authentication is development-only in live configPublic nginx exposes only health routes.Implement OIDC and browser sessions; do not remove the API block to make a demo appear functional.
No separate staging or production database observedOnly octimo_db currently exists for Octimo.Create isolated targets and prove restore before real learner data.
Mutable API image tagThe live tag is octimo-api:latest.Add exact commit/image labels and a release manifest before a platform release.
Old environment records conflictDocs contained pre-scaffold and pre-migration statements.Use dated receipts and update status with each environment change.
Broad historical PostgreSQL access settingsOlder docs record broad TCP access; current Octimo runtime has DB_SSL=false. Host-wide firewall/pg_hba was not audited here.Harden Octimo connectivity with the platform owner while preserving other services; verify current rules before changing them.
Existing status command can writeDatabaseMigrator.status() calls ensureLedger().Make db:status truly read-only in P01; discovery used SELECT queries inside a read-only transaction.
Capacity and production suitability unmeasuredThe host is shared with other WorkSquares products.Measure CPU/RAM/storage/connections and define resource limits before staging or production rollout.

Existing authorization covers the requested Octimo platform and OVH deployment. These gates make the release verifiable; they do not add repeated permission requests for already authorized work.

Release evidence to retain

  • Exact API/UI/worker commits, image digests and configuration revision, without secrets.
  • Per-environment migration checksums, role grants, isolation tests and backup/restore results.
  • DNS answers, nginx validation, certificate/renewal checks and public version/health results.
  • Authenticated user journeys for all seven tracks and adult roles, including mobile browsers.
  • Content/answer-review approval, load and failure results, alerts and rollback receipt.
  • Hosted CI status kept distinct from local validation and public acceptance.

Infrastructure references inspected

  • E:/WORKSQUARES/plans/direct-ovh-deployment-plan.md
  • E:/WORKSQUARES/plans/direct-ovh-phase-2a-checkpoint-2026-08-24.md
  • octimoui/docs/environments.md
  • octimoapi/database/migrations/000001_bootstrap.sql through 000006_row_security.sql
  • octimoapi/src/platform/database/migrator.ts

E:/WORKSQUARES was used read-only. No WorkSquares application, database, DNS record or configuration was modified during planning.