Inspiration
A green pipeline is useful, but it does not by itself establish that every expected release file exists or that its bytes match a recorded digest. AI-generated explanations can also sound convincing without verifiable evidence. Showcase explores a narrow post-code workflow: collect deterministic evidence first, let an agent explain it, and keep release authority with a person.
What it does
Showcase is a dependency-free Node.js command-line validator and GitLab workflow for release-artifact preflight. It reads a local manifest and files, checks required-file composition and SHA-256 digests, and emits structured JSON. It rejects missing files, non-200 recorded download status, digest mismatch, invalid manifests, unsafe paths and unsupported file types. It checks size limits and rejects symbolic and hard links. Log text is data; a log instruction cannot override validation or authorize publication.
The workflow combines a deterministic validator, a manually started GitLab CI pipeline, and supervised evidence review using the existing GitLab-managed Developer flow. In the verified Duo session, the agent ran the tests and preflight command, inspected outputs, and explained the evidence without changing code. A successful preflight still reports automaticPublicationAllowed=false. A human decides whether any later release action is appropriate.
How it was built
The implementation uses Node.js 24 built-ins, including filesystem and SHA-256 operations, with no npm dependency installation. A local adapter prepares isolated synthetic scenarios and produces review-output/preflight.json. GitLab CI runs validator and integration tests, followed by synthetic-file verification. GitLab Duo Agent Platform supplies the managed Developer flow for executing and explaining the bounded verification task. The public MIT-licensed repository includes DCO contribution guidance, reproducible commands, test evidence and actual pipeline/session links.
Challenges
Recorded status is an assertion, not authenticated proof of a network download. The design separates what the validator can prove from external GitLab execution evidence, and separates a passed check from release authorization.
The first actual Duo session failed at startup because a slim Node container did not include Git. The runtime configuration was changed to the official node:24-bookworm image, and the subsequent managed Developer session finished successfully. The failed attempt and fix are documented alongside the successful run.
Verified results
The original GitLab CI run passed both jobs. Its test job ran 45 tests with 45 passes, zero failures and zero skips. A regression pipeline passed both jobs after the runtime fix. The final pipeline on commit 0f774c42 also passed both jobs with 45 tests passed and no skips; its artifacts are retained for one month.
The completed GitLab-managed Developer session independently ran the 45 tests and preflight command. It reported a successful preflight with automaticPublicationAllowed=false and explained normal, missing-file, hash-mismatch and hostile-log outcomes. No branch, commit, merge request, deployment or publication was performed by that session.
What was learned
Deterministic checks and agent explanations serve different roles. Exact checks provide reproducible evidence; the managed agent makes it easier to inspect. Keeping those roles separate makes the workflow's claims and limits explicit, including why a successful result must not automatically grant publication authority.
What's next
Potential future work includes authenticated manifest provenance, a real artifact-download adapter and broader integration tests. The repository contains custom-flow configuration drafts, but they are unactivated and have not been validated in the platform runtime. The demonstrated workflow uses the existing managed Developer flow.
Limits and judging access
The demonstration uses synthetic local files and recorded HTTP-status assertions. It does not make real HTTP downloads, authenticate the manifest, prove production safety or deploy a hosted application. The workspace must be trusted and stable; concurrent hostile filesystem mutation is outside its isolation guarantee. Artifact contents are not executed or semantically validated.
The adapter declares mode=synthetic_local_adapter, actualHttpDownloadPerformed=false, ciExecutionAuthenticated=false and duoExecutionAuthenticated=false. realCiVerified remains false inside the validator because it does not itself prove its execution environment. The actual CI and Duo URLs above provide separate external execution evidence.
From a fresh repository clone with Node.js 24, run:
node --test offline-validator/tests/validator.test.mjs integration/integration.test.mjs
node integration/prepare-input.mjs normal
node integration/run-preflight.mjs
No npm install, credentials or network requests are needed for these local commands. Use a fresh directory for each fixture because the preparer refuses to overwrite review-input. Other scenarios are missing, status404, mismatch, composition and hostile_log. See the README for complete instructions and limits.
Built With
- gitlab
- gitlab-duo
- javascript
- node.js