mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-10-21 14:21:48 +00:00
* feat(managed-agent): consolidate persistence into a 32-table baseline Preserve journal, idempotency, runtime, physical storage and recovery boundaries in a shared fresh-database schema. Add fixed snapshots, typed operations, scoped resource collection and atomic automation projections with MySQL fault and load coverage. Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com> * fix(managed-agent): restore schema CI and channel claim fencing Avoid nested snapshot connection borrowing while preserving committed read-lease expiry and retirement checks. Carry reserved channel reconciliation identities into private journal commands and retain UNKNOWN no-resend behavior. Update canonical-schema fixtures, migration discovery and application packaging. Preserve the 32-table fresh-database boundary and record local versus pending CI acceptance in both languages. Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com> * fix(managed-agent): refuse system catalogs before schema initialization Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com> * fix(managed-agent): restore fresh-schema E2E and MariaDB validation Port the real-stack runner and its audits to canonical tables, retain stream and approval scopes, and register fresh Linux storage before Harness admission. Validate MariaDB CHECK enforcement and InnoDB without relying on MySQL-only metadata or negative-test syntax. Add regression coverage and document current platform and acceptance boundaries. Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com> * fix(managed-agent): normalize boolean CASE catalog literals Accept MariaDB's numeric representation of bare SQL boolean literals while retaining structural CHECK validation, quoted values and enforcement guards. Add alias and tamper regression coverage and synchronize the bilingual verification evidence. Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com> * fix(ci): raise managed schema MariaDB packet budget Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com> * fix(managed-agent): support MariaDB load-test query plans Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com> * fix(managed-agent): Restore native storage fixtures and const read witnesses Preserve measured row counts while bounding MariaDB optimization-stage page reads, and register Linux Hosted test storage through the production guard before tool admission. Keep recovery registration across restarts and resolve physical owners through aliases. Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com> * test(managed-agent): Await snapshot publication in retraction checks Keep the strict terminal snapshot watermark assertion while allowing after-commit publication to finish under the concurrent materializer. Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com> --------- Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com> Co-authored-by: Shaojin Wen <shaojin.wensj@alibaba-inc.com>
38 lines
1.8 KiB
SQL
38 lines
1.8 KiB
SQL
-- Align the Runtime Broker tables with runtime-broker's schema.sql, which its
|
|
-- JDBC repositories are written against. RuntimeBrokerFlywaySchemaTest keeps
|
|
-- the two definitions equal.
|
|
|
|
-- H2 cannot drop and add a primary key in one statement, so each swap takes
|
|
-- two. A unique key covers the gap. MySQL rejects the first DROP PRIMARY KEY
|
|
-- when sql_require_primary_key is set; it runs first so that nothing else has
|
|
-- changed by then.
|
|
|
|
-- Executions are keyed by the hash of their call ID.
|
|
ALTER TABLE qwen_tool_execution DROP PRIMARY KEY;
|
|
ALTER TABLE qwen_tool_execution ADD PRIMARY KEY (execution_call_id_hash);
|
|
ALTER TABLE qwen_tool_execution DROP INDEX uq_tool_execution_call_hash;
|
|
|
|
-- A Runtime Session ID is unique within its scope.
|
|
ALTER TABLE qwen_runtime_session
|
|
ADD CONSTRAINT uq_runtime_session_scope
|
|
UNIQUE (scope_key, runtime_session_id);
|
|
ALTER TABLE qwen_runtime_session DROP PRIMARY KEY;
|
|
ALTER TABLE qwen_runtime_session
|
|
ADD PRIMARY KEY (scope_key, runtime_session_id);
|
|
ALTER TABLE qwen_runtime_session DROP INDEX uq_runtime_session_scope;
|
|
ALTER TABLE qwen_runtime_session DROP INDEX idx_runtime_session_scope;
|
|
|
|
-- A slot is keyed by its request key. One isolation key can own several
|
|
-- slots, for example in another scope or Workspace generation.
|
|
ALTER TABLE qwen_runtime_binding_slot DROP INDEX uq_runtime_binding_isolation;
|
|
|
|
ALTER TABLE qwen_runtime_binding_slot
|
|
MODIFY COLUMN provisioner_kind VARCHAR(512) NOT NULL;
|
|
ALTER TABLE qwen_runtime_binding
|
|
MODIFY COLUMN provisioner_kind VARCHAR(512) NOT NULL;
|
|
|
|
-- The repositories never write these columns.
|
|
ALTER TABLE qwen_runtime_binding_slot DROP COLUMN placement_domain;
|
|
ALTER TABLE qwen_runtime_binding_slot DROP COLUMN runtime_template_digest;
|
|
ALTER TABLE qwen_runtime_binding DROP COLUMN placement_domain;
|
|
ALTER TABLE qwen_runtime_binding DROP COLUMN runtime_template_digest;
|