feat(dream): add reviewed Memory-to-Experience-to-Skill workflows - #1510
Open
Teingi wants to merge 12 commits into
Open
feat(dream): add reviewed Memory-to-Experience-to-Skill workflows#1510Teingi wants to merge 12 commits into
Teingi wants to merge 12 commits into
Conversation
Teingi
marked this pull request as ready for review
September 9, 2026 03:09
Teingi
commented
Sep 9, 2026
Member
Author
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.

Which issue or RFC does this PR close?
Closes #1509.
RFC: English · 中文.
Rationale for this change
Related task evidence can be repeated across Memory entries and Experience revisions without a reliable way to revisit the exact inputs, deduplicate their underlying observations, and propose a reviewed improvement. Artifact Dreaming adds an asynchronous workflow for turning selected Memory evidence into Experience and approved Experience into a managed Skill.
What changes are included in this PR?
refine_experienceandderive_skillwith durable runs, immutable input manifests, idempotency, leases, bounded generation, recovery fencing, and atomic Candidate/run commits.Are there any user-facing changes?
POSTandGET /v1/scopes/{scope_id}/dream, plusGET /v1/scopes/{scope_id}/dream/{run_id}. New work returns202; replaying a terminal idempotent request returns200.pc_dream_runsand nullablememory_citationscolumns onpc_artifactsandpc_artifact_candidate_versions, with additive initialization/migration for SQLite and OceanBase. Existing data remains readable. Explicit MySQL transactions preserve atomicity even with session autocommit enabled.allprocess role; splitapi/backgroundroles do not accept new Dream work. Dream and Topic Memory currently enforce separate execution concurrency limits.How was this change tested?
make check: passed, including dependency lock consistency, pre-commit hooks, and type checks.make contract-test: 46 passed; generated Python and JavaScript contracts match OpenAPI.make docs-test: passed; 770 static pages and their internal links verified.git diff --check: passed.AI usage statement
OpenAI Codex assisted with research, RFC writing, implementation, review fixes, merge integration, test execution, and PR preparation. Validation results and limitations are recorded above; no credentials or local environment files are included.