Skip to content

Mappers Protocol v0.1.1

Latest

Choose a tag to compare

@mrphatom mrphatom released this 28 Nov 14:57
· 11 commits to main since this release
ce327ab

[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=high now reports zero findings.
  • Oracle: ORACLE_API_KEY is required when NODE_ENV=production — /submit moves on-chain funds and previously ran unauthenticated whenever the variable was unset.
  • Oracle: timing-safe API key comparison; /jobs/:jobId reads now require the API key as well.
  • Oracle: /submit rejects 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-Key or Authorization: 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 jobId returns 409; oracle 4xx responses are forwarded instead of masked as 500; oracle-unreachable degrades to a 503 stub; ORACLE_API_KEY is forwarded to the oracle.
  • Dependabot now ignores semver-major updates for @solana/web3.js and anchor-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, /submit and /jobs/:jobId return 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: OracleClient accepts an optional API key and sends X-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-commit job no longer fails on GitHub merge commits pushed to main (merge-commit detection now reads commit headers directly, which is safe under shallow checkout).

Added

  • docs/VERIFICATION.md records the complete local verification run for this release: typecheck, workspace build, 80 Oracle unit tests, pnpm audit, cargo audit with CI flags, anchor build artifacts, and 10/10 on-chain Anchor integration tests against solana-test-validator.