Repository navigation
release: v0.14.1 — demo/network hardening, review fixes, Agent Runtime v0.7.0 - #93
Merged
Merged
Conversation
…eserve embedded daemon ids, authorize MCP config reads
- POST /providers/{id}/test uses the same pinned, no-redirect client as
the provider probe, so a base URL cannot be bounced to an internal host.
- The restricted-address policy also covers 0.0.0.0/8, NAT64, 6to4,
Teredo and IPv4-mapped/compatible IPv6.
- Remote daemons cannot register, report or reconnect under the
server's reserved embedded: machine ids.
- GET /config/mcp requires administrator or Project authorization and
no longer returns server filesystem paths to other callers.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
GET /config/mcp is now administrator-only, so a Project owner who is not an instance administrator saw a permanent URL skeleton and Install buttons that always failed with 403. The controls now skip the server config queries for non-administrators and show the MCP URL for their own client, with no install actions. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The changelog, API and architecture docs said the shared network_policy predicate also protects public search. It does not: the public search resolver, result filter and config endpoint validation keep their own, stricter filter. The agent-host check that does use it is the fetch tool's authorization gate, so its test is renamed to match. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…laim Until this branch, an authenticated user could register over HTTP with this server's exact embedded machine id. The upsert kept that account as owner and rotated the token. Refusing the id now stops further claims, but an existing claimed row stayed owned: the embedded daemon's re-registration failed with machine_owned on every report, and the embedded machine cannot be removed from the UI. The embedded daemon now registers through register_embedded, which releases an account claim on its reserved embedded: identity (owner cleared, visibility global) before registering, which also rotates the claimant's token. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The MCP configuration text was inserted between the Settings intro and its response description, so "The response lists value, effective_value and restart_required" and the forge.yaml config_path read as if they described /config/mcp. It now has its own subsection, which also states what the web controls show non-administrators. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…P URL for members; no ETXTBSY races - 64:ff9b::/96 is judged by its embedded IPv4, so IPv6-only DNS64 networks reach public providers; local-use NAT64 stays refused. - The public-search filter refuses 192.0.0.0/24, not the whole /16. - Signed-in users who can see the Project read the MCP endpoint URL (from the configured public base URL, nothing else); the web controls use it instead of the browser address. - Fake executables in tests and scripts Forge writes then runs are published without an inherited writable descriptor, and spawns retry a bounded number of times on ExecutableFileBusy. Co-Authored-By: Claude Opus 5.5 <[email protected]>
64:ff9b::8.8.8.8 is a public destination now that well-known NAT64 is judged by its embedded address; the provider-endpoint test still listed it as rejected and failed. It moves to the public controls, and the rejected list gains NAT64 forms of 10.0.0.1 and 169.254.169.254. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The writer was include_str!'d from scripts/write-executable.sh, outside crates/. Release images build from Cargo.toml, Cargo.lock and crates/ alone (.dockerignore whitelists nothing else), and forge-cli/forge-client reach process-supervisor, so the image build would fail on a missing file. The three-line program is now a constant in the crate; the Python fixture runs the same program inline. scripts/test_crate_includes.py fails when a non-test include resolves outside crates/. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ng entry write_executable now publishes the compiler-cache launcher, whose staging directory sits in a store the runs can write. The old write_replacing created its staged file with O_EXCL; the child writer's `cat > "$1"` and the parent's File::open both followed whatever a run planted there, so a sandboxed run racing the publication could have Forge overwrite and chmod 0755 a file outside its sandbox. - The writer runs with `set -C`: the staged file is created exclusively, and an existing entry (link, dangling link, file) fails the write. - The parent opens the staged file with O_NOFOLLOW | O_NONBLOCK and requires a regular file with a single link before fsync, fchmod and rename; a link, FIFO or hard link fails the publication. - The writer is stopped after 10 s (its feed runs beside the deadline), so a FIFO planted in place of the file cannot hang the caller. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The endpoint check in config and the resolver/result filter in native_tools carried identical copies of the IPv4 and IPv6 block lists, which is how 192.0.0.0/16 had to be fixed twice. config now exports is_blocked_public_search_address and native_tools calls it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The planted-entry test only showed that the writer refused; a writer that failed for any reason would have passed it. It now also writes a fresh staged path and checks the contents. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…d fetch Public search judges 64:ff9b::/96 by its embedded IPv4 like providers; providers and fetch also refuse 192.88.99.0/24. Both predicates share one implementation in config, with a parity table and documented deliberate differences. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The shared policy replaced search's 64:ff9b::/48 refusal with the provider rule, which only covers the well-known /96. Search therefore started admitting unassigned addresses such as 64:ff9b:0:1:: that it refused before. Restore that refusal as a documented search-only exclusion and add an old-vs-new verdict test: verbatim copies of both pre-sharing predicates against the shared policy over a generated address set, allowing only the two intended changes. Co-Authored-By: Claude Opus 5.5 <[email protected]>
docs/api.md still said public search refuses every NAT64 address outright and omitted 192.88.99.0/24 from the provider list. Co-Authored-By: Claude Opus 5.5 <[email protected]>
- Providers and fetch refuse the IPv6 documentation, benchmarking and special ranges public search already refused. - Both policies judge IPv4-translated ::ffff:0:0:0/96 by its IPv4. - Public search refuses .internal and .home.arpa hostnames, and a hostname with any blocked DNS answer (instead of using the rest). Co-Authored-By: Claude Opus 5.5 <[email protected]>
Public search refused names under `.internal` and `.home.arpa` but still accepted the reserved names themselves (`https://home.arpa/`, `https://internal/`) as endpoints and result URLs. Refuse the apex names too, as already done for `localhost`. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The frozen old-vs-new comparison covers address verdicts only. Say so, and name the tests that prove the hostname-suffix and any-blocked-answer changes made in the same release. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Providers and fetch now refuse bare internal and home.arpa like search, and every consumer refuses bare local and *.local (mDNS). Matching is by whole DNS labels, ignoring case and trailing dots. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Reviewer completion cascade, cancelled-review and failed-entry handling and the remaining services/API sites resolved the review gate by the literal name review. They now use the same rule as budgets: the state named review, or a reviewer-role gate in the review phase. A custom workflow with a review gate named qa_review reviews, passes and merges. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The renamed-gate change narrowed prepare_review_entry and the no-change repair guard from every review-phase gate to the review lifecycle's rule, which needs the reviewer role. A renamed gate held by another role, or an owner-approval gate without a role, lost its missing-candidate park and its no-change guard: its Agent was dispatched with nothing to review. Both sites use the review-phase predicate again, so the default workflow (merging included) and such gates behave as before the change. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The Task condition's human wait still named the review gate by its literal state name: an awaiting-human Review verdict, or a failed one that no run answers, made a Task in `review` wait for a person but not one in a renamed review gate such as `qa_review`. The API's `awaiting_human`, Attention and the dispatcher's human-wait read disagreed with the review lifecycle. The condition now reads the review states from the Project workflow with the same rule as budgets, parsed once per definition text. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The renamed-gate change replaced the overview's name heuristic (any status containing review or merge) with the review-gate rule plus merge, so a custom state such as security_review that is not a reviewer gate moved from the review count to active. The heuristic stays as the fallback; the review-gate rule only adds renamed review gates whose names say nothing. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The API stores a Task's review_config under the key review in its task_state_config, and the three readers that merge it into a gate's config (the engine, the dispatcher and the review contract) looked it up by the gate's own name. A renamed review gate such as qa_review therefore ran only the workflow's review config: the Task's checks, setup steps, verify and conformance settings were silently dropped. A review gate now reads the review entry unless the Task configures the gate by its own name. The renamed-gate end-to-end test carried its check in the workflow state config, which only worked because of this gap; it now gives the check in the Task's review_config as a built-in-gate Task does. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ks run Owner and agent rechecks deferred reviewer dispatch; with no checks to open a new Review, recovery kept reconciling the cancelled attempt's old reviewer, and the Task offered only an override approve. The recheck now dispatches the reviewer itself. Soft delete and the web root-lead launch guard use the shared review-gate rule. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ed on The recheck fix made a review re-run dispatch its reviewer inside the entry, which left apply_review_check_retry queueing nothing. The queued role continuation had been what cleared the Task's annotation, so after Retry Verify the new attempt kept the stale review_verify_inconclusive diagnostic and offered only an override approve. The action now clears that annotation by comparison once the re-run is entered. Co-Authored-By: Claude Opus 5.5 <[email protected]>
… a person, web root-run rule - A review re-run cancels the current Review and enters the next one in one transaction, so a failure between them cannot strand the Task. - The dispatcher no longer reselects a completed reviewer whose Review awaits a person, so waiting Tasks stop adding task_step rows. - The web root-lead launch guard resolves review phase and role like the server. Co-Authored-By: Claude Opus 5.5 <[email protected]>
wait_for_review returned the Task read before the Review reached awaiting-human, so on a slower runner its offers lacked the approve the test asserts. CI failed both agent_recheck_with_checks cases this way. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The retry_verify wait returned the Task drained before the Review reached awaiting-human, the same stale read wait_for_review had, so on a slow runner its offers could lack the ordinary approve the test asserts. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ch failed A re-run's entry can commit while its dispatch_role_agent hook fails (the hook only logs). The completed reviewer then stays bound to the cancelled newest Review, and the snapshot selected it for settlement on every tick: the settlement finds the attempt cancelled and does nothing, so the Task never got a reviewer until the owner re-ran Review again. A cancelled exact Review now has nothing to settle and falls through to the role dispatch, which opens the next attempt. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Conflicts resolved keeping both sides: next's shared fake-executable / ETXTBSY spawn helper and proxy passthrough, and #88's demo-mode spawn guards (24/24 production spawn sites still guarded), demo Git policy and task-detail conflict handling. CHANGELOG keeps one Unreleased section with every entry from both sides once. Semantic fix in an auto-merged file: the MCP config write applies the demo server-file refusal before the admin check, so demo returns 422 server_location_refused and normal mode keeps 403 admin_required. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The MCP client configuration section stated a non-administrator always receives 403 admin_required, while the demo error section lists the write under 422 server_location_refused. The merged handler applies the demo refusal first, so say so where the admin rule is described. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]> # Conflicts: # CHANGELOG.md
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The orchestration split moved the project_turn_* statements into orchestration/turn_admission.rs; the Project turn query boundary test still scanned the old file and found none. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Stage 5 of the agents crate cut: the 19 modules that stayed in services (chat service/worker/policy, embedded agent service, native tools, wake turn consumer, Main orchestration commands, ...) now live in services-agents. Core reaches them only through narrow seams (WakeTurns, ExecutionSupport, new AgentEventConsumerNames) wired by ForgeRuntimeBuilder. 491 tests moved without expectation changes. services 399k -> 334k lines; touched-core services lib test build 189s -> 148s. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…r/agents-cut-s5 # Conflicts: # crates/services-agents/src/agent_chat_turn_worker.rs
The stage-5 move put the agent integration suite in services-agents, where its fixtures (EmbeddedAgentService::with_native_backend and 29 cfg(feature = "test-support") items in native_chat_tool_exchanges) are services-agents/test-support items. Only api dev-depends on that feature, and api is not in the rest shard, so rest built the target without it: four E0599 errors, and 11 tests that would compile out even once it built. The move had also dropped the required-features the target carried in services, so the shard check could not see it. Declare required-features on services-agents `main`, let the catch-all shard pass package-qualified features (REST_FEATURES, checked against cargo metadata), and name the feature in ci-rust.sh, the Makefile and the documented clippy line. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Stage 5 had to stop the core lead-operation tests from calling CoordinationToolProvider, so their lead_call helper now resolves the authority itself and builds the "OperationNotInScope" refusal it then asserts. Nothing exercised the registry's principal rule and lead_run through ForgeToolProvider::propose any more. A planner session that leads no root is refused each of the five lead operations through the native boundary, and no subtask is created. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…nSupport The core review-verify tests replaced the CoordinationToolProvider they stored evidence through with a hand-written storage double (its own content types, no size bound), so the production path TaskService -> EmbeddedAgentService (ExecutionSupport) -> capture_verify_evidence had no test left. Store a screenshot through the embedded service as the runtime wires it: one media row and asset with the verify author, content type, storage key and checksum; a replay resolves the same artifact; empty and over-25-MiB evidence is refused. Co-Authored-By: Claude Opus 5.5 <[email protected]>
TestAgentEventConsumerNames reported "agent-chat-wake-turn-delivery", a name no consumer has; the real WakeTurnConsumer is "agent-wake-turns", which V088 seeds a cutover row for. Core operator status tests now monitor the same consumer name production does, as they did before the move. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Owner chat bootstrap (G01), pricing account-deletion sentinel (G05), Attention reopen wake rearm (G04), Main Chat topic rotation (G03) and media projection/GC state (G06) now run in the source writer's transaction instead of in triggers; five migrations drop only those triggers. Guards and the projection/invalidation families (memory FTS, Task outbox, revisions, status epoch, scheduler, usage watermarks) stay as triggers; docs/architecture.md records the rule. create_user and delete_user now own BEGIN IMMEDIATE transactions. media_asset.version now bumps once per typed attach/pin/soft-delete instead of trigger-plus-reconcile twice. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…r/logic-triggers-small # Conflicts: # CHANGELOG.md
…o write perf_fixture.py inserts its two Projects with raw SQL and relied on the project_agent_chat_after_insert trigger for the Project Chat and setup binding. V202610180752 drops that trigger, so a fixture built on a current server had Projects with neither row, and its canonical dump no longer matched a fixture built on an older baseline. Write both rows when the server did not, with the trigger's exact columns, then normalize the ids as before. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The new behaviour tests assert expected rows only. These two replay one history on a database migrated to just before V202610180752, where the legacy triggers still fire on the statement the old writer issued, and on the current schema through today's repository writers, then compare the affected tables row for row with only random ids removed. - owner chats and topic rotation: account Main Chat, Project Chat and setup binding; idle (user only, eight hours, system messages ignored), Genesis start, published handoff and Genesis handoff rotations with their origin turn; an explicit request taking the live origin and a second request keeping it. - media: Task media projection (asset, mapping, attachment, evidence kind, URL), the typed and the caller-owned release pin, and Task media soft deletion with and without a pin. Every column matches except media_asset.version, which the test pins to the intended one bump fewer per typed pin and soft delete. Co-Authored-By: Claude Opus 5.5 <[email protected]>
`sqlite/logic_triggers.rs` was named after the mechanism it replaced. Move each helper, unchanged apart from a doc comment, next to the writer that owns it: the account Main Chat bootstrap to `user_auth.rs`, the Project Chat and setup binding to `project.rs`, the Attention wake rearm to `attention.rs`, the three topic-rotation helpers to `agent_chat_topic.rs` and the Task media projection to `task_media.rs`. The architecture notes now list every moved behaviour, its source writes and where it lives. Co-Authored-By: Claude Opus 5.5 <[email protected]>
migration.rs carried two "Embedded migration bundle revision" comments: a short V202610180820 head and the historical line relabelled V202610180752, so the bookkeeping named two heads and skipped V202610180758, 0804 and 0812. Collapse them into one head that lists the five trigger drops, followed by the unchanged history. Co-Authored-By: Claude Opus 5.5 <[email protected]>
A file-backed database migrated to V202610161644 with trigger-created chats and bindings upgrades with every row kept, all fourteen moved triggers gone and the five migrations recorded; the current writer then creates the Main Chat itself. The test also records that the migration runner does not refuse a newer database: an older bundle starts on it with neither the triggers nor the code that replaced them. Co-Authored-By: Claude Opus 5.5 <[email protected]>
An older build started on an upgraded data directory finds neither the dropped triggers nor the code that replaced them, and the migration runner does not refuse it. Say what silently stops and that a pre-upgrade backup is the way back, next to the existing one-way LCM note. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The runner ignored _migration rows whose version this build does not ship, so an older Forge ran silently on a schema it does not understand (after the logic-trigger drops: no chats for new accounts or Projects, no topic rotation or wake rearm, refused account deletion). The embedded bundle now refuses any unknown applied version before applying anything; Server, Solo and forge migrate print a readable error and exit. Every released version's migrations are still in the bundle, so no released database is refused. Co-Authored-By: Claude Opus 5.5 <[email protected]>
- CommandContext fields are private again (read accessors for services-agents; a compile_fail doctest holds the struct closed), so no crate can build an authorization context without from_authorized_input. - services-agents calls the core provider_egress_refusal; the copy is gone. - A test fails if ForgeRuntimeBuilder stops wiring ExecutionSupport. - The mcp-server redaction test asserts on a distinctive sentinel instead of "123", which random ids could contain. - Two docs point at services-agents/src/embedded_agent_service.rs. Co-Authored-By: Claude Opus 5.5 <[email protected]>
No journal adoption: both stores keep the legacy materialized path. Adapt the custom transport to the runtime's checked provider reasons (credentials captured before send, error bodies capped, raw bodies no longer logged), keep typed rejection/retry decisions under the new BadRequest -> Provider kind, and pin a session persisted under 82f5aac that must still resume and compact (the char-ratio-2 sizer changes the LCM fingerprint but not session identity; no reset migration needed). Co-Authored-By: Claude Opus 5.5 <[email protected]>
AGENT_RUNTIME_REVISION still said 5ee41e4 two runtime bumps later, and new native profiles copied that into config_json.runtime_revision. Set it to 1de6d7d34d2c, the revision Cargo.lock pins. Per the review brief's authorization, this changes one existing test expectation: lcm_store.rs no longer compares against a literal but against the agent-runtime source revision parsed from Cargo.lock, so the next bump that forgets the constant fails that test (checked: the old constant fails it). Co-Authored-By: Claude Opus 5.5 <[email protected]>
…another shape The transport's checked reason dropped only a verbatim echo of a sent header value, header token or decoded query value (the runtime's rule). A reason still passed when it carried the key split by a newline, space or tab, joined by an invisible character (U+200B, U+00AD, U+FEFF), upper-cased, truncated by the gateway, or the query value as sent (percent-encoded). Ten such shapes reached provider.detail and from there the Task execution error, chat failure text and logs. Fold whitespace, control and default-ignorable characters and ASCII case before comparing, treat any 16 consecutive characters of a sent value (of 8+ folded characters) as an echo, and also capture the percent-encoded forms. Masked keys (sk-proj-****...abcd) and ordinary reasons still pass; shorter values such as the "Bearer" token stay verbatim-only. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…sk health The rejection-message entry sat under Breaking, but no REST/MCP code, field, enum value or event shape changes: only free text (the `Config:` prefix becomes `Provider:`, plus an optional checked reason). Move it to Changed and say exactly what the text now looks like. The bump also changed behaviour the changelog did not mention: native Task and reviewer-correction turns now record provider entry health from typed evidence (auth, usage limit, exhausted transient retries) where error-text classification had only ever matched usage limits. File that under Fixed and say in docs/api.md which turns feed health. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…failure
Drive 400/401/403/429/503 rejections, with no body, an ordinary reason and a
reason worded as another class ("HTTP 401", "quota exhausted", "retry after",
code usage_limit_reached), through the transport's attach and
provider_turn_failure. The status and typed 429 body decide the TurnFailure;
the checked reason never does, and attach leaves kind and retryability alone.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…e v0.7.0 Co-Authored-By: Claude Opus 5.5 <[email protected]>
…1/0382 Co-Authored-By: Claude Opus 5.5 <[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.
Release v0.14.1 from
next/v0.14(CI green on 07937e7) plus the version bump.Highlights (full list in CHANGELOG.md
[0.14.1]):Breaking / one-way upgrade: a database migrated by 0.14.1 cannot be opened by an older Forge. Back up before upgrading.
The session-journal adoption is NOT in this release (it failed its disk/performance gate and is being reworked).
🤖 Generated with Claude Code