Repository navigation
workstreams: sources (file, repo, issue, link, kept), wire v0.4, schema 5 - #2320
Merged
Merged
Conversation
Schema 3 stays readable without writing; the first write creates the table and moves to 4 in one transaction, keeping every existing row. Schemas 1 and 2 migrate straight to 4. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…t path and URL checks Co-Authored-By: Claude Opus 5.5 <[email protected]>
…es sources Co-Authored-By: Claude Opus 5.5 <[email protected]>
… person to keep Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
AbirAbbas
force-pushed
the
workstreams/wp12-sources
branch
from
November 3, 2026 15:21
fe958c9 to
c979e43
Compare
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ve to schema 5 and wire v0.4 Co-Authored-By: Claude Opus 5.5 <[email protected]>
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
Workstream sources, the Workstreams plan's WP-12 (wire contract v0.4 — Sources).
workstream_sourcestable by an additive migration. Schemas 3 and 4 stay readable without writing; the first write creates the table and moves to 5 in one transaction, keeping every row. Schemas 1/2 migrate straight to 5. An engine built before this refuses a schema-5 file with its existing unsupported-database error (nothing lost).file(absolute clean path that exists),repo(owner/nameor a local checkout folder),issue(owner/name+ number),link(http/https only, no userinfo),kept(a record, page, chat message or Factory job of this workstream). Each has a title,read_by_jobs,added_by,added_at. Sources are their own table, never collection members.source.list,source.add,source.update(title, read_by_jobs, keep a proposal),source.remove;workstream.createtakessources;workstream.changedpartsources; hello featureworkstream_sources. Strict validation runs before any write: refusals arebad_paramsand store nothing. Done workstreams refuse source writes withconflict.workstream_readgainssources/source(bounded reads of the stored path only; final-component links are not followed);propose_sourceonly proposes (proposed: true,read_by_jobs: false), the person keeps or drops.Validation contract
TestWorkstreamSourcesEveryKind,TestWorkstreamSourcesRoundTripAndRemove,TestAppWorkstreamSourcesEveryKindOnWire, conformancesource.*bad_params, nothing storedTestWorkstreamSourcesInvalidInputsStoreNothing,TestAppWorkstreamSourcesRefusalsOnWire,TestAppWorkstreamCreateSourcesPreflight, raw invalid-UTF-8 and URL-bound testsTestWorkstreamSourcesToggleSurvivesReopen,TestAppWorkstreamSourceUpdatesAndDoneOnWireTestWorkstreamSourcesRoundTripAndRemove,TestWorkstreamSourcesKeptOwnershipAndRemovalwhyuntouchedTestWorkstreamCreateSourcesAreAtomic,TestAppWorkstreamCreateSourcesPreflight(incl. client_id retry after a source vanished)TestWorkstreamSourcesRoundTripAndRemove,TestWorkstreamCreateSourcesAreAtomicTestWorkstreamProposeSourceToolAndStrictArguments,TestWorkstreamAgentSourceProposalsAndReads,TestWorkstreamAgentSourceFileReadBounds, symlink-replacement testsTestWorkstreamSourcesDoneAndReopen,TestAppWorkstreamSourceUpdatesAndDoneOnWireschema-5 migration tests (from schema 4, 3, 1/2),TestWorkstreamSourceAddMigratesSchemaThreeAndPreservesRows,TestWorkstreamSourcesSchemaFourRequiresItsTableLeft for later
Contract changes
Wire contract v0.4 — Sources (additive; v0.3 is the watching agent). Conformance testdata regenerated.
🤖 Generated with Claude Code