Repository navigation
workstreams: size limits on plans, pages and records; agent Spec/Decisions pages read by jobs - #2310
Merged
Merged
Conversation
Draft text was bounded only by its own length, plans had no count or encoded-size bound, and a workstream could accumulate pages and records without limit, so every list read materialized all of them. The store now refuses, inside its write transaction and before anything is written: draft text over 80,000 bytes; a plan over 500 milestones, 500 waves, 5,000 items or 4 MiB of encoded milestones and waves; a 5,001st page (deleted pages included) or record. The new ErrLimit names the bound and answers too_large on the wire; the plan_set check refuses the counts and draft text early. The conformance testdata is regenerated from the contract (too_large on plan_set, record.propose, record.supersede). The agent manual states the limits and that new agent pages titled Spec or Decisions are read by jobs. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…s page.create makes them Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ound; the manual separates the tool's draft limit Co-Authored-By: Claude Opus 5.5 <[email protected]>
…efault TestStabEm1AgentSpecAndDecisionsPagesAreReadByJobs: agent pages titled Spec or Decisions (any case, surrounding space) are read by jobs, others not; updates keep the flag. TestStabEM4*: plan bounds through the real wire and the store, exact bounds accepted and one past refused with too_large and no event; page and record counts (deleted pages included) refuse wire and agent writes; plan_set and record.propose too_large conformance cases; early wire refusals keep bad_params for control characters. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
AbirAbbas
force-pushed
the
workstreams/minors
branch
from
November 3, 2026 11:06
2d81cd1 to
82c6c22
Compare
Collaborator
Author
|
CI: every red is a known baseline, also red on the integration branch's own run and app/v3: the laws ratchet in |
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.
Summary
Two follow-ups from the Workstreams stability review (the Workstreams plan, MINORS):
page.createapplies (workstream.ReadByJobsDefault). Updates keep the flag. The agent manual says so.too_largecode and noworkstream.changedevent:workstream.plan_set's check refuses the counts and draft text early; control characters staybad_params. A newworkstream.ErrLimitnames the bound; the agent receives that message. The conformance testdata is regenerated from the contract (too_largeadded toplan_set,record.propose,record.supersede).Validation contract
TestStabEm1AgentSpecAndDecisionsPagesAreReadByJobstoo_large, nothing stored, no eventTestStabEM4PlanWireBoundsAreAtomic(real wire),TestStabEM4PlanLimitsAreAtomic(store)TestStabEM4PageCountIncludesDeletedTestStabEM4RecordCountBoundsplan_too_large,records_too_largeinTestAppWorkstreamWireConformancebad_paramsTestStabEM4PlanBoundsBeforeDelegation,TestStabEM4DraftControlCharactersRemainInvalidContract change
Wire v0.2.1: size limits only, no shape change;
too_largeis now listed forworkstream.plan_set,record.proposeandrecord.supersede.Left out
Bounding the shared wire reader's request size and paging page/record lists; with the write-time caps every list is bounded.
🤖 Generated with Claude Code