Repository navigation
Conversation
Seal automatic review for unconfigured Telegram ingress and persist an exact one-call human handoff only for valid uncertain decisions. Keep explicit denials, critical risk and authority failures closed. Cover ownership, restart, cancellation, storage faults and concurrent resolution. Coordinate duplicate cold compilation through the LRU. Qualify critical denial and its business final under one shared original-fixture observation deadline; production deadlines unchanged.
Recognize zero expiry only for canonical stored API-key credentials. Keep OAuth expiry, bounded one-shot handles and request ownership intact. Provide a trusted Native generation-checked metadata update that preserves secret slots and unrelated records, with default-feature SDK proof. Focused auth-store suite: 42 passed. Strict Clippy and native header regressions passed. Historical local durable target remains 75 passed / 2 waiting-timeout failures; its focused pair passed separately. This publication acquires new-head CI; it does not claim local full green.
Move `rustscript-vm` (pd-vm) and `pd-host-function` to fc8b0c81 so the agent tracks the strict Unit/Option/Result host contracts. Rust-level adaptation only; the guest corpus migration is a separate scope: - `HostAsyncBridge`: the pinned trait drops `cancel_op` and requires `cleanup_op(op_id, HostAsyncOpTerminal)`. Both the production bridge and the recording test bridge now drop the operation future there, which is the behaviour the removed `cancel_op` hook used to provide through the old default `cleanup_op`. - `HostTypeSchema` gained `Unit`, `Option` and `Result`; the OAuth schema completeness helper recurses into them instead of failing exhaustively. - Refresh the dependency pin guard, the documented core revision and `Cargo.lock` (the sqlite feature now resolves rusqlite 0.40 through tokio-rusqlite). Gates that pass: `cargo fmt --all -- --check`, `cargo check --locked --all-features --all-targets` (0 errors, 0 warnings), `cargo clippy --locked --all-features --all-targets -- -D warnings`, `tests/dependency_pin_tests.rs` and `tests/docs_consistency_tests.rs`. Still blocked, tracked separately: the bundled RSS corpus does not compile against the new dialect (78 of 86 sources rejected for `null` literals, `T?`, `: null`), 73 of 115 agent catalog functions return schemas the new boundary rejects (`Unknown`, `Null`, nested `Optional`), and the pinned core now makes the disabled native JIT backend fatal for VM invocations, so pd-vm needs the `cranelift-jit` feature (or a core-side interpreter fallback).
…dialect Repins pd-vm to master 2f433eda (bare Some/None) and migrates the bundled corpus: null to (), nullable annotations to Option, typed JSON targets, hoisted sqlite parameter arrays, and host-contract carriers for control_check, parse_json_object and provider_call.
…n carriers Converts twelve high-fan-in host returns to Named shapes with logical Option fields, keeps resources as live handles, and drops the matching quarantine entries. Corpus compiles 42 of 87.
…previews Converts the twelve transport hosts to Named shells with live resource handles and text bodies, proves rollback with real handles, and adds a closed preview_arguments slot so write and execute approvals keep a typed preview under text-only tool arguments.
Migrates the last fifteen guest modules off null literals, publishes the remaining Optional host fields as logical carriers, and aligns the bundle import scan with the compiler dialect so bundled sources using match and Some are accepted.
The runner validated the entry result against the legacy null-or-string encoding while the guest now returns tagged carriers, so every command entry failed with OutputInvalid. Accept both encodings and normalise the two optional fields back to the legacy wire shape for existing callers.
Guest payload intents spell an unused device or code selector as an empty string. Treating it as a present selector made every authorization-code exchange fail before it reached the network, so token requests stayed at zero.
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.
Repins pd-vm / pd-host-function / pd-host-schema to core master
2f433edab3f1907e8cb060e901357d7e2af016ceand migrates every bundled RSS source plus the test fixtures to the strict typed dialect (Unit / Option / Result, typedjson::encode::<T>, resource-backed host schemas). The deployed telegram/guardian line is merged in, so this branch carries the production behaviours too.What changed
fc8b0c81→2f433eda; guest now uses bareSome/Noneconfig::load_snapshot/config::check_policypublish a resource-backed result schema, withpolicy_handlestill a live host handlerss/storage/admission.rssbudgets its probe row at 1 MiB so restore envelopes are not truncated to zero rowsfeat/telegram-typing-edit(ceb8400) and then master's byte-identical re-landing (452b627), keeping typed form plus the Guardian/approval/provider/API-key behaviourIntegration suite consolidated: 136 → 63 roots
The suite had 136
tests/*.rsroots, 1835#[test], 189,583 lines and a 62 G target tree, almost all of it duplicated linking. The roots are now 15 domain wrappers plus 86 leaf cases undertests/cases/, and the 22 cases the deletion ledger closed (harness/toolchain scaffolding, a superseded aggregate corpus diagnostic, thedependency_pin_testsprovenance guard, ignored transcript placeholders) are gone. Every stage was verified with a mechanical name inventory (zero missing, zero added, zero ignore-status changes) and per-target runs; no assertion was weakened.Verification at
601b0ddAll 63 integration roots, by name, with
--all-featuresunless noted:auth_cli_contract_tests136/0,auth_rss_transport_tests78/0,oauth_bridge_tests124/0,native_auth_contract_tests54/0,codex_device_contract_tests34/0provider_codec_tests94/0,provider_config_fixture_tests66/0 (config-fixture lane),provider_loop_tests39/0 (config-fixture lane)agent_rss_contract_tests60/0,effect_contract_tests29/0,plugin_contract_tests61/0,rss_tools_contract_tests114/0,gateway_contract_tests111/0,docs_contract_tests32/07473ff9:--lib --all-features786/0/6 three consecutive runs,agent_loop_tests76/0,service::managed_effectsserial 166/0, corpus 87/87Timing-sensitive fixtures were made load-tolerant by separating the fixture's observation window from the authority clock; no deadline, refusal, or assertion was relaxed.