Skip to content

Sprint 0 wave 4: db pool, medium directories, shexec, config seam, web L0-L2, models-use fix - #424

Merged
PHPCraftdream merged 42 commits into
mainfrom
feat/sprint0-w4-pr-20261115
Nov 15, 2026
Merged

PHPCraftdream merged 42 commits into
mainfrom
feat/sprint0-w4-pr-20261115

Conversation

@PHPCraftdream

@PHPCraftdream PHPCraftdream commented Nov 15, 2026 •

Copy link
Copy Markdown
Owner

Sprint 0, wave 4

Integration of the lanes accepted in wave 4 (all declaration-oracle checked, guards and selftests green). Full fork CI run 43730239790 on 9b27f3b67 is green (22 jobs).

  • db: DB-C (pool and facade).
  • Medium directories (D2m): merges of message, codexprovider, fsext, proto, tasktree, apiclient, cahgen, nettransport, agentguard; E-sdk and E-permission near-limit file splits.
  • Shell: SM1 seam, shexec (SH1), design amendment section 8 (retained stop files stay with the future shellbg). shpolicy (SH2) is not in this PR.
  • Config: seam lane 0b-3.1 (provider/store/load decoupling), including a flake fix in store_oauth_journal_outbox_test.
  • Web: D3 lanes L0 (CI glob), L1 domain, L2 state.
  • Fix test(app): CI trace for the legacy queueing policy decisions (T) #150: rush models use no longer runs Codex or other-provider discovery (load option WithDiscoveryProviders).
  • Ratchets only fall; two deliberate rises carry comments (internal/config entries and files, sdk files).

Not in this PR (they go into the next wave): Job Object hotfix #151 (its regression tests are not green yet), SH2 (shpolicy), web L3 and later, SA1 agent seams.

🤖 Generated with Claude Code

PHPCraftdream and others added 30 commits November 15, 2026 12:17
…ntegration branch

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
… (D2-db lane DB-C)

connect.go and its tests move to dbconn; a close-assist port (WithCloseAssist)
and WithMigrateOptions keep dbconn independent of the parent db, and
db/facade.go forwards Connect, ConnectRead, Release, ReleaseConn, ReleaseAll,
ResetPool and the migration option aliases so importers do not change.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…ckage (D2m lane MG-message)

12 -> 7 elements; pure move: declaration oracle identical (148), 109 tests.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
… the package (D2m lane MG-codexprovider)

9 -> 7 elements; pure move: declaration oracle identical (99), 63 tests.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…egration branch

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…ext)

13 -> 7 elements; declaration oracle identical (90), 32 tests.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
11 -> 6 elements; declaration oracle identical (186), 10 tests.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…ne MG-tasktree)

root 10 -> 7 elements; declaration oracle identical (97), 42 root tests.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The glob src/*.test.ts ran 19 files and never ran components/batchControls.test.ts;
git ls-files over four depths covers the files the web restructuring will nest.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…integration branch

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
… D2m lanes

message, codexprovider, fsext, proto and tasktree reach the limit; message.go and
provider.go leave the over-900 list; pinned selftest counts follow.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…G-apiclient)

13 -> 6 elements; declaration oracle identical (148), 72 tests.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…ahgen)

9 -> 6 elements; declaration oracle identical (72), 44 tests.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…e MG-nettransport)

12 -> 7 elements; declaration oracle identical (157), 71 tests; the single init keeps its place.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…e wave 4 integration branch

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…he D2m merges

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Dispose and ReadOutput of BackgroundExecution delegate to methods of the retained
stop and output types, so the later shexec sub-package does not import shellbg.
Declaration oracle: two added methods, nothing removed or changed.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…on branch

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
… lane 3.1)

configureProviders and the selected-model setup become free functions without the
store, the initial publish protocol moves into NewStore and InitialLoad, and the
models-integrity helpers split off the store methods. Declaration oracle: only the
changes the design lists; 912 tests unchanged.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
… SH1 escalation

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
types, text helpers, asyncJob, completion, customRole, attachmentLimit and effort
move into web/src/domain; the effort, completionIndex and asyncJobCompletion
barrels disappear. Exported-name oracle: no named export lost; 26 unit test
cases unchanged; typecheck and lint green.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…tion

The 100 ms wall-clock bound failed under machine load (full suite, other builds):
the journal failure never clears, so any finite deadline proves that the refresh
returns without waiting for it.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…integration branch

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…0b-3.1 split

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…se by the 0b-3.1 split

The first wave 4 CI run failed in checks on exactly this line; every guard and
selftest is green again locally.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
rush models use <provider/model> no longer queries the model catalogs of the other
providers (Codex returned HTTP 401 on every invocation and printed a warning after a
five second wait). WithDiscoveryProviders limits the Codex, stepfun/zai catalog and
Z.AI effort documentation fetches; without the option nothing changes.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…eutils (D2m lane SH1)

The retained stop and output types stay with BackgroundExecution (design amendment,
section 8): the facade passes the retained launch route as a hook parameter, eight
names cross the boundary. Includes the solaris and illumos stub that the first pass
dropped (vetted for solaris, illumos, linux, darwin and windows).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
PHPCraftdream and others added 11 commits November 15, 2026 15:36
37 state files move to state/{link,config,transcript,status,sessions,live,runtime}
with the eight state tests; all 85 importers re-pointed. Singletons keep exactly one
owner; typecheck and lint green, no named export lost.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…irectory

Found by the unit suite (typecheck does not cover tests): seven tests imported
../XCarburetor.ts after the move.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…n branch

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…side the package (D2m lane MG-agentguard)

8 -> 7 elements; declaration oracle identical (96), 59 tests.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…e E-sdk)

sdk.go 1000 -> 554 lines; declaration oracle identical (54), 108 tests.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
… (D2m lane E-permission)

permission.go 981 -> 758 lines; 6 -> 7 elements; declaration oracle identical (106), 87 tests.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…e the ratchets after SH1 and web L2

The #150 fix files join models_atoms.go, models_atoms_test.go, load.go and
provider_discovery_client_test.go so that serve/cmd, config, load_providers.go and
root.go keep their recorded sizes; kit/sys/shell 24 -> 20 elements, web/src/state
leaves the ratchets.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
… 4 integration branch

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…ntguard, sdk and permission lanes

load.go needs catwalk, root.go no longer uses cliprovider; agentguard leaves the
dir-entries list, permission.go and sdk.go leave the over-900 list, sdk gains one
file by design (client.go); pinned selftest counts follow.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@PHPCraftdream PHPCraftdream changed the title Sprint 0 wave 4: db pool, medium directories, shexec, config seam, web L0-L3, models-use fix Sprint 0 wave 4: db pool, medium directories, shexec, config seam, web L0-L2, models-use fix Nov 15, 2026
…e wave 4 PR branch

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@PHPCraftdream
PHPCraftdream merged commit 0c36b21 into main Nov 15, 2026
@PHPCraftdream
PHPCraftdream deleted the feat/sprint0-w4-pr-20261115 branch November 15, 2026 16:44
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.

1 participant