Skip to content

refactor(artifacts): make child outputs exact and retire stale lifecycle state - #4808

Open
Astro-Han wants to merge 25 commits into
apache:mainfrom
Astro-Han:refactor/4788-disposable-artifacts
Open

refactor(artifacts): make child outputs exact and retire stale lifecycle state#4808
Astro-Han wants to merge 25 commits into
apache:mainfrom
Astro-Han:refactor/4788-disposable-artifacts

Conversation

@Astro-Han

Copy link
Copy Markdown
Contributor

Summary

  • return only child-produced Artifact sources from child result artifactIds
  • replace tombstones and status transitions with physical deletion and Session-scoped authority
  • retire unused sources, global reads/deletes, change notifications, readiness shims, and duplicate metadata abstractions
  • simplify SQLite Artifact metadata and discard unsupported or malformed Artifact rows without blocking Session startup
  • remove Artifact-specific purge and publication recovery journals; uncommitted Artifact residue is disposable and cannot block the Runtime Host

Compatibility boundary

Artifact data from older Nightly builds is best-effort and may be discarded during upgrade. Session metadata, messages, RuntimeEvent history, and continued conversation remain outside this disposal boundary. Sources required for continuation—session effects, archived tool results, projected images, uploads, deep research output, and subagent writeback—remain durable.

Validation

  • npm run build
  • npm run typecheck
  • npm run format:check
  • npm run lint
  • ASF license header audit
  • complete @maka/storage suite: 1111 tests, 1103 passed, 8 platform skips, 0 failures
  • Runtime Host reopen-image, archived-tool-result, Session-effect idempotency, and subagent-patch continuation tests
  • source-by-source ablation tests; every retained source has a failing removal counterexample

Closes #4788.

@github-actions github-actions Bot added the effort/XXL Over 2500 readable lines label Sep 4, 2026
@Astro-Han
Astro-Han force-pushed the refactor/4788-disposable-artifacts branch from 4e124ee to 9160177 Compare September 5, 2026 02:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

effort/XXL Over 2500 readable lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

A child result's artifactIds is every Artifact on the turn, not the child's output

1 participant