Skip to content

Merge app/v3 into workstreams/main (third catch-up) - #2326

Merged
AbirAbbas merged 7 commits into
workstreams/mainfrom
workstreams/sync3-app-v3
Nov 3, 2026
Merged

AbirAbbas merged 7 commits into
workstreams/mainfrom
workstreams/sync3-app-v3

Conversation

@AbirAbbas

Copy link
Copy Markdown
Collaborator

Summary

Brings the Workstreams integration branch up to app/v3 (6 commits behind: #2251, #2311, #2316, #2298, #2312, #2321). A merge, not a rebase: no commit on either side is rewritten.

  • No conflicts. Three files were touched on both sides (cmd/codeaf/app.go, internal/appwire/server.go, docs/design/app-v3/PROTOCOL.md) and merged line-disjoint: app/v3's job-conversation touch after a turn starts, the factory.job_send hello feature and its protocol section sit beside the workstreams backend hooks, hello feature and methods.
  • The changelog entries come from the merged app/v3 commits; this PR adds none of its own.

How it lands

This PR runs the gate only. It is not squash-merged: a squash would flatten app/v3's commits into one and leave app/v3 out of the branch's history, so every later sync would replay them. Once the gate is green (or red only on known baseline failures, confirmed against a fresh app/v3 run), workstreams/main is fast-forwarded to this branch's merge commit and this PR closes as merged.

Validation

  • PR gate: light gate + touched packages. Baseline reds are listed below once the gate finishes.

🤖 Generated with Claude Code

santoshkumarradha and others added 7 commits November 3, 2026 09:31
…round (#2251)

* factory: serve persisted repository discovery and reuse PR files

Keep the last complete repository list in Store, scoped to its GitHub identity and credential hash. Return its read time through HTTP and appwire, refresh stale lists once every five minutes, and retain live watched state and sign-in failures.

Reuse the existing bounded read cache for setup ETags and PR files by head SHA. Skip GraphQL counts when all repository pages are unchanged. Validate with fake GitHub HTTP seams, named race tests, manual retrieval, and go build ./....

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(factory): serve stored repositories after transient discovery failures

Retry failed repository walks after 30 seconds while preserving sign-in failures and the last successful discovery timestamp.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* Fix repository discovery cache coherence and identity fallback

Bind counted repository snapshots to the current REST page contents so a partially failed walk cannot restore removed repositories. Share checkout attachment between local and setup discovery. Preserve stored lists and read times during transient identity failures only for unchanged credentials, while retaining sign-in refusals. Cache pull request files by both head and base revisions.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* factory: not connected answers the repos that are on

No token is an answer, not a lost sign-in: the page shows the watched repos beside Connect GitHub, as it did before the list was stored. The stored list is still never served.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* docs: the not-connected repository read in the changelog

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(manual): preserve task restart retrieval after Factory help

The added restart term changes BM25 document frequency and drops the task answer below the four-result cutoff. Describe removed repositories as disappearing from the list to preserve both retrieval promises without changing scoring or assertions.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* Name the repository reads change entry after its pull request

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
* test: reproduce file conditions through the runner step walk

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix: decide area conditions from change files when each step begins

The runner previously filtered phases using an area production never sets. Keep file conditions in the pending tail and resolve them at their turn, with a persisted skip reason and conservative unknown handling.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* docs: describe deferred file conditions and preserve known-area coverage

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* test: verify skip reasons reach live jobs and PR previews stay pending

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* test: preserve stranger write refusal for deferred conditions

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix: retain stranger write protection for deferred steps

Use phase eligibility for the launch refusal, since a file condition can become true after earlier steps. Keep condition documentation in its own retrieval section.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* changelog: name the pull request

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* test(factory): require a structured skipped phase

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(factory): carry structured skips through phase reports

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(factory): exclude skipped checks from proof and verification

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* test(factory): reject cached verification after a step skips

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(factory): invalidate cached evidence when a step skips

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* test(factory): end recovery when a conditional step skips

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(factory): finish recovery for skipped steps and document state audit

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* test(factory): assert skipped checks and approvals on job screens

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* docs(factory): describe skips using passing-check vocabulary

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* test(factory): invalidate equivalent proof claims when skipped

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(factory): invalidate proof using the claim identity

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* test(factory): preserve green checks beside optional skips

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(factory): preserve measured green checks beside optional skips

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* test(factory): expose skipped required check policy wait

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(factory): explain skipped checks in policy waiting questions

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(factory): preserve full skipped policy question at wait gate

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* test(factory): cover policy wait reports and optional skips

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* test(factory): assert public policy claim representation

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* style(factory): format skipped policy explanation

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* docs(factory): keep condition reference in its manual section

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* Take the gated copy of the union merged docs

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
* test: expose Factory page AI charged as chats

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix: count step and My pipeline AI as Factory AI

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* changelog: name the pull request

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
* test: reproduce misleading execution note outcomes

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* test: preserve compound approval refusal reproduction

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix: derive execution notes from refusal and interruption receipts

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* style: format execution receipt changes

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* test: distinguish successful output from engine interruption receipts

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* test: require producer outcome in the durable tool receipt

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix: preserve producer tool status independently of output text

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix: keep legacy receipt fallback behind producer status

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* test: reproduce stale shell failure after wider passing check

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* test: remove unused import from guard reproduction

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* test: reproduce deleted scratch script holding a green stage

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix: honor diagnostic check ownership in shell completion evidence

Scratch check exits were diagnostic but their parent shell failure remained an independent obligation after green checkout checks.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* test: specify unrun probe resolution, explicit debt and refusal bound

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix: resolve unrun literal checks with later measured coverage and name guard debt

Refused, cancelled and timed-out attempts remain owed until later current measured coverage. Real failures and unknown shell context remain blocking. All guarded reports use the same three unchanged or six total refusal bound.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix: retain interrupted required checks and document stale guard recovery

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* test: cover an identical refused command followed by its measured pass

Share the ordered verification environment schema between observation and unrun coverage.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* test: prevent historical pass from borrowing a newer command position

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix: bind covering passes to their invocation and clear identical rerun debt

Older passes cannot borrow chronology from a newer journal occurrence of the same command. Legacy records without call IDs require an unambiguous occurrence.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix: trust producer success before interpreting interruption text

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* test: refuse unmeasured completion after a same-command refusal

Bind fixture check receipts to their public tool invocation IDs.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix: require invocation-bound evidence to clear same-command refusal

A historical passing check cannot certify an unmeasured completion after a newer refusal.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* style: apply box gofmt to guard changes

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* changelog: name the pull request

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* test: preserve injected refusal receipts when the fixture appends a real run

The fixture journal must append: writing from an earlier file offset could overwrite a refusal before its measured rerun.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* Test legacy output and background receipt regressions

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* Correct regression fixture import

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* Read one producer-first outcome for receipt notes and completion guard

Legacy output cannot invent interruption status; launch acknowledgements remain started until measured evidence qualifies.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* Preserve measured presentation handling and document combined guard behavior

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* Cover printed legacy cancellation and timeout endings

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* Keep receipt outcome guidance in its own manual section

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* Assert publication excludes unmeasured launches and failed checks

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* Format receipt outcome implementation and regression fixtures

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* Retain both guard assumptions in the combined change entry

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* test: reproduce producer receipt and quoted refusal faults

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* test: pin real interruption outcomes and exclude existing publication fault

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix: trust producer outcomes and cover literal quoted Go probes

Record real shell interruptions at their producer, keep launch identity in call/process metadata, and admit literal quoted words for unrun Go coverage.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* test: retain refused quoted checks without covering passes and format fixtures

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* style: apply box gofmt to quoted refusal regression

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* test: separate cancellation fixtures from the shell timeout

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* style: format interruption fixture arguments on the box

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* test: restore masked check failure publication regression

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix: require check evidence before publishing successful receipts

Use measured check exits from the same call before legacy output evidence. A successful shell cannot publish a masked failed check as passing.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix: leave successful shell check obligations with measured receipts

A measured failure from a successful shell is check evidence, not an additional shell failure. Preserve exact audit rerun recovery through the real stage conversation.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* test(factory): reproduce compound and leading FAIL receipt faults

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(factory): keep partially measured calls unpublished

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* test: require measured command publication across receipt matrix

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix: publish only last measured passing command outcomes

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* test: cover setup reruns and unmeasured named counts

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix: withdraw published passes after setup-refused reruns

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix: bind measured outcomes to the exact journal command

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* test: preserve background compound guard with matching measured commands

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix: retain background shell completion obligations beside measured passes

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* test: reproduce hidden shell check publication

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix: withhold passing claims for shells that hide failures

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* test: distinguish completed compounds from guard holds

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* test: rerun identical compound after a measured failure

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* docs: specify identical compound rerun clears prior failure

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix: preserve background obligations after publication downgrade

The matching-command regression exposed a real guard bypass: lowering a measured pass to completed skipped preservation of an unfinished background shell. Keep that obligation under the existing guard coverage rules without relaxing publication.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* test(factory): exercise failing publication pipelines through shell observer

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* test(session): tie source proposals to received messages

Completion wakes could consume the next positional model response before its typed message existed, producing legitimately unsourced tasks on both the PR and app/v3. Drive proposals from the actual request transcript while retaining every source, identity, checkpoint and reopen assertion.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* test(session): finish each submitted task before the next message

A Submit attached to an existing wake returns that wakes stream, which can close before the turn answering the queued message. Wait for the stubbed task completion and the conversation to become idle so repeated words remain separate requests.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
* test: opening a factory job must leave it untouched

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* test: isolate read mutation from conversation opening

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* test: existing job messages must record personal ownership

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix: create job conversations on send instead of page reads

FactoryJobChats called the mutating Talk seam; return the stored chats instead and expose first-send creation as a write.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* test: job reads must not recover expired leases

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix: observe leases without recovering jobs during reads

HTTP snapshots must not settle lifecycle transitions or reap leases. Keep recovery on writes, worker pulls and durable deadlines.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* test: seed existing managers explicitly in chat fixtures

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix: record accepted job messages and test worker read checks

Existing managers bypass Talk creation; record personal ownership after accepted sends. Add HTTP regressions for publication and stop-choice checks.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* test: check worker read responses without an identity envelope

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix: keep worker checks observational and settle through lifecycle

Publication checks read the row without Update; stop-choice reads no longer renew leases. Startup and durable deadlines own settlement, and writes settle after version checks. Adjust lifecycle tests to explicitly restart rather than rely on browsing.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* test: reading job chats must not migrate repository identity

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix: normalize read snapshots without rewriting jobs

Store.Get and List lazily repaired repository identities by writing new revisions. Normalize their returned values and leave persistence to actual writes. Keep lifecycle expiry on writes after version checks and avoid an extra idle-pull listing.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* test: drive lifecycle work explicitly and preserve read snapshots

Existing tests expected GET to settle merges, expire workers and persist identity repair. Trigger restart maintenance explicitly and assert normalization persists only on writes. Record touches at actual message acceptance, including saved status messages.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* style: format read safety changes and align audit locations

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* test: seed the existing cell manager before reading its chats

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix: narrow read touch changes and restore factory maintenance

Keep lifecycle and storage maintenance unchanged. Advertise first-send capability and document older desktop incompatibility. Retain fixture manager creation because those tests require a conversation, independently of maintenance.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix: create the job manager explicitly when writing a brief

The full command suite caught brief writes relying on job_chats to create their manager. Preserve that write behavior without restoring read touches.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* test: automatic brief must leave job untouched

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* test: import the scripted errand answer

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix: keep system manager and brief activity separate from personal touch

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* docs: describe neutral manager conversation creation

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* changelog: name the pull request

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
* fix(factory): a budget raise isn't refused by spend progress

A worker's spend report moving the version between a person's read and raise
refused the raise as stale. Only a competing budget edit conflicts now.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* changelog: name the pull request

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
Brings the integration branch up to app/v3 (6 commits: the stored
repository list served with a background refresh, step conditions read
the change's files, step and My pipeline AI count as Factory AI, notes and
the completion guard share one command outcome, opening a job doesn't
count as a person's touch, a budget raise isn't refused by spend
progress). No conflicts; the three files both sides touched
(cmd/codeaf/app.go, internal/appwire/server.go,
docs/design/app-v3/PROTOCOL.md) merged line-disjoint.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@AbirAbbas
AbirAbbas merged commit cf3074c into workstreams/main Nov 3, 2026
4 of 8 checks passed
@AbirAbbas
AbirAbbas deleted the workstreams/sync3-app-v3 branch November 3, 2026 18:43
@AbirAbbas

Copy link
Copy Markdown
Collaborator Author

Landed by fast-forward: workstreams/main is now cf3074c77 (this branch's merge commit).

Gate run 41691056215: touched codeaf and touched rest green. Reds are baseline only, identical on a fresh app/v3 run at 0ef0e271f:

  • light gate: TestNoRoadInTheMemoryEngineHasMoreEndingsThanTheCeiling, TestNoRoadInTheTaskEngineHasMoreEndingsThanItsLedgerRow (app/v3 PR gate 41691211634, same two).
  • touched session: those two plus TestALandStartsNoAutomaticMaintenance, TestProgramHoldClassifiesEveryRegisteredChatTool, TestTheFixedPrefixStaysUnderItsBudget, TestTheLeanPrefixStaysUnderItsBudget (app/v3 Full check 41691206585, shard 0/3, same six).

app/v3's own touched codeaf leg timed out at 15m; this branch's leg has the 25m budget and passed.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants