Repository navigation
feat(workers): typed job manifests (closes #2261) - #2322
Merged
github-actions[bot] merged 1 commit intoNov 24, 2026
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #2261
Summary
workers/src/manifest.ts: a zero-dependency, pure-TypeScript typed job-manifest system. One declarative manifest is the single source of truth for a job's name, schedule, input/output schemas, handler reference, retries and timeout.str,num,bool,obj,arr,date) with chainableoptional()/describe(), full nested-object and array validation, ISO-date normalization, and stable JSON-style issue paths ($.items[1].id).ManifestErrorsurface with stable codes (INVALID_CONFIG,INVALID_MANIFEST,DUPLICATE_JOB,INVALID_SCHEMA,VALIDATION_FAILED,UNKNOWN_TYPE,UNKNOWN_JOB,INVALID_INPUT).defineJob,validateManifest,validateInput/validateOutput; frozen default config and immutable schema nodes.createJobRegistry/createDefaultJobRegistry: duplicate-name rejection, frozen registrations,validateAllreports, and injected metrics/logger hooks (recordRegister,recordValidation,recordRejected,info,warn).billing-shiftandaudit-flush. Job modules are never imported, so the module stays side-effect free and dependency free.workers/src/__tests__/manifest.test.tscovering happy paths and realistic failure modes: 33 tests, 148 assertions.Verification evidence
.tssource: 16/16 checks passed, 0 fail.expectassertions).python tools/check_secrets.py:[OK]/SECRETS_EXIT=0..md/.jsonfiles; only the two source files above changed.346fc82pushed toIVANLI2412:fix/issue-2261-manifests(no force push).Bounty payouts (Stellar/Drips Wave, issue #2261)
Base Mainnet (USDC/ETH)
0xC5dD2Ea54FF138bb3f71D3466092eA31eF115868Solana (USDC/SOL)
DN3pfYEvdkoTBP4oaEVvemsr98fZPhDSAbfVfmewRGQ5PayPal
ivanzenteno3@gmail.com