Repository navigation
factory: a job in a workstream answers to that workstream (E5) - #2634
Merged
Merged
Conversation
Job write doors need the job's person, edit on its workstream or the operator; a job with no person needs edit on its workstream. Undo of a stop is allowed to the job's person. A job is seen only with repo read and view on its workstream, across the queue, the job, the record and the event stream. A sign-in with no profile sees no workstream job and acts as no one's person. Assisted-by: CodeAF Co-Authored-By: CodeAF <[email protected]>
Assisted-by: CodeAF Co-Authored-By: CodeAF <[email protected]>
Assisted-by: CodeAF Co-Authored-By: CodeAF <[email protected]>
…operator Assisted-by: CodeAF Co-Authored-By: CodeAF <[email protected]>
santoshkumarradha
force-pushed
the
w2/e5-factory-acl
branch
from
November 13, 2026 18:48
b81c2c7 to
1b197a4
Compare
This was referenced Nov 13, 2026
ZeroPoint95
pushed a commit
that referenced
this pull request
Nov 24, 2026
Job write doors need the job person, edit on its workstream or the operator; sight needs repo read and view on its workstream; a profileless sign-in sees no workstream job. 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 E5 (WAVE2.md §3 "After the demo cut → E5", §1c holes 1–2; moved into the demo cut by §4.5).
What changes
POST /v1/jobs/{id}/<verb>: stop, steer, priority/prioritize, reply, nudge, recheck, request_changes, undo, …) need the job's person,editon its workstream, or the operator. One gate inpostJob(verbs.go) →mayChangeJob(job_access.go).editon it. Outside every workstream it keeps today's rule.viewon the job's workstream: queue (forViewer),GET /v1/jobs/{id}(404), record/activity, job ticks on/v1/events, routes preview, runners, read marks.follow,brief_seen,scout(the caller's own facts);take/releasekeep the lease desk's person rule when the job has a person.Seams with other lanes
workstreamCanfromitem_access.go. The interim stub is deleted. The operator gets job writes explicitly; through roles the operator only hasview, and has nothing on private items.jobWorkstreamID(it)is the one place a job's workstream is resolved (todayPolicyGroupws_*). E2 will extend it withStore.WorkstreamOfJob(explicit membership wins).job.canis unchanged; W5 hides verbs permy_role.Proof
make pr-ready BASE=origin/work/teams: green, every selected test passed first run.internal/factory/serve/job_access_test.go, on the org scene (santosh, abir, mia; Platform/Growth/Design) with each person signed in by token:viewshare sees santosh's job and gets 403 stopping it; withedit, 200. The operator cannot see a job in santosh's private workstream (absent from queue, 404).Not proven against a running
codeaf factory servebinary with two real GitHub sign-ins: these tests run the realserve.Handlerin-process with a fake GitHub. E0's two-person harness (#2630) is not merged yet.WAVE2.md §4 is edited in place (outside the repo) with the job-door rule; PROTOCOL.md carries it.