Skip to content

Chore/v0.1 debt closure#9

Open
hungthinh1104 wants to merge 5 commits into
mainfrom
chore/v0.1-debt-closure
Open

Chore/v0.1 debt closure#9
hungthinh1104 wants to merge 5 commits into
mainfrom
chore/v0.1-debt-closure

Conversation

@hungthinh1104

Copy link
Copy Markdown
Owner

PR Scope

What does this PR do?

  • Bugfix
  • Feature
  • Docs

Checklist

  • Tests Run: I have successfully run pnpm typecheck and pnpm demo:golden-path.
  • Evidence Rule Impact: I have not bypassed the evidence hierarchy (all impacts are backed by code excerpts).
  • Docs Updated: I have updated documentation or tests if behavior changed.
  • No Secrets: I have double-checked that no real API keys, secrets, or personal tokens are included.

…orcement

- enforce backend boundary: remove api/src cross-imports from worker modules using @ba-helper/api alias
- refactor(worker): standardize typed job error handling with job-error-classifier
- refactor(worker): isolate AiModule and PrismaModule to worker-local scopes
- refactor(review): make review coverage gate ids deterministic
- refactor(embedding): inject embedding runtime config via DI token
- docs(document): annotate STALE as projection-only state and add invariant test
- refactor(web): remove local capability guesses in review-decision-form
- ci(domain-packs): add verify:domain-packs and boundary grep check to CI
- docs(project): align v0.1 state with implemented invariants in AGENTS.md
…closure

- Created `@ba-helper/backend-runtime` physical package to host shared infrastructure, replacing illegal cross-package imports between apps/api and apps/worker.
- Removed path alias `@ba-helper/api/*` masking from tsconfig.base.json.
- Re-wired API and Worker module resolution to safely consume runtime providers.
- Fixed frontend Role permission casting in `review-decision-form.tsx`.
- Cleaned up Docker project name to drop the test suffix.
- Refactored Dockerfiles to correctly compile backend-runtime as part of CI builds.
- Cleaned up temporary debug logs and validation scripts.

This commit achieves a clean architecture state and exit-0 builds across the workspace, marking the completion of the v0.1 invariant hardening phase.
…closure

- Created `@ba-helper/backend-runtime` physical package to host shared infrastructure, replacing illegal cross-package imports between apps/api and apps/worker.
- Removed path alias `@ba-helper/api/*` masking from tsconfig.base.json.
- Re-wired API and Worker module resolution to safely consume runtime providers.
- Fixed frontend Role permission casting in `review-decision-form.tsx`.
- Cleaned up Docker project name to drop the test suffix.
- Refactored Dockerfiles to correctly compile backend-runtime as part of CI builds.
- Cleaned up temporary debug logs and validation scripts.

This commit achieves a clean architecture state and exit-0 builds across the workspace, marking the completion of the v0.1 invariant hardening phase.
- Replace barrel imports (`../../index`) with direct relative imports across `backend-runtime` to fix Jest test suite crashes (A circular dependency has been detected inside PrismaModule).
- Enforce string conversion for `errorCode` in `RunImpactAnalysisUseCase` to prevent Zod validation failures on the frontend.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant