[P0] F01: Complete the reproducible Rust/React baseline and CI checks #6

Closed
opened 2026-10-21 20:29:22 +02:00 by amiryahaya · 1 comment
Owner

Backlog ID: F01 | Priority: P0 | Phase: M1 — Secure build and persistence foundation

Outcome and scope

Review and complete existing untracked scaffolding rather than regenerating it. Pin supported toolchains and dependency locks, provide synthetic-only local PostgreSQL/Qdrant orchestration, and add CI.

Dependencies and gates

Engineering prerequisites: None — ready to start.

Synthetic-data development may proceed. Production use remains subject to the decision gates in the SRS.

Starting points

Cargo.toml; crates/api/; crates/domain/; crates/authorization/; web/; compose.yaml; README.md; .forgejo/workflows/

These are current files or proposed responsibility boundaries; finalize a focused implementation plan before coding. Existing local scaffolding is uncommitted and is not evidence of completion.

Acceptance criteria

  • A clean checkout has documented build/start/format/lint/test commands and pinned Rust/Node tooling; frontend lockfile is included.
  • CI runs cargo fmt --all -- --check, cargo clippy --workspace --all-targets -- -D warnings, cargo test --workspace and npm ci plus npm run build in web.
  • Local dependencies bind to loopback with explicitly development-only credentials; environment secrets and generated build artifacts are ignored.
  • Existing user files are reviewed and incorporated intentionally; this issue is not closed merely because scaffolding exists locally.

Verification

Run the documented clean-checkout workflow and CI on the committed baseline. Verify no operational data or credentials are tracked.

Behavior changes follow Red → Green → Refactor. Run affected Rust shared contract/unit tests and real PostgreSQL/Qdrant/runtime integration tests where applicable; frontend changes run typecheck/build and the relevant browser tests. Record exact commands/results in the implementation PR. Documentation/decision tasks use recorded review evidence.

Requirements and design

NFR-MAINT-002–006; implementation plan increment A; architecture §§3, 5.2

Sources: SRS, system design. Local planning context: docs/implementation-plan.md and docs/development-backlog.md (not published by this task).

Security impact: Use synthetic fixtures until approved for operational data. Preserve current authorization, markings, provenance and default-deny behavior; exclude protected payloads/secrets from operational telemetry. No classified-deployment or PQC-compliance claim is implied by closing this issue.

Parent roadmap: #1

Implementation status

Implemented in draft PR #37 on feat/6-repository-baseline-ci (head 76bee40). All four acceptance criteria are verified. Both push CI and PR CI passed Rust and web jobs. Local checks, a clean committed checkout, and a clean Linux source/container build passed; 16 Rust tests are green. Independent review found no defects. This issue remains open pending review and merge.

**Backlog ID:** F01 | **Priority:** P0 | **Phase:** M1 — Secure build and persistence foundation ## Outcome and scope Review and complete existing untracked scaffolding rather than regenerating it. Pin supported toolchains and dependency locks, provide synthetic-only local PostgreSQL/Qdrant orchestration, and add CI. ## Dependencies and gates **Engineering prerequisites:** None — ready to start. Synthetic-data development may proceed. Production use remains subject to the decision gates in the SRS. ## Starting points Cargo.toml; crates/api/; crates/domain/; crates/authorization/; web/; compose.yaml; README.md; .forgejo/workflows/ These are current files or proposed responsibility boundaries; finalize a focused implementation plan before coding. Existing local scaffolding is uncommitted and is not evidence of completion. ## Acceptance criteria - [x] A clean checkout has documented build/start/format/lint/test commands and pinned Rust/Node tooling; frontend lockfile is included. - [x] CI runs cargo fmt --all -- --check, cargo clippy --workspace --all-targets -- -D warnings, cargo test --workspace and npm ci plus npm run build in web. - [x] Local dependencies bind to loopback with explicitly development-only credentials; environment secrets and generated build artifacts are ignored. - [x] Existing user files are reviewed and incorporated intentionally; this issue is not closed merely because scaffolding exists locally. ## Verification Run the documented clean-checkout workflow and CI on the committed baseline. Verify no operational data or credentials are tracked. Behavior changes follow Red → Green → Refactor. Run affected Rust shared contract/unit tests and real PostgreSQL/Qdrant/runtime integration tests where applicable; frontend changes run typecheck/build and the relevant browser tests. Record exact commands/results in the implementation PR. Documentation/decision tasks use recorded review evidence. ## Requirements and design NFR-MAINT-002–006; implementation plan increment A; architecture §§3, 5.2 Sources: [SRS](https://forgejo.primatekun.tech/primatekuntech/rag-rust/src/branch/main/docs/SRS.md), [system design](https://forgejo.primatekun.tech/primatekuntech/rag-rust/src/branch/main/docs/architecture.md). Local planning context: `docs/implementation-plan.md` and `docs/development-backlog.md` (not published by this task). **Security impact:** Use synthetic fixtures until approved for operational data. Preserve current authorization, markings, provenance and default-deny behavior; exclude protected payloads/secrets from operational telemetry. No classified-deployment or PQC-compliance claim is implied by closing this issue. **Parent roadmap:** #1 ## Implementation status Implemented in draft PR #37 on `feat/6-repository-baseline-ci` (head `76bee40`). All four acceptance criteria are verified. Both [push CI](https://forgejo.primatekun.tech/primatekuntech/rag-rust/actions/runs/1) and [PR CI](https://forgejo.primatekun.tech/primatekuntech/rag-rust/actions/runs/2) passed Rust and web jobs. Local checks, a clean committed checkout, and a clean Linux source/container build passed; 16 Rust tests are green. Independent review found no defects. This issue remains open pending review and merge.
Author
Owner

Started implementation on feat/6-repository-baseline-ci. Existing baseline passes Rust formatting, Clippy, 16 tests and the frontend build. Scope: preserve/review scaffolding, pin toolchains and locks, add Forgejo CI, document clean-checkout checks, verify in a clean checkout/container. No repository or organization runners are registered; instance runner visibility is unavailable to this token, so hosted execution will be reported separately from local validation.

Started implementation on `feat/6-repository-baseline-ci`. Existing baseline passes Rust formatting, Clippy, 16 tests and the frontend build. Scope: preserve/review scaffolding, pin toolchains and locks, add Forgejo CI, document clean-checkout checks, verify in a clean checkout/container. No repository or organization runners are registered; instance runner visibility is unavailable to this token, so hosted execution will be reported separately from local validation.
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
primatekuntech/rag-rust#6
No description provided.