Skip to content

refactor(project): Replace stepBased opt-in with a task descriptor factory API - #1670

Open
RandomByte wants to merge 2 commits into
mainfrom
refactor/specVersion-5.0-task-api
Open

RandomByte wants to merge 2 commits into
mainfrom
refactor/specVersion-5.0-task-api

Conversation

@RandomByte

@RandomByte RandomByte commented Oct 20, 2026 •

Copy link
Copy Markdown
Member

JIRA: TODO

@RandomByte
RandomByte force-pushed the refactor/specVersion-5.0-task-api branch from e1a469c to df11364 Compare October 21, 2026 13:30
@RandomByte
RandomByte marked this pull request as ready for review October 21, 2026 14:32
@RandomByte
RandomByte force-pushed the refactor/specVersion-5.0-task-api branch from bed4942 to b7a5386 Compare October 21, 2026 14:45
matz3
matz3 previously approved these changes Oct 21, 2026
matz3
matz3 previously approved these changes Oct 23, 2026
matz3 and others added 2 commits October 23, 2026 16:19
From Specification Version 5.0, a task module's default export is a factory
that returns one descriptor. The descriptor declares either a task body or a
step list together with dependency and build-signature callbacks.

Apply the same contract to built-in tasks and keep legacy custom tasks on their
existing body and named-export callbacks. Resolve each descriptor once per
build so signature calculation and execution use the same definition.

Update the public and incremental-build documentation for the final contract.
Replace the step-only standalone runner with runTask. The runner accepts a task
factory and dispatches both descriptor forms through one public API.

Validate descriptors and complete step lists before execution. Preserve legacy
dependency callbacks, scope cached custom-task descriptors by project and task
name, and share the ordered write-buffer contract with the cached runner.
@RandomByte
RandomByte force-pushed the refactor/specVersion-5.0-task-api branch from 4887aaf to 9cb55c9 Compare October 23, 2026 14:21
@RandomByte RandomByte changed the title feat(project): Replace stepBased opt-in with a task descriptor factory API refactor(project): Replace stepBased opt-in with a task descriptor factory API Oct 23, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants