Skip to content

Implement budgeted Context Package v1 assembly #80

Description

@andrewperis

Parent epic: #5

Summary

Implement budgeted Context Package v1 assembly for Context Builder v1.

Ownership and dependencies

Scope and deliverables

  • Bind selected candidates to declared prompt slots and construct valid Context Package v1 sections, sources, package/builder identity and canonical manifest identity.
  • Enforce per-slot and total byte budgets plus explicitly configured token estimates where supported; record tokenizer/version and never claim byte counts are exact model tokens.
  • Use deterministic selection/omission rules, preserve JSON validity and UTF-8 boundaries, and fail when required context cannot fit instead of silently truncating meaning.
  • Propagate maximum classification, provenance, purpose, creation/review/expiry limits and source constraints without minting use authorization.

Acceptance criteria

  • Produced packages pass published Context Package schema and semantic validation.
  • Budget boundary tests cover multibyte text, JSON, required/optional slots, zero capacity and oversized candidates.
  • Byte/digest/source links and total_content_bytes verify exactly; ordering is reproducible.
  • No generated package grants itself authority, lowers classification or exceeds source validity.

Implementation guardrails

Follow Constitution v1.0.0 at a9cc8a503aa30e17820edc62ac95f7cbe10e0564 and repository boundaries. Add focused tests with implementation; the suite task consolidates rather than postpones testing. Public issues, fixtures and docs use synthetic/already-public material only. Approved private inputs stay behind explicit secure artifact boundaries. No direct Lore checkout, silent declassification, self-approval or canon promotion.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions