Skip to content

Core-v2 && DeepAgent Code 2.0 - #121

Merged
deepagent-ai merged 93 commits into
devfrom
core-v2-r1-review-dev
Sep 20, 2026
Merged

deepagent-ai merged 93 commits into
devfrom
core-v2-r1-review-dev

Conversation

@deepagent-ai

Copy link
Copy Markdown
Contributor

Issue for this PR

Closes #

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Please provide a description of the issue, the changes you made to fix it, and why they work. It is expected that you understand why your changes work and if you do not understand why at least say as much so a maintainer knows how much to value the PR.

If you paste a large clearly AI generated description here your PR may be IGNORED or CLOSED!

How did you verify your code works?

Screenshots / recordings

If this is a UI change, please include a screenshot or recording.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

If you do not follow this template your PR will be automatically rejected.

…wner flag (W0.1-W0.3)

Squashed from 3 commits:

- eb12df9 feat(deepagent-code): W0.1 unify runtime default env between CLI and sidecar
- 69ab4d7 fix(core): v2-flip-contract asserts runtime-defaults entry unification
- b8d2f18 feat(core): W0.2-W0.3 beta version flag, owner default ON, production owner mint
…e (W0.4)

Squashed from 4 commits:

- b7b43bf fix(deepagent-code): W0.4 @mention receipt instead of silent no_match drop
- 17823bf fix(core): converge entry-default and core-gate flag semantics on one flip-flag table
- 4a39ecd fix(deepagent-code): widen V2-only version predicate to non-dotted beta/alpha lines
- 7255f8a test(core): pin the shared flip-flag table directly
… journal (W9.4-W9.6, W11.1)

Squashed from 4 commits:

- cbd37e9 fix(desktop): W9.4 health-phase fallback, fallback state-machine tests, smoke hardening
- 12a9043 chore(ci): W11.1 brand audit close (mdx coverage, SDK exemptions, honest brew copy)
- 53f3801 fix(desktop): phase-aware fallback message and 180s smoke watchdog
- 8ace7a7 fix(app): W9.5 durable execution journal source, dock consumption, versioned types
…mpaign, lifecycle anchors (W0.5-W0.7, W9.6)

Squashed from 4 commits:

- 42b1662 fix(deepagent-code): W0.6 mention double-execution gate, receipts broadcast, dedup
- 0fc8496 fix(core): W0.5 default owner campaign, shipped authorization seed, publish mint wiring
- 59e3295 fix(app): W9.6 lifecycle anchors, sole journal source, dock execution label i18n
- cd2bdcd feat(core): W0.7 relaxed owner authorization update guard for signed renewal
…seed renewal (W10, W2.1, W0.8)

Squashed from 4 commits:

- dd39090 feat(core): W10 project docs suite (system-context source + docs sync)
- 91fb75b fix(core): W2.1 recovery durability hardening, terminal guards, CAS outcomes
- 41d0c90 fix(core): W0.8 seed renewal acceptance, mint window/no-op hardening, campaign guard
- 0cd5829 fix(core): W10.1 keep project docs source ready when documents are missing
…5, W3)

Squashed from 2 commits:

- 0c276f3 feat(core): W5 event outbox writer, effect-completed receipts, spool DLQ receipts
- 934329b feat(core): W3 four-graph production adapters, drift consumption, evidence injection
…ng (W4, W10.2)

Squashed from 3 commits:

- 49ec0e3 feat(core): W4 capability L2 full chain (session loads, tools, real runtime features)
- 868a5a3 feat(core): W4 inventory gate wired at merged head + CI step
- 63d5df8 fix(core): W10.2 docs hardening (LOG order, root guard, cache, settle no-op)
…ss sync, session gaps (W3.7, W1)

Squashed from 3 commits:

- 53a37be feat(deepagent-code): W3.7 production four-graph sources injection
- c828503 feat(core): W1 session gaps (goal_steer drain, manual typed ops, remote compact)
- 6413e2e feat(deepagent-code): W3.7 readiness sync with production adapters (L5)
…(W1.1)

Squashed from 2 commits:

- 39b50b0 fix(deepagent-code): W1.1 goal-steer dual-channel merge into executor
- bbece1e test(deepagent-code): W1 session.wait is real — idle session returns 204
…1, W8, W4.1)

Squashed from 3 commits:

- 944b387 fix(core): W5.1 event honesty (in-tx outbox, admitted anchor, refusal rows, DLQ)
- c801a4e feat(core): W8 protocol close (identity-folded prepared turn hash, evidence refresh)
- d158361 fix(core): W4.1 capability P0-1/P0-2 P1-1/P1-2 close
…n readiness egress (W3.8)

Squashed from 4 commits:

- 1a89a33 feat(core): W3.8 real location identity frame + W3 review close
- 049464f test(core): W3.8 M1 federation feature defaults ON
- 666de98 feat(deepagent-code): W3.8.1 production identity frame fill + readiness egress
- dc9ccc3 fix(core): W3.8.1 selection frame egress carries live-query sensitivity set
…e (W6)

Squashed from 3 commits:

- 8779543 feat(deepagent-code): W6 write-isolation fail-closed, strict plan gate, V2 subagent ON
- a73c465 fix(deepagent-code): W6.1 strict-gate grace release, service-absent fail-closed, ghost-run settle
- 342a7a8 fix(deepagent-code): typecheck W6.1 strict-gate test harness post-merge
Squashed from 2 commits:

- 6f894c0 test(core): W1.2 switchAgent is real — update SessionV2.create availability pin
- b93b5a7 fix(core): C1-CLOSE gates (caller delegation edge, registry pin, version preload)
…W7, W3.9)

Squashed from 3 commits:

- 430af1b feat(core): W7 learning/memory V2 — settle hook, Bridge write ON, store read posture
- c5ad1d5 fix(deepagent-code): W3.9 lazy location-index attach + CLI stdout hygiene
- 94f112d fix(core): W7 legacy run states bind to zero learning fingerprint instead of throwing
…y executor wiring (W14, W2.2)

Squashed from 3 commits:

- 23ab9e8 test(deepagent-code): W13 stop workspace sync SSE stream before teardown
- c6935dd feat(core): W14 C5 consumer receipts, C1A-14 diagnostics, C7 close (matrix 61%)
- c392ef6 feat(deepagent-code): W2.2 C1B durable recovery executor production wiring
…er identity frame (W16, W3.10)

Squashed from 4 commits:

- 05459fe feat(deepagent-code): W16 goal-steer admission wiring (delivery goal_steer when goal active)
- 8b40bcd fix: W15 C-group closeout (pump guard, learning finalStatus, plan escape, cap filter)
- 1236238 feat(deepagent-code): W3.10 runner real-identity frame via per-ref host hook
- 5700324 chore(deepagent-code): classify v2-runner-frame in live-llm route manifest
Squashed from 2 commits:

- 022477d feat(llm): merge live-llm-zai-profile — GLM (zai) live-suite support (adversarial review P0-P3 applied)
- 46eaab9 fix(llm): merge live-llm-zai-thinking — GLM always-thinking adaptations (review APPROVE, findings applied)
Squashed from 2 commits:

- 25c8f2f fix(live-llm): merge live-harness-owner-fix — harness self-qualification for the V2 owner gate + file-tools TDZ repair
- abddb66 refactor(live-llm): merge provider-generic oracle batch 1 (plan-advance, activity-progress)
…efault exit gate (D2/D3)

Squashed from 2 commits:

- f259a38 feat(deepagent-code): merge models-url-default — self-hosted catalog as product default (user decision D3)
- 1aefb11 refactor(core): merge legacy-gate-d2 — exit gate over V2-default entry set (user decision D2)
…rovider-generic oracles (batch 2)

Squashed from 3 commits:

- 11dcdfa fix(core): merge plan-input-coercion — GLM stringified-number tolerance for plan writes (ablation F-1)
- d2e1e80 fix(deepagent-code): merge plan-tool-coercion — tool-layer tolerance for GLM stringified plan params (ablation F-1 completion)
- 025888a refactor(live-llm): merge live-suites-batch2 — provider-generic oracles (continuation, stale-validation, subagent worktree/background)
…acles (batch 3)

Squashed from 3 commits:

- 225beaa feat(script): ablation metrics extractor (pier trajectory -> pass/steps/investigation/tokens)
- 63d1c54 refactor(live-llm): provider-generic oracles for tool-ecosystem and failure-recovery
- d2aaa27 refactor(desktop): merge desktop-harness-generic — provider-generic live harness (batch 3)
…oding-plan profile (F-1, F-7)

Squashed from 3 commits:

- 0e05b71 fix(deepagent-code): merge plan-tool-coercion — expected_version coercion (F-1 completion for real)
- 91b0811 feat(llm): zai-coding-plan provider profile for the GLM Coding Plan endpoint
- e9e463a fix(deepagent-code): F-7 plan-write normalization drops GLM non-finite versions and threads normalized values
…imal plan (ablation W1/W2)

Squashed from 2 commits:

- afb9445 feat(deepagent-code): W1 shared workflow discipline across provider baselines
- db33863 feat(deepagent-code): W2 hold the first mutation of a planless run with a minimal plan template
…Runtime wiring (F-9..F-14, W3)

Squashed from 5 commits:

- 9332dec fix(deepagent-code): F-9 advance terminal transition — completing every step closes the plan
- 3d7e673 feat(deepagent-code): W3 mechanism trace + F-10 optional plan fields for omission-tolerant providers
- 707b90a fix(deepagent-code): F-11 infer omitted plan operation and derive the advance active pointer
- 6fba42b fix(deepagent-code): F-12/F-13 advance active pointer is advisory; null create pointer is absent intent
- a13f45e fix(deepagent-code): F-14 provide LocationIndexRuntime to the HTTP composition
…ion worklog (W4)

Squashed from 4 commits:

- 810b4bc feat(deepagent-code): W4 run document set — spec tool + runner completion worklog
- 842c8ba test(deepagent-code): update plan-write admission contract for F-10 omission tolerance
- dc4e7e0 feat(deepagent-code): W4xW1 discipline references the spec tool in the understand phase
- f7adeaf test: align BUG-010 and route manifest with the F-10 omission-tolerance contract
…sweep (v2f-h1, v2f-i)

Squashed from 3 commits:

- 7bdfb58 merge: core background task dispatcher and outbox delivery (v2f-h1)
- 688637f merge: IM flag sweep and dead-module cleanup (v2f-i)
- 933426a chore(sdk): regenerate types for v4EventDrivenIm removal
Squashed from 2 commits:

- cb5bec0 merge: app-layer task cutover to the single V2 owner (v2f-h2)
- 84010c6 test(core): re-pin migration registry digest for the durable-only wave
Squashed from 3 commits:

- 1370545 fix(core): release claims whose foreign-token turns are terminal history
- f2ac705 fix(core): release execution claims on mid-drain recovery escalation
- fe83984 fix(core): stop fencing terminal receipts on live owner leases at recovery
Squashed from 2 commits:

- 6d7c5ba merge: durable GitHub ingress and typed V4 refusal (v2w-j4)
- e650154 chore(deepagent-code): register wave-2/3 core modules in the live route manifest
Squashed from 2 commits:

- 53aa882 merge: durable PR review authority and legacy seam removal (v2w-j3)
- 7ae8252 chore(deepagent-code): register task-pr-review in the live route manifest
Squashed from 5 commits:

- 0ac21c7 merge: root graph V1 teardown and debug CLI disarm (v2w-j5)
- 3d15bc8 fix(deepagent-code): bound the session part-ownership memo with clear-on-full eviction
- 6c0f51e test(core): adjudicate the RI-94 wave-3 mutable-state backlog to zero
- 7ab9024 test(deepagent-code): migrate v4-integration tests to the v2w-j4 admission-only dispatch
- 002dc6e fix(deepagent-code): bound command shell-block execution with finite concurrency
…ean V2 surfaces (v2w-l2)

Squashed from 2 commits:

- 415d904 merge: delete the prompt.ts monolith; routes graph on lean V2 surfaces (v2w-l2)
- 6a9975f chore(deepagent-code): repoint the live route manifest at the extracted prompt surfaces
… env vars

Squashed from 2 commits:

- 93e72fd chore: ignore local .deepagent-code runtime data
- 5df3549 fix(deepagent-code): drop empty proxy env vars before Bun fetch rejects them
Squashed from 4 commits:

- 9715fd6 docs: rewrite the bilingual README for the 2.0 durable core
- 18548bb docs: plain-language README metrics section and de-dashed copy
- 8b41cc0 fix(deepagent-code): route global fetch through ProxyEnv so Bun honors HTTP(S)_PROXY
- 9cd160e docs: replace the cache-parity claim with measured total-input reduction
…ed clearing

Squashed from 4 commits:

- 2733fa8 fix(core): byte-stable history projection (uniform caps, protocol-aware reasoning replay)
- a737b31 fix(core): cohort-quantized clear window keeps the projection append-only between bursts
- f2e73a5 refactor(core): budget-triggered batched clear replaces per-turn stubbing (opencode-aligned)
- ed95aee docs: cite the measured prefix-cache hit rate in the README
@github-actions

Copy link
Copy Markdown

Hey! Your PR title Core-v2 && DeepAgent Code 2.0 doesn't follow conventional commit format.

Please update it to start with one of:

  • feat: or feat(scope): new feature
  • fix: or fix(scope): bug fix
  • docs: or docs(scope): documentation changes
  • chore: or chore(scope): maintenance tasks
  • refactor: or refactor(scope): code refactoring
  • test: or test(scope): adding or updating tests

Where scope is the package name (e.g., app, desktop, deepagent-code).

See CONTRIBUTING.md for details.

@github-actions

Copy link
Copy Markdown

This PR doesn't fully meet our contributing guidelines and PR template.

What needs to be fixed:

  • No "Type of change" checkbox is checked. Please select at least one.
  • No issue referenced. Please add Closes #<number> linking to the relevant issue.
  • "How did you verify your code works?" section is empty. Please explain how you tested.
  • Not all checklist items are checked. Please confirm you have tested locally and have not included unrelated changes.

Please edit this PR description to address the above within 2 hours, or it will be automatically closed.

If you believe this was flagged incorrectly, please let a maintainer know.

@lxrzlyr
lxrzlyr force-pushed the core-v2-r1-review-dev branch 2 times, most recently from e177af7 to 28b5215 Compare September 20, 2026 08:49
…elease housekeeping

Squashed from 4 commits:

- d907e5e fix(core): spawn git through node:child_process so the desktop Node bundle builds
- dcaad0b fix(app): inherit the node-builtin polyfill aliases in the electron renderer
- fe8c70e fix(core): strip removed-feature config leftovers instead of failing the load
- b2f31a0 fix(server): provide the delegation slot in the routes runtime layer
@lxrzlyr
lxrzlyr force-pushed the core-v2-r1-review-dev branch 5 times, most recently from 8f4f4b0 to 12ea29b Compare September 20, 2026 11:41
@deepagent-ai
deepagent-ai merged commit b928bf2 into dev Sep 20, 2026
4 of 14 checks passed
@deepagent-ai
deepagent-ai deleted the core-v2-r1-review-dev branch September 20, 2026 11:54
deepagent-ai added a commit that referenced this pull request Sep 20, 2026
Core-v2 && DeepAgent Code 2.0 (#121)
lxrzlyr pushed a commit that referenced this pull request Sep 23, 2026
Core-v2 && DeepAgent Code 2.0 (#121)
lxrzlyr pushed a commit that referenced this pull request Oct 13, 2026
Core-v2 && DeepAgent Code 2.0 (#121)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant