0x0LearnReferenceLibrariesMigration0x0.jmp0x1b.com

Index And Kukulkan Production Replacement Roadmap

This roadmap defines the work needed before index and kukulkan can be

rewritten and operated as production 0x0 applications.

The target is full application replacement, not source translation alone. A

milestone is complete only when the repository contains the 0x0 source, the

runtime implementation needed by that source, resource-safe gates, migrated

tests, release packaging, and a rollback path.

Scope

In scope:

base;

applications need it;

jmp0x1b runner in the normal path.

Out of scope:

before a real executable gate proves it.

External tools such as cc, curl, docker, helm, kubectl, node,

playwright, and PostgreSQL may remain deployment or validation dependencies

when the application contract requires them. They must be called through an

explicit 0x0 runtime boundary or an explicitly documented host-side release

gate.

Current Baseline

index:

fetches, browser snapshots, terminal rendering, capture artifacts, shelf

persistence, compatibility packs, auth assist, and command packaging.

kukulkan:

- jmp0x1b_kukulkan_api_contract;

- jmp0x1b_kukulkan_client;

- jmp0x1b_kukulkan_events;

- kukulkan_compliance_domain;

- kukulkan_geospatial_domain;

- kukulkan_service_stack;

- kukulkan_saas_orchestration;

- kukulkan_api_runtime;

- kukulkan_web_ui;

subprocess/env access, Postgres, OIDC, object store/search/email/observability

adapters, browser e2e, WCAG/perf/security gates, Docker, Helm, Kubernetes,

and remote deployment scripts.

0x0:

workspace, registry, or solver;

print, and panic;

construct values rather than perform real effects, including web.listen,

web.accept, web.execute-text-request, cli.exec-subprocess, and

jmp0x1b-shaped fs.read-text / fs.write-text.

Replacement Definition

index is replaced when:

workspace;

capture artifacts, shelf storage, and compatibility packs work through real

0x0 runtime boundaries;

0x0 replacements;

kukulkan is replaced when:

runtime metrics, and database-backed workflows are exercised by 0x0-owned

app gates;

and deployment gates are either 0x0-owned or explicit host-side release gates;

Session Safety Rules

The project has already hit user-session breaks from heavy documentation and

compiler runs. Until a gate is proven safe, roadmap work must follow these

rules:

smaller resource-safe docs gate and use it for this roadmap work.

for parallel execution.

- single-job mode;

- timeout;

- peak-RSS capture;

- resumable package list;

- clear log output under build/ or .runtime/;

- no uncontrolled background processes.

targets before they are allowed into a parent milestone gate.

until their resource budgets are recorded and accepted.

Standing Gates

These gates apply to every milestone once they exist:


make package-check
make libs-check
git diff --check

Resource-safe application gates must be added before broad checks:


make apps-check
make index-check
make kukulkan-check

Heavy gates must stay opt-in until they have resource budgets:


make apps-full-check
make index-full-check
make kukulkan-full-check
make kukulkan-browser-check
make kukulkan-deploy-check

No milestone may require make docs-check until Milestone 3 replaces or fixes

the behavior that breaks the user session.

Commit And Submilestone Policy

code, tests, docs, or generated release metadata.

or a real app rewrite slice.

parent exit gate passes.

about whether the output is exact parity or intentional 0x0 behavior.

Milestone 0: Replacement Inventory And Acceptance Baseline

Status: done.

Goal: convert the audit into machine-checkable inventories so no runtime or app

dependency is discovered late during the rewrite.

Submilestones:

0.1 Source Inventory

Artifacts:

release files.

Required behavior:

Exit gate:


make apps-inventory-check

0.2 Dependency And Runtime Matrix

Artifacts:

Required behavior:

- existing 0x0 library;

- app-owned package to rewrite;

- host runtime capability to implement;

- release/deploy-only host tool;

browser, deployment, or security-sensitive.

Exit gate:


make apps-dependency-matrix-check

0.3 Acceptance Corpus

Artifacts:

Required behavior:

Exit gate:


make apps-parity-corpus-check

Parent exit gate:


make apps-readiness-baseline-check

Milestone 1: 0x0 Application Workspace

Status: done.

Goal: give production applications a first-class location, dependency model,

test model, and release model in the 0x0 repository.

Submilestones:

1.1 App Directory Contract

Required layout:


apps/
  index/
    0x0.pkg
    src/
    tests/
    fixtures/
    release/
  kukulkan/
    0x0.workspace
    packages/
    tests/
    fixtures/
    deploy/
    release/

Required behavior:

Exit gate:


make apps-layout-check

1.2 Workspace Manifest And Lockfile

Required artifacts:

Required behavior:

Exit gate:


make apps-package-check

1.3 App Test Discovery

Required behavior:

Exit gate:


make apps-test-manifest-check

Parent exit gate:


make apps-check

Milestone 2: Source Rewrite Foundation

Status: done.

Goal: make manual and mechanical rewrites reliable before touching large app

sources.

Submilestones:

2.1 0x0 App Style Guide

Artifacts:

module imports, CLI dispatchers, and runtime boundaries.

Required behavior:

Exit gate:


make app-style-check

2.2 Porting Harness

Artifacts:

Required behavior:

Exit gate:


make app-porting-harness-check

2.3 App Lint Rules

Required behavior:

imported compatibility names that are deliberately wrapped;

production app code;

Exit gate:


make apps-lint

Parent exit gate:


make source-rewrite-foundation-check

Milestone 3: Resource-Safe Gate Infrastructure

Status: done.

Goal: prevent roadmap work from breaking the user session.

Submilestones:

3.1 Safe Docs Gate

Required behavior:

Exit gate:


make docs-safe-check DOC=docs/index-kukulkan-production-roadmap.md

3.2 Single-Job App Compiler Gates

Required behavior:

Exit gate:


make apps-compile-check

3.3 Runtime Process Hygiene

Required behavior:

Exit gate:


make apps-runtime-hygiene-check

Parent exit gate:


make resource-safe-gates-check

Milestone 4: Host Runtime Capability Model

Status: done.

Goal: define the real runtime boundary that app code can depend on.

Submilestones:

4.1 Capability Taxonomy

Required artifacts:

crypto, time, state, deploy, and test.

Required behavior:

Exit gate:


make runtime-capability-check

4.2 Runtime ABI

Required behavior:

Exit gate:


make runtime-abi-check

4.3 Runtime Test Adapter

Required behavior:

runtimes;

Exit gate:


make runtime-test-adapter-check

Parent exit gate:


make host-runtime-boundary-check

Milestone 5: File, Environment, And Process Runtime

Status: done.

Goal: replace compatibility-only file/process surfaces with real behavior.

Submilestones:

5.1 Filesystem Runtime

Required behavior:

Index needs this for capture, shelf, compatibility packs, auth assist, save,

batch extraction, and diagnostics.

Kukulkan needs this for reports, runtime PID/log files, deploy artifacts, and

package fixtures.

Exit gate:


make runtime-fs-check

5.2 Environment And CLI Runtime

Required behavior:

Exit gate:


make runtime-cli-check

5.3 Subprocess Runtime

Required behavior:

Kukulkan needs this for current env probes, Postgres/psql metrics, Docker

fallbacks, OIDC helper scripts, and deployment checks.

Exit gate:


make runtime-process-check

Parent exit gate:


make runtime-local-effects-check

Milestone 6: HTTP Client And Browser Runtime

Status: done.

Goal: support Index live browsing/capture behavior and Kukulkan browser-facing

checks without relying on jmp0x1b host behavior.

Submilestones:

6.1 HTTP Client Runtime

Required behavior:

Index needs this for URL fetch and cache-backed document loading.

Kukulkan needs this for internal runtime probes and external provider

integration tests.

Exit gate:


make runtime-http-client-check

6.2 Browser Snapshot Runtime

Required behavior:

Index needs this for browser_snapshot and capture diagnostics.

Kukulkan needs this for browser e2e validation and OIDC browser PKCE flows.

Exit gate:


make runtime-browser-check

6.3 Capture And Redaction Security Gate

Required behavior:

Exit gate:


make runtime-capture-security-check

Parent exit gate:


make runtime-fetch-browser-check

Milestone 7: HTTP Server, Routing, WebSocket, And Live Runtime

Status: done.

Goal: support Kukulkan API/UI runtime and any future Index service mode.

Submilestones:

7.1 HTTP Server Runtime

Required behavior:

Exit gate:


make runtime-http-server-check

7.2 Router And API Contract Runtime

Required behavior:

Exit gate:


make runtime-router-check

7.3 WebSocket Runtime

Required behavior:

Exit gate:


make runtime-websocket-check

7.4 LiveView-Compatible Runtime

Required behavior:

Exit gate:


make runtime-live-check

Parent exit gate:


make runtime-web-check

Milestone 8: Persistence And Service Adapter Runtime

Status: done.

Goal: implement the runtime adapters Kukulkan needs for production workflows.

Submilestones:

8.1 Database Runtime

Required behavior:

Exit gate:


make runtime-db-check

8.2 Auth And OIDC Runtime

Required behavior:

Exit gate:


make runtime-auth-check

8.3 Object Store, Search, Email, And Observability

Required behavior:

Exit gate:


make runtime-service-adapters-check

8.4 Backup, Restore, And Job Runtime

Required behavior:

Exit gate:


make runtime-operations-adapters-check

Parent exit gate:


make runtime-service-boundary-check

Milestone 9: Index Pure Rewrite

Status: done.

Goal: rewrite Index's deterministic app logic in 0x0 before enabling live

effects.

Submilestones:

9.1 Index Document Model

Required behavior:

Exit gate:


make index-document-model-check

9.2 Parsers And Extractors

Required behavior:

Exit gate:


make index-extraction-check

9.3 Terminal Rendering And TUI Command Model

Required behavior:

Exit gate:


make index-render-check

9.4 Compatibility Pack, Auth Assist, Challenge, Adapter, And IDX Logic

Required behavior:

logic with fake file runtime;

Exit gate:


make index-policy-tools-check

Parent exit gate:


make index-pure-check

Milestone 10: Index Runtime Replacement

Status: done.

Goal: make the Index CLI production-ready in 0x0.

Submilestones:

10.1 Index CLI Binary

Required behavior:

Exit gate:


make index-cli-check

10.2 File-Backed Commands

Required behavior:

Exit gate:


make index-file-runtime-check

10.3 Network And Browser Commands

Required behavior:

Exit gate:


make index-network-runtime-check

10.4 Index Package And Release

Required behavior:

Exit gate:


make index-release-check

Parent exit gate:


make index-full-check

Milestone 11: Kukulkan Pure Package Rewrite

Status: done.

Goal: rewrite Kukulkan app-owned packages that do not require live runtime

effects first.

Submilestones:

11.1 API Contract, Client, And Events

Required behavior:

Exit gate:


make kukulkan-contracts-check

11.2 Compliance Domain

Required behavior:

onboarding rules;

Exit gate:


make kukulkan-compliance-check

11.3 Geospatial Domain

Required behavior:

artifact, change detection, geostats, and timeseries contracts;

Exit gate:


make kukulkan-geospatial-check

11.4 Service Stack And SaaS Orchestration

Required behavior:

scheduler, retry, provenance, secrets, tracing, OIDC, object store, search,

notify, job runtime, observability, and backup/restore plans;

Exit gate:


make kukulkan-service-core-check

Parent exit gate:


make kukulkan-pure-check

Milestone 12: Kukulkan API Runtime Replacement

Status: done.

Goal: replace kukulkan_api_runtime with a 0x0 production API process.

Submilestones:

12.1 API Config And Boot

Required behavior:

Exit gate:


make kukulkan-api-boot-check

12.2 API Routing And Responses

Required behavior:

Exit gate:


make kukulkan-api-routes-check

12.3 Auth, Authorization, And Session Runtime

Required behavior:

Exit gate:


make kukulkan-api-auth-check

12.4 Database-Backed Workflows

Required behavior:

Exit gate:


make kukulkan-api-db-check

12.5 API Runtime Probes

Required behavior:

Exit gate:


make kukulkan-api-runtime-check

Parent exit gate:


make kukulkan-api-full-check

Milestone 13: Kukulkan UI, LiveView, And Browser Runtime Replacement

Status: done.

Goal: replace kukulkan_web_ui with a 0x0 production UI process.

Submilestones:

13.1 UI Static And Template Runtime

Required behavior:

Exit gate:


make kukulkan-ui-template-check

13.2 LiveView Runtime

Required behavior:

Exit gate:


make kukulkan-live-check

13.3 Browser Runtime Bridge

Required behavior:

Exit gate:


make kukulkan-browser-runtime-bridge-check

13.4 Browser, WCAG, Load, And Security Gates

Required behavior:

explicit update target.

Exit gate:


make kukulkan-browser-quality-check

Parent exit gate:


make kukulkan-ui-full-check

Milestone 14: Kukulkan Deployment And Operations Replacement

Status: done.

Goal: package and deploy Kukulkan from the 0x0 app artifacts.

Submilestones:

14.1 Dependency Runtime Profiles

Required behavior:

Jaeger, object store, and search.

Exit gate:


make kukulkan-dependency-profile-check

14.2 Container And Image Build

Required behavior:

Exit gate:


make kukulkan-image-check

14.3 Helm And Kubernetes

Required behavior:

readiness/liveness probes;

Exit gate:


make kukulkan-k8s-check

14.4 Remote App Deployment

Required behavior:

Exit gate:


make kukulkan-app-deploy-check

Parent exit gate:


make kukulkan-deploy-check

Milestone 15: Final Cutover And Legacy Removal

Status: done.

Goal: make the 0x0 applications the normal production path and remove legacy

runtime assumptions.

Submilestones:

15.1 Production Cutover Matrix

Required behavior:

Exit gate:


make apps-cutover-matrix-check

15.2 Legacy Runner Removal From Normal Path

Required behavior:

Exit gate:


make apps-legacy-runner-check

15.3 Release Candidate

Required behavior:

Exit gate:


make apps-release-candidate-check

15.4 Production Acceptance

Required behavior:

deploy acceptance gates;

rollback, and known external dependencies.

Exit gate:


make apps-production-acceptance-check

Parent exit gate:


make apps-production-replacement-check

Recommended Implementation Order

1. Milestone 0: make the current app behavior measurable.

2. Milestone 1: create the app workspace so source has a stable home.

3. Milestone 3: add safe gates before any large compile or docs work.

4. Milestone 2: establish source rewrite conventions and lint rules.

5. Milestones 4 through 8: implement the runtime boundary needed by apps.

6. Milestones 9 and 10: rewrite and ship Index.

7. Milestones 11 through 14: rewrite and ship Kukulkan.

8. Milestone 15: cut over and remove legacy runtime assumptions.

Index should go first because it is smaller and exercises file, CLI, HTTP

client, browser snapshot, and local persistence without requiring the full

Kukulkan service stack. Kukulkan should follow once HTTP server, WebSocket,

database, subprocess, and deployment boundaries are proven.

Blockers To Resolve Before Full Rewrite

constructors where the applications need real effects.

deployment adapters need real runtime implementations.

break is fixed or replaced by a safe targeted docs gate.

resource budgets before they become standing gates.

Completion Signal

This roadmap is complete when:

by executable gates;

than risky full sweeps.