Skip to content

queen-3528: bee work for #3528 - #3647

Merged
gHashTag merged 2 commits into
masterfrom
queen-3528
Sep 16, 2026
Merged

gHashTag merged 2 commits into
masterfrom
queen-3528

Conversation

@gHashTag

Copy link
Copy Markdown
Owner

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/master
Files: 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.

Trinity Bee 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
@github-actions

Copy link
Copy Markdown
Contributor

PR Dashboard

Generated at: 2026-09-15 14:41:31 UTC

Summary

Status Count
Total Open PRs 50
PRs with Failing Checks 25
PRs with All Checks Green 25
READY 1
FAILING 25
PENDING 0
NO CHECKS YET 0

These columns do not partition: 1 + 25 + 0 + 0 = 26, and there are 50 open PRs. A PR is being counted twice or not at all.

Seal Status

  • ⚠️ STALE -- sha256(compiler.rs)=7cab95c431bc != manifest seal=87e5cbd3ad94.
    The committed NMSE numbers were certified against an older compiler.rs.
    Run scripts/reseal-check.sh locally for the two-step reseal command (advisory; not a merge gate).

@github-actions

Copy link
Copy Markdown
Contributor

📓 NotebookLM Notebook linked to this PR

This notebook contains session context, decisions, and artifacts for this work.

@github-actions

Copy link
Copy Markdown
Contributor

PR Dashboard

Generated at: 2026-09-15 15:50:02 UTC

Summary

Status Count
Total Open PRs 50
PRs with Failing Checks 21
PRs with All Checks Green 29
READY 1
FAILING 21
PENDING 0
NO CHECKS YET 0

These columns do not partition: 1 + 21 + 0 + 0 = 22, and there are 50 open PRs. A PR is being counted twice or not at all.

Seal Status

  • ⚠️ STALE -- sha256(compiler.rs)=7cab95c431bc != manifest seal=87e5cbd3ad94.
    The committed NMSE numbers were certified against an older compiler.rs.
    Run scripts/reseal-check.sh locally for the two-step reseal command (advisory; not a merge gate).

@github-actions

Copy link
Copy Markdown
Contributor

📓 NotebookLM Notebook linked to this PR

This notebook contains session context, decisions, and artifacts for this work.

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.

Implement the six stubbed functions in specs/tri/collections/priority_queue.t27

1 participant