Skip to content

Feat: Docker runtime hardening and AI model sampling profiles - #143

Merged
devarshishimpi merged 11 commits into
devfrom
bug/docker-deployment-001
Oct 30, 2026
Merged

devarshishimpi merged 11 commits into
devfrom
bug/docker-deployment-001

Conversation

@devarshishimpi

Copy link
Copy Markdown
Owner

Description

This PR prepares and cuts the v0.10.0 release for Codra, introducing major improvements across container deployment runtimes, model profiling and sampling calibration, review verification accuracy, and project documentation.

  1. Docker & Node.js Runtime Overhaul (v0.10.0):

    • Upgraded apps/node/Dockerfile to a multi-stage, cross-platform build (node:24-trixie-slim builder and gcr.io/distroless/nodejs24-debian13:nonroot runner).
    • Pruned runtime dependencies strictly to the Node server production graph, reducing attack surface and image size.
    • Added .dockerignore and hardened container healthchecks in both Dockerfile and docker-compose.yml.
    • Enhanced Node platform adapters and GitHub App authentication handling.
  2. AI Model Profiles & Calibration:

    • Introduced a centralized model-profiles.json catalog and registry service (@codraoss/models).
    • Added provider-specific sampling profiles (temperature, top_p, token limits) across Google, OpenAI, and Vertex adapters.
    • Added model fallback and budget-breaker protection suites.
    • Implemented automated retry handling for Google AI providers (google-retry.ts).
  3. Review Pipeline Precision & Finding Verification:

    • Overhauled finding verification and grounding (claim-gate.ts, grounding.ts, json-extract.ts).
    • Added model-style prompt tuning, language-specific gates, and comment-syntax parsing.
    • Improved JSON output extraction and malformed response recovery in @codraoss/core.
  4. Architecture Refactoring & Modularity:

    • Decomposed large modules in @codraoss/core into dedicated single-responsibility modules (phase-file-task.ts, resolve-job.ts, comment-syntax.ts).
    • Split API dependency orchestration (model-runner-deps.ts separated from create-deps.ts).
    • Refactored dashboard views (file-row.tsx, repos-reducer.ts, settings-support.ts).
  5. Documentation Migration to MDX:

    • Migrated complete documentation to MDX format covering Cloudflare, Docker, Node.js, Neon, Railway, local development, and operations.
    • Added docs SEO metadata generator (docs/docs-seo.ts) and deployment workflow (trigger-docs-deploy.yml).
  6. Cloudflare & Package Updates:

    • Synchronized Cloudflare workerd types (worker-env.d.ts).
    • Bumped all monorepo packages to version 0.10.0.

Closes #21 #124 #109

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Documentation update
  • Chore (refactoring, dependency updates, etc.)

How Has This Been Tested?

  • Unit Tests
  • Integration Tests
  • Manual Dashboard Verification
  • Docker Build Verification

Checklist:

  • I have starred Codra on GitHub
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • My changes generate no new warnings
  • New and existing unit tests pass locally with my changes
  • I have signed the CLA

codra-app-personal[bot]

This comment was marked as resolved.

@codra-app-personal codra-app-personal Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codra Review

Here are some automated review suggestions for this pull request.

Note

1 file could not be reviewed, so this pass is incomplete.

Reviewed commit: c7bcf3779c

ℹ️ About Codra in GitHub

Your team has set up Codra to review pull requests in this repo. Reviews are triggered when you:

  • Open a pull request for review
  • Mark a draft as ready

If Codra has suggestions, it will comment; otherwise it will react with 👍.

Comment thread packages/core/src/model-output/json.ts Resolved
@devarshishimpi
devarshishimpi merged commit 175434f into dev Oct 30, 2026
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant