Repository navigation
[0.1.1] - 2026-11-28
A security-hardening release. It resolves the failing Security Audit workflow, closes several oracle/API-server authorization and injection gaps, fixes an on-chain job-ID collision that could resolve the wrong escrow, and adds local on-chain verification evidence.
Security
- Pinned patched versions for all high/critical transitive npm vulnerabilities (
proxy-addr,body-parser,fast-uri,toml,brace-expansion,markdown-it,source-map-js,js-yaml,vite,zod).pnpm audit --audit-level=highnow reports zero findings. - Oracle:
ORACLE_API_KEYis required whenNODE_ENV=production—/submitmoves on-chain funds and previously ran unauthenticated whenever the variable was unset. - Oracle: timing-safe API key comparison;
/jobs/:jobIdreads now require the API key as well. - Oracle:
/submitrejects escrows that designate a different oracle key instead of failing late on-chain. - Oracle: prompt-injection defense strips structural delimiter tags (
job_metadata,job_description,acceptance_criteria,deliverable) from untrusted job fields before they reach the model prompts. - API server:
helmet, 100kb request body limits, a 300 requests/minute rate limit, and a generic 500 error handler replace the previous unauthenticated, unhardened surface. - API server: optional write authentication via
API_KEY(X-API-KeyorAuthorization: Bearer) protects job creation, updates, and deliverable submission; reads remain public for the dashboard. A startup warning is logged while the variable is unset. - API server: Solana public keys are validated as canonical 32-byte base58 on job creation; pagination is capped at 500; duplicate
jobIdreturns 409; oracle 4xx responses are forwarded instead of masked as 500; oracle-unreachable degrades to a 503 stub;ORACLE_API_KEYis forwarded to the oracle. - Dependabot now ignores semver-major updates for
@solana/web3.jsandanchor-lang, which previously produced CI-failing grouped upgrades.
Fixed
- Oracle store collision: on-chain job IDs are unique per client, not globally. The store now maps each job ID to a list of escrows,
/submitand/jobs/:jobIdreturn 409 on ambiguity, and resolution removes only the escrow that settled — a submission can no longer resolve or evict the wrong escrow. - Oracle resilience: a single LLM provider failure degrades to ESCALATE (human arbitration) instead of a 500 that left jobs unresolvable; only a total outage of both providers errors.
- SDK:
OracleClientaccepts an optional API key and sendsX-API-Key; the job ID length check now measures UTF-8 bytes to match the program's 32-byte limit. - CI: the Semantic PR Title
check-commitjob no longer fails on GitHub merge commits pushed tomain(merge-commit detection now reads commit headers directly, which is safe under shallow checkout).
Added
docs/VERIFICATION.mdrecords the complete local verification run for this release: typecheck, workspace build, 80 Oracle unit tests,pnpm audit,cargo auditwith CI flags,anchor buildartifacts, and 10/10 on-chain Anchor integration tests againstsolana-test-validator.