Repository navigation
factory: workstreams share to people and teams with roles, and can be private (E1, part 2) - #2637
Merged
Merged
Conversation
santoshkumarradha
force-pushed
the
w2/e1-access-ws
branch
from
November 13, 2026 19:07
9c30496 to
ab39bd8
Compare
… private
PUT /v1/workstreams/{id}/shares takes shares (people or teams, view |
comment | edit | full), owner, private and rev in one save; the old
teams body stays as edit. Rows carry shares, private and my_role; the
operator's row for someone's private workstream is its name only.
Archive needs full. The server signs decisions and imports, a team's
go-aheads are no longer the first approver's, and a removed person's
workstreams go to an heir. Imports keep links to earlier imports. The
engine forwards the new fields and says org_roles in hello.
Assisted-by: CodeAF
Co-Authored-By: CodeAF <[email protected]>
Assisted-by: CodeAF Co-Authored-By: CodeAF <[email protected]>
…takes roles Assisted-by: CodeAF Co-Authored-By: CodeAF <[email protected]>
Assisted-by: CodeAF Co-Authored-By: CodeAF <[email protected]>
Member
Author
|
Gate on head c5aad6b (rebased onto E3a #2635 / E7 #2636): factory/serve, factory, factory/api, factory/store, appwire green. The only factory/serve failures are TestFactorySetupContinueHoldsAgainstAConcurrentRead, TestFactorySetupDoubleContinueEndsReadingOnce and TestFactorySetupContinueEndsReadingWithoutWatchingUnreadRepos; |
santoshkumarradha
force-pushed
the
w2/e1-access-ws
branch
from
November 13, 2026 19:51
ab39bd8 to
c5aad6b
Compare
santoshkumarradha
added a commit
that referenced
this pull request
Nov 13, 2026
E1's #2637 brought OrgShare and orgShareList into appwire; the canvas methods now use them instead of a second copy. Assisted-by: CodeAF Co-Authored-By: CodeAF <[email protected]>
santoshkumarradha
added a commit
that referenced
this pull request
Nov 13, 2026
E1's #2637 brought OrgShare and orgShareList into appwire; the canvas methods now use them instead of a second copy. Assisted-by: CodeAF Co-Authored-By: CodeAF <[email protected]>
ZeroPoint95
pushed a commit
that referenced
this pull request
Nov 24, 2026
… private (#2637) Assisted-by: CodeAF Co-Authored-By: CodeAF <[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.
Wave-2 lane E1, part 2 — workstreams on the access core. Contract:
~/work/teams-wave/WAVE2.md§3 E1 as amended by §4.1. Part 1 (the core) is #2632.Wire (also written into WAVE2.md §4 "E1 wire as landed", edited in place outside the repo, and
docs/design/app-v3/PROTOCOL.md)PUT /v1/workstreams/{id}/shares {"shares"?:[{kind,id,role}], "teams"?, "owner"?, "private"?, "rev"?, "include_linked"}— one save.shareswins; the old{"teams":[...]}still works asedit. Stalerev→ 412.private:trueempties shares (non-emptysharesbeside it → 422; team owner → 422); non-empty shares clearprivate.GET .../shares/preview?shares=kind:id:role,...(and?teams=): linked, non-private items where an added share would raise someone's role.WorkstreamSummary+=shares,private,my_role. The operator's row for someone's private workstream is name only (my_role:"", no shares, zero counts); its content is 404.POST /v1/workstreams+=private.factory.org_workstream_shares/_share_preview/_createforward the new fields;engine_features += org_roles.Rules and holes
by= caller,at= now); import ignorescreated_by.editapproves.DELETE /v1/people/{h}/sessions?heir=<h>hands their workstreams to the heir (default: the operator), removes their person shares, publishes events; private stays private (now the heir's).from_local_links).Proof
TestTwoPeopleOverTheWireMeetE1sAcceptance: the real handler on a real loopback listener, santosh/abir/operator signed in through the device flow, plain HTTP. abir withview→ 403 PATCH and archive; santosh's private workstream is a name-only row for the operator and 404 for content; a forged decisionbyis stored as the caller.TestAShareGivesItsRoleAndNoMore,TestAPrivateWorkstreamIsANameToTheOperator,TestTheServerSignsDecisionsAndImports,TestMovingLinkedWorkstreamsInKeepsTheLinks,TestOwnerAndSharesLandInOneSave,TestATeamWorkstreamsGoAheadsAreNotTheFirstWritersAlone,TestARemovedPersonsWorkstreamsGoToAnHeir,TestTheSharePreviewTakesPeopleAndRoles; engine forwarding incmd/codeaf/appfactory_org_test.go.codeaf factory servebinary run: E0's two-person e2e harness (internal/e2e/org_two_people_test.go) has not landed, and real sign-in needs GitHub for two accounts. The wire test above is the same handler over TCP.make pr-ready BASE=<merge-base>: see the comment below.