Skip to content

Implement Atomic Pointer Activation + Success Lifecycle#34

Merged
BLMgithub merged 2 commits into
mainfrom
feature/publish-activate
Mar 1, 2026
Merged

Implement Atomic Pointer Activation + Success Lifecycle#34
BLMgithub merged 2 commits into
mainfrom
feature/publish-activate

Conversation

@BLMgithub
Copy link
Copy Markdown
Owner

Implement atomic publish activation and success state transition.

Scope

  • Update metadata.json → status = SUCCESS, completed_at set, published = true
  • Write temporary pointer file (_latest.tmp)
  • Payload:
    • run_id
    • version = v{run_id}
    • published_at (UTC)
  • Atomically swap using os.replace_latest.json

Execution order requirement

  1. Integrity gate passes
  2. Version copy completes
  3. metadata.json updated to SUCCESS
  4. Atomic pointer swap

Acceptance Criteria

  • Pointer always references fully copied version
  • No partial pointer writes possible
  • Pointer never updated if metadata update fails
  • Dashboard reads only _latest.json

@BLMgithub BLMgithub merged commit 0df3c92 into main Mar 1, 2026
1 check passed
@github-project-automation github-project-automation Bot moved this from In Progress to Completed in Seller Fulfillment Intervention Monitor Mar 1, 2026
@BLMgithub BLMgithub deleted the feature/publish-activate branch March 1, 2026 09:04
@BLMgithub BLMgithub linked an issue Mar 1, 2026 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

Development

Successfully merging this pull request may close these issues.

Implement Atomic Pointer Activation + Success Lifecycle

1 participant