Skip to main content
The Palyra CI/CD infrastructure is designed to enforce strict architectural boundaries, security postures, and functional parity across multiple operating systems. The pipeline integrates Rust-based static analysis, multi-platform regression suites, and deterministic core testing to ensure the stability of the daemon, CLI, and desktop applications.

CI Workflow and Multi-Platform Builds

The primary CI workflow executes on every pull request and push to the main branch, targeting ubuntu-latest, macos-latest, and windows-latest .github/workflows/ci.yml#4-23. It orchestrates the build and testing of the entire workspace, including the desktop UI and web dashboard components.

Build and Test Matrix

The build-and-test job ensures that all workspace crates compile and pass unit tests under the locked Cargo.lock dependency tree .github/workflows/ci.yml#17-50.
StageActionCode Entity / Script
ToolchainInstall Rust 1.91.0setup-rust-toolchain .github/workflows/ci.yml#28-32
JS EnvironmentSetup Node.js & Vite+setup-vp-safe .github/workflows/ci.yml#34-40
UI PrepBuild Desktop UIscripts/test/ensure-desktop-ui.ps1 .github/workflows/ci.yml#41-44
Rust BuildWorkspace Buildcargo build --workspace --locked .github/workflows/ci.yml#45-47
Rust TestWorkspace Testcargo test --workspace --locked .github/workflows/ci.yml#48-50

Workflow Regression Matrix

Beyond unit tests, the workflow-regression job executes complex integration scenarios that verify the interoperability of palyrad, palyra-cli, and palyra-browserd .github/workflows/ci.yml#123-137. Key Regression Tests: Sources: .github/workflows/ci.yml#1-137, scripts/test/run-workflow-regression.sh#1-51, scripts/test/run-workflow-regression.ps1#1-20

Quality Gates and Linting

The quality job enforces coding standards and architectural constraints before code can be merged .github/workflows/ci.yml#172-217.

Static Analysis and Linting

Module Budget and Boundary Enforcement

The pipeline utilizes scripts/dev/report-module-budgets.sh --strict to enforce size and dependency constraints on internal modules and connector boundaries .github/workflows/ci.yml#193-194. This prevents architectural drift and ensures that connectors remain decoupled from the core daemon logic.

Repository Hygiene

Several scripts guard against accidental inclusion of sensitive or invalid files: Sources: .github/workflows/ci.yml#172-217, .github/actions/setup-vp-safe/action.yml#1-42

Deterministic Core Testing

The deterministic-core suite runs specialized tests that rely on fixed inputs and mocked providers to ensure repeatable results across the gateway and admin surfaces .github/workflows/ci.yml#89-122.

Data Flow: Deterministic Verification

The following diagram illustrates how the run-deterministic-core.ps1 script bridges the CLI and Daemon surfaces to verify deterministic outcomes.

Deterministic Soak

For stability under load, the run-deterministic-soak.sh script executes cycles of reconnection and recovery scripts/test/run-deterministic-soak.sh#1-41: Sources: scripts/test/run-deterministic-core.ps1#1-36, scripts/test/run-deterministic-soak.sh#1-41, .github/workflows/ci.yml#89-122

CLI Parity Matrix

The cli-parity job ensures that the palyra CLI maintains a consistent command surface and that all documented commands are functional .github/workflows/ci.yml#218-241.
  1. Report Generation: The render_cli_parity_report example processes crates/palyra-cli/tests/cli_parity_matrix.toml to generate a markdown acceptance matrix .github/workflows/ci.yml#230-231.
  2. Snapshot Validation: The help_snapshots test ensures that CLI help text matches expected output, preventing undocumented flag changes .github/workflows/ci.yml#233-234.
  3. Acceptance Matrix: The cli_parity test validates that the actual implementation aligns with the definitions in the parity matrix TOML .github/workflows/ci.yml#233-234.
Sources: .github/workflows/ci.yml#218-241

Security Gates and Supply Chain

Security is enforced through a dedicated security-gates workflow that scans for vulnerabilities in both Rust and JavaScript dependencies .github/workflows/security.yml#1-156.

Supply Chain Verification

Static Security Analysis

Sources: .github/workflows/security.yml#1-156, .github/workflows/codeql.yml#1-48, .github/workflows/dependency-review.yml#1-35