queen-3528: bee work for #3528 - #3647
Merged
Merged
Conversation
added 2 commits
September 9, 2026 15:56
- init: returns empty queue with size=0, empty data, and stored allocator - enqueue: grows data when needed, implements sift-up operation for min-heap - dequeue: removes minimum element, implements sift-down operation for heap maintenance - peek: returns minimum element at root without mutation - is_empty: checks if size == 0 (separate from data.len) - deinit: frees allocated data and resets size to 0 Added 6 new test blocks covering: - Fresh queue initialization properties - Peek returns minimum at root - Parent index calculations - Children of root index relationships - Negative priority sorting behavior - Heap maintenance after multiple operations All functions implemented with binary min-heap semantics, proper error handling, and memory management according to the tri specification.
The enqueue function was missing the 'value: i64' parameter in its signature, which caused a compilation error. This fixes the binary min-heap priority queue implementation to match the expected API. Closes #3528
This was referenced Sep 15, 2026
Contributor
PR DashboardGenerated at: 2026-09-15 14:41:31 UTC
Summary
Seal Status
|
Contributor
|
📓 NotebookLM Notebook linked to this PR
This notebook contains session context, decisions, and artifacts for this work. |
This was referenced Sep 15, 2026
gHashTag
force-pushed
the
queen-3528
branch
from
September 15, 2026 15:02
5939d53 to
9dd6f90
Compare
This was referenced Sep 15, 2026
This was referenced Sep 15, 2026
Contributor
PR DashboardGenerated at: 2026-09-15 15:50:02 UTC
Summary
Seal Status
|
Contributor
|
📓 NotebookLM Notebook linked to this PR
This notebook contains session context, decisions, and artifacts for this work. |
This was referenced Sep 15, 2026
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 #3528
Published from the swarm's container by
queen_publish.py. The container holds no push credential by design; this branch was exported as a git bundle and pushed from outside it.Base:
origin/masterFiles: specs/tri/collections/priority_queue.t27
Not merged automatically. A spec match does not close an issue on its own - generation, tests and review are required.