| feat(sync): land arch11-weekly-1102-zrr rework for four-process topology takeover Squash-lands the branch-side changes of arch11-weekly-1102-zrr (previously spread over commits 54b01c01/584ebd45/75e40561/9246a31d/1039ded3/6d0de4da/ 2f1f9bde/d55a704d/1b1854ff and several merge commits) into a single English Conventional Commits landing, per compliance review (Issue #3913 items 2-1/2-2). Content is unchanged from the reviewed PR head 2d0918bc9: - #3834 takeover cascade chain: backfill the takeover conclusion and keep the A2A chain alive; failed-terminal symmetry, original attribution fields, next-dispatchable validation, backfilled observability, plus real-HTTP link test cases - #3621 trigger_pipeline switch on issue create, with the pending-issue first-trigger path (stage=created -> vod via atomic CAS claim) and 409/400 idempotency guards - #3620 tko_ takeover token on git-credential with strict repo-scope check and takeover-session liveness revalidation - skills contract fixes: restore _validate_repo_param and document the repo owner/repo contract params - pending-issue trigger path no longer holds db_lock inside async code (sync critical section + asyncio.to_thread) - A2A dispatch by service mapping, v2 claim Request passthrough, and ratchet/snapshot refresh; takeover dispatch real-HTTP test updates - #3874 worker onboard review gaps: docs, CI gate, wheel platform coverage, pyyaml/model-gate resilience - 3-db cold-start bootstrap path (scripts/bootstrap_3db.py) and the deploy/README.md four-process wiring section - docs: grape-kit raw install URL fallback, openapi snapshot and i18n ratchet refresh, cross-domain read baseline refreshes | 5 hours ago |
| fix(org): close PR #1904 QA review blockers - add pipeline advance metrics, loop health and Tempo span - audit manual and patrol pipeline advance actions - stage all migrated legacy files when bootstrapping grape-org - soften scene-catalog CLI gate with server-side fallback | 3 days ago |
| feat: #699 add four-process split server apps and entrypoints | 20 days ago |
| docs(readme): port the restructured README and installation guides - README.zh.md / README.md: three-question structure, metrics section, dual-host install - add SETUP.AGENT / SETUP.HUMAN(.zh), docs/{CONFIGURATION,DEPLOYMENT}(.zh) and quickstart.py - add assets/: wordmarks, community icons, metrics charts, pipeline screenshot | 9 days ago |
| chore(merge): sync arch-weekly-11 80b1b8e92 into feat/org-dispatch-scene-catalog Resolve the second base sync and keep the merged tree self-consistent: - frontend cache ratchets: all-views.css 69->71, i18n cacheVer 86 / 20261122-4 / 66, and account/admin/organizations/repos chunks bumped by recompute_frontend_bundle_ratchet for the merged sources - OpenAPI contract regenerated and re-baselined to the union (396 paths: yaw create-targets/connection + org scene-catalog/repo-map/patrol) - p4 cross-domain read inventory baseline refreshed after base line shifts - autopilot_tasks api reference added to the foreign-refs allowlist for migration 202611201700 - d109-schema.sql gains the ca_bundle column that platform_object_ddl already declares (base drift caught by the platform DDL parity test) | 13 hours ago |
| feat(sync): land arch11-weekly-1102-zrr rework for four-process topology takeover Squash-lands the branch-side changes of arch11-weekly-1102-zrr (previously spread over commits 54b01c01/584ebd45/75e40561/9246a31d/1039ded3/6d0de4da/ 2f1f9bde/d55a704d/1b1854ff and several merge commits) into a single English Conventional Commits landing, per compliance review (Issue #3913 items 2-1/2-2). Content is unchanged from the reviewed PR head 2d0918bc9: - #3834 takeover cascade chain: backfill the takeover conclusion and keep the A2A chain alive; failed-terminal symmetry, original attribution fields, next-dispatchable validation, backfilled observability, plus real-HTTP link test cases - #3621 trigger_pipeline switch on issue create, with the pending-issue first-trigger path (stage=created -> vod via atomic CAS claim) and 409/400 idempotency guards - #3620 tko_ takeover token on git-credential with strict repo-scope check and takeover-session liveness revalidation - skills contract fixes: restore _validate_repo_param and document the repo owner/repo contract params - pending-issue trigger path no longer holds db_lock inside async code (sync critical section + asyncio.to_thread) - A2A dispatch by service mapping, v2 claim Request passthrough, and ratchet/snapshot refresh; takeover dispatch real-HTTP test updates - #3874 worker onboard review gaps: docs, CI gate, wheel platform coverage, pyyaml/model-gate resilience - 3-db cold-start bootstrap path (scripts/bootstrap_3db.py) and the deploy/README.md four-process wiring section - docs: grape-kit raw install URL fallback, openapi snapshot and i18n ratchet refresh, cross-domain read baseline refreshes | 5 hours ago |
| chore: #699 add .gitkeep for data/ and wheels/ dirs - Add data/.gitkeep and wheels/.gitkeep to preserve empty dirs in git - Update .gitignore: change data/ -> data/* and wheels/ -> wheels/* with !data/.gitkeep / !wheels/.gitkeep exceptions (git cannot re-include files if parent dir is fully excluded) Refs: docs/weekly-09/grape-unified-implementation-design.md Phase 0 | 20 days ago |
| merge: sync arch-weekly-11 tip 0bf990eb4 (deploy README: keep 3-db bootstrap + add SQLite overlayfs section) | 3 hours ago |
| fix: #3855 scope admin access to official skills | 57 minutes ago |
| docs(help): add ai-shell-devbridge-deploy usage page - help/usage/ai-shell-devbridge-deploy.md: new usage doc for the AI-shell DevBridge deploy workflow, registered in help_page_gen.py manifest - test_help_directory.py: align assertion to the expected-files list (count-driven instead of hardcoded 10) Signed-off-by: liufei_cloud <gcw_3FZApeLT@noreply.gitcode.com> | 1 month ago |
| merge: sync arch-weekly-11 tip 53cdd8ff0 (help.html generated artifact, take ours) | 3 hours ago |
| fix(worker): ship the legacy entry shim inside the worker package (Issue #3381) #699 removed the legacy top-level shims, and the repo's own start template was moved to src.domains.runtime.engine.agent. That fixes newly generated scripts, but a device whose start-worker.sh was produced by an older install-worker.sh still execs -m src.runtime.agent (sandbox workers: -m src.runtime.cloud_worker). Replace its code without re-running the installer and it dies at startup with ModuleNotFoundError: No module named 'src.runtime' — the reported symptom of devices never attaching. Restoring src/runtime/ in the repo tree is not an option: tests/arch/ test_domain_boundaries.py requires that import to fail, and test_issue_2010_src_top_level_layout.py forbids MANIFEST entries for legacy top-level paths — and an entry that is not in MANIFEST never reaches a device. So the shim ships inside the package instead: - source lives in packaging/legacy-entry-src/runtime/ and stays out of src/, so both arch guards keep passing and MANIFEST stays canonical - build_package() maps those files to src/runtime/{__init__,agent, cloud_worker}.py in the tarball (also covered by the package SHA256SUMS) - the shim only forwards: runpy.run_module(canonical, run_name="__main__"), so the root fail-fast guard, main() and exit codes behave exactly as the real entry - the shim content feeds _manifest_version(), so editing it bumps the package version and devices re-pull instead of keeping a tarball without the shim - require_legacy_entry_members() fails the build when the shim source is missing (a deploy tree that skipped packaging/ would otherwise silently produce a package without it) - tests/runtime/test_legacy_entrypoint_compat.py pins all of the above Verified on a real build: python -m src.runtime.agent from the extracted package reaches the canonical __main__ (root fail-fast, exit 78), while the same command without the shim reproduces the field error. | 4 days ago |
| merge: sync arch-weekly-11 tip 0bf990eb4 (deploy README: keep 3-db bootstrap + add SQLite overlayfs section) | 3 hours ago |
| fix(skills): register dedup suffix ceiling as undecided five-source value (Issue #3855) | 57 minutes ago |
| test(skills): cover display-name suffix enum exhaustion returns 409 (Issue #3855) | 57 minutes ago |
| chore: #699 add .gitkeep for data/ and wheels/ dirs - Add data/.gitkeep and wheels/.gitkeep to preserve empty dirs in git - Update .gitignore: change data/ -> data/* and wheels/ -> wheels/* with !data/.gitkeep / !wheels/.gitkeep exceptions (git cannot re-include files if parent dir is fully excluded) Refs: docs/weekly-09/grape-unified-implementation-design.md Phase 0 | 20 days ago |
| test: P1-A infrastructure + P1-C coverage additions — plugins/coverage gate/coverage raised to 71% P1-A(基础设施,不含 CI): - 新增 requirements-dev.txt(pytest-asyncio/cov/randomly/timeout/xdist/rerunfailures) - pytest.ini:timeout=120、asyncio_mode=auto、临时禁用随机顺序(P1-B 隔离后启用) - 新增 .coveragerc:source=src、fail_under=70(第一档门槛本地生效) - conftest 统一:移除 36 处冗余 sys.path.insert P1-C(补覆盖,全部新增测试文件,未改 src/): - test_runtime_client.py(35) → runtime/client.py 0%→100% - test_auth_routes.py(16) → api/routes/auth.py 39%→100% - test_mysql_compat.py(66) → mysql_compat.py 16%→93% - test_feishu_async.py(55) → im/feishu_async.py 45%→71% - test_runtime_agent.py(25) → runtime/agent.py 50%→70% 基线:1025 passed / 5 skipped / 21 deselected,覆盖率 65%→71.08% 文档:方案补充附录 F(CI 暂缓) G(实施约定) H(P1 记录) | 3 months ago |
| fix(hosted): ship the OAuth channel cards in the image | 3 hours ago |
| grape kit adapter & plugin market Co-authored-by: zrr<zrr@local> Co-authored-by: grape_bot<grape_bot@noreply.git.com> Co-authored-by: my_grape_bot<my_grape_bot@noreply.git.com> Co-authored-by: zrr000212<zrr000212@noreply.gitcode.com> | 3 days ago |
| chore(merge): sync arch-weekly-11 into feat/org-dispatch-scene-catalog Resolve cache-version and platform-card conflicts. QA review follow-ups: - regenerate checked-in OpenAPI contract - keep GET repo-map endpoints read-only; move branch sync to POST - use bulk_read for pipeline reconcile scans - refresh cross-domain read inventory baseline - remove duplicate create_repo_options migration - bump frontend chunk/i18n cache versions | 3 days ago |
| grape kit adapter & plugin market Co-authored-by: zrr<zrr@local> Co-authored-by: grape_bot<grape_bot@noreply.git.com> Co-authored-by: my_grape_bot<my_grape_bot@noreply.git.com> Co-authored-by: zrr000212<zrr000212@noreply.gitcode.com> | 3 days ago |
| docs: add MIT LICENSE and SECURITY policy for open-source release | 1 month ago |
| bugfix and promote response Co-authored-by: songspace<songspace@grape.dev> Co-authored-by: lvjuntao<jentle_81@163.com> | 7 days ago |
| docs(readme): drop the production deploy section, keep the header button | 2 hours ago |
| docs(readme): drop the production deploy section, keep the header button | 2 hours ago |
| docs(security): point supported version to main branch | 1 month ago |
| docs(readme): port the restructured README and installation guides - README.zh.md / README.md: three-question structure, metrics section, dual-host install - add SETUP.AGENT / SETUP.HUMAN(.zh), docs/{CONFIGURATION,DEPLOYMENT}(.zh) and quickstart.py - add assets/: wordmarks, community icons, metrics charts, pipeline screenshot | 9 days ago |
| docs(readme): keep the install prerequisites and self-check entry in the README - README: state the Python 3.10 / venv / Aliyun mirror prerequisites in one line and link the self-check list, so the existing issue-452 and issue-455 doc tests keep passing unchanged - README / SETUP.HUMAN: use python3 in bash blocks (python in the PowerShell blocks) - README.zh.md: say GitHub/GitCode OAuth, matching the English text and the shipped providers - quickstart.py: treat the .env.example JWT placeholder as missing and pass --env-file so the compose interpolation actually sees the generated secret | 9 days ago |
| docs(readme): keep the install prerequisites and self-check entry in the README - README: state the Python 3.10 / venv / Aliyun mirror prerequisites in one line and link the self-check list, so the existing issue-452 and issue-455 doc tests keep passing unchanged - README / SETUP.HUMAN: use python3 in bash blocks (python in the PowerShell blocks) - README.zh.md: say GitHub/GitCode OAuth, matching the English text and the shipped providers - quickstart.py: treat the .env.example JWT placeholder as missing and pass --env-file so the compose interpolation actually sees the generated secret | 9 days ago |
| fix: VCS hardcoding audit - provider dispatch for token/URL in 9 files (0916B audit) | 2 months ago |
| feat(sync): land arch11-weekly-1102-zrr rework for four-process topology takeover Squash-lands the branch-side changes of arch11-weekly-1102-zrr (previously spread over commits 54b01c01/584ebd45/75e40561/9246a31d/1039ded3/6d0de4da/ 2f1f9bde/d55a704d/1b1854ff and several merge commits) into a single English Conventional Commits landing, per compliance review (Issue #3913 items 2-1/2-2). Content is unchanged from the reviewed PR head 2d0918bc9: - #3834 takeover cascade chain: backfill the takeover conclusion and keep the A2A chain alive; failed-terminal symmetry, original attribution fields, next-dispatchable validation, backfilled observability, plus real-HTTP link test cases - #3621 trigger_pipeline switch on issue create, with the pending-issue first-trigger path (stage=created -> vod via atomic CAS claim) and 409/400 idempotency guards - #3620 tko_ takeover token on git-credential with strict repo-scope check and takeover-session liveness revalidation - skills contract fixes: restore _validate_repo_param and document the repo owner/repo contract params - pending-issue trigger path no longer holds db_lock inside async code (sync critical section + asyncio.to_thread) - A2A dispatch by service mapping, v2 claim Request passthrough, and ratchet/snapshot refresh; takeover dispatch real-HTTP test updates - #3874 worker onboard review gaps: docs, CI gate, wheel platform coverage, pyyaml/model-gate resilience - 3-db cold-start bootstrap path (scripts/bootstrap_3db.py) and the deploy/README.md four-process wiring section - docs: grape-kit raw install URL fallback, openapi snapshot and i18n ratchet refresh, cross-domain read baseline refreshes | 5 hours ago |
| feat(org): add organization pipeline, dispatch, and repo map Add the organization workbench pipeline: intake, dispatch, aggregation, context publishing/snapshots, repo map analysis, knowledge, audit, and retention. Includes the org management API, Vue workbench pages, CLI contracts, UUID-primary-key migrations with grape_t_ prefixes, metrics, and guard/test coverage. Review remediation included in this commit: - route destructive DDL through _destructive_ddl; - register the lazy VcsApiClient export in the A3 gate; - retire the standalone org-pipeline page behind an explicit redirect and replace its stale source assertions with a retirement contract test; - squash the branch onto arch-weekly-11 and refresh the migration and cross-domain-read baselines after rebasing on the target branch; - treat dispatch ids and org issue idents as strings/uuids end to end in the aggregation closure, and keep the top-bar org default contract; - add a single-db fallback for the mgmt read port so structured task memory works outside the three-db topology. Signed-off-by: chenyan <1534887760@qq.com> | 3 days ago |
| docs(readme): keep the install prerequisites and self-check entry in the README - README: state the Python 3.10 / venv / Aliyun mirror prerequisites in one line and link the self-check list, so the existing issue-452 and issue-455 doc tests keep passing unchanged - README / SETUP.HUMAN: use python3 in bash blocks (python in the PowerShell blocks) - README.zh.md: say GitHub/GitCode OAuth, matching the English text and the shipped providers - quickstart.py: treat the .env.example JWT placeholder as missing and pass --env-file so the compose interpolation actually sees the generated secret | 9 days ago |
| feat(deploy): support managed container hosting (Railway et al.) Add a hosted-deployment path so this image can run as a one-click template on managed container platforms, while leaving self-hosted behaviour untouched. New files - railway.json: platform manifest; builds deploy/Dockerfile, health check on /api/health, restart on failure with 5 retries. - deploy/hosted/entrypoint.sh: idempotent startup bootstrap that fills in the JWT secret, the public base URL, project templates and the engine model config, then execs the original CMD. It stays inert unless platform signals (a platform-injected domain, PUBLIC_DOMAIN or SERVER_BASE_URL) are present, or GRAPE_HOSTED_BOOTSTRAP=1 is set explicitly. LLM_API_KEY is deliberately NOT treated as a hosted signal: self-hosters always set it, and reacting to it would rewrite HOME, configs/server-config.json and the engine config of a self-hosted deployment. deploy/Dockerfile - system deps: add git, curl and ca-certificates (template sync uses git clone; the seed fallback needs curl plus a TLS trust store). - install the execution engine opencode-ai@1.19.5 on Node 22 and keep Node installed; stop purging nodejs/npm in the codegraph step, because that purge also removes the runtime the engine depends on. - add ARG OPENCODE_VERSION, CODEGRAPH_VERSION and TEMPLATES_REF so the image is reproducible. - run scripts/sync_templates.sh after "COPY . ." so official templates are baked in; this is best effort, so an unreachable template repo no longer fails the build (the runtime entrypoint retries). - add the bootstrap ENTRYPOINT at the end; CMD and EXPOSE 3000 are unchanged. .dockerignore - replace the blanket "configs/" exclusion with an 8-file whitelist so the seed JSONs ship inside the image; without agent-description.json the agent_type table is never seeded and the Agents page returns 404. - global-bot-token.json stays excluded on purpose: it is a runtime bot token ignored by .gitignore:19 (only global-bot-token.example.json is tracked), so whitelisting it would bake a real token into the image. config_store already tolerates its absence. Configuration is fully environment-driven, so the same code runs on both git hosts: TEMPLATES_REPO / TEMPLATES_REF / TEMPLATES_TARBALL_URL / TEMPLATES_SYNC_TIMEOUT, SERVER_BASE_URL / PUBLIC_DOMAIN / WEBHOOK_PATH / TRUSTED_HOSTS / GRAPE_ENGINE_HOME / GRAPE_CONFIG_RAW_BASE. Includes the review fixes: hosted detection restricted to platform signals, HOME fallback for environments without HOME, best-effort build-time template sync, and the bot-token file removed from both the ignore whitelist and the runtime seed list. | 11 days ago |
| feat(vcs): multi-platform decoupling with card-driven OAuth and repo credentials Baseline: arch-weekly-11 (13c6d0979). All conflicts resolved in favour of the baseline; weekly-10 capabilities are re-implemented on top of the arch layout instead of being restored verbatim, so the baseline behaviour is preserved. Capabilities delivered (design/use-case docs under docs/weekly-09/multi-platform-decouple): - OAuth platform configuration: login channels are driven by meta.oauth_providers_config (card JSON) plus oauth_<p>_client_id/secret, the login page renders the configured channels (gitcode/github/gitee/huawei) and degrades to the "unconfigured" hint instead of hiding providers. - Repository support is configurable and decoupled from OAuth: platform cards (configs/platforms/*.json + vcs_providers_config) declare host, dialect, API auth, webhook verification, clone auth, storage fields and resource mapping. Repository credentials live in repo_credentials (repo_key x cred_type, UNIQUE contract) and are resolved through repo_key_candidates / get_platform_card, never through login identities. - Onboarding a new platform is a card-only change: registry, webhook, verification token, resource adapter, credential family and bot identity are all derived from the card (UC65 acceptance lock, including the negative case "no card, no onboarding"). - Account system on grape_accounts only: user_accounts is a retired dead table (zero writes, 10 deprecated write helpers removed), identity binding goes through external_identities, and account ids are UUID (D105/D105b). - ITX/VCS related primary keys are UUID/TEXT: issue, session token, account FK, credential and event ids use uuid7 with explicit generation (no raw INSERT + lastrowid in uuid domains). - Provider-generic token resolution (D37/S57): call sites derive the provider from repo_key or the platform card; the arch-specific legacy symbols are declared per card (legacy_token_symbol) and resolved lazily, so no platform name is hard-coded in business paths. Baseline-preserving details worth reviewing: - build_app gains an optional default_response_class (default = baseline FastAPI behaviour) used only by the single-process entry for safe JSON serialisation (Issues #684/#818). - Verify-token / login-whitelist gates are card-derived while keeping the baseline status codes and the downstream config_store.verify_token call. - get_user_github_token_with_refresh is kept as an arch-native compatibility symbol (two baseline tests patch it) but delegates to the generic resolver and keeps the baseline PAT early-return semantics. - QA conclusion gate (#1739/#1963): baseline port is authoritative (blocked issues stage to pending_review); the stale src.user import in the baseline annotation path is repaired to the canonical module and the provider is derived from repo_key. - Tests: module paths adapted to the arch layout (rename table 4ebe33b7b..1938d6591), duplicate guard helpers collapsed to the baseline definition, and expectations updated only where the baseline deliberately changed behaviour (documented inline). Baseline sync notes (13c6d0979): the AtomCode engine (cards/backends/_BACKENDS entry), its CI job and the ACP safe-termination wrapper are taken from the baseline; our provider-derived token resolution in executor/agent and the pytest guard around engine termination are re-applied on top. Verification (isolated, one file per run, unshare + private tmpfs): - platform cards: test_platform_card_matrix 28P, test_s3_card_driven_resources 21P, test_platform_onboarding_acceptance 11P, test_platform_whitelist_ratchet 4P, test_s115_platform_gate_closure 16P, test_s120_agent_chain_credentials 6P - identity/accounts: test_d105_batch2_account_uuid_pk 7P, test_d105_uuid_pk_migration 4P, test_account_fk_user_id_text_migration 10P, test_schema_fk_type_invariant 4P, test_user_accounts_write_freeze_guard 2P, test_uc42_system_credentials 11P, test_uc42b_retirement 5P - provider-generic tokens: test_multi_platform_decouple_step1 9P, test_s73_family_closure 3P, test_login_provider 21P, test_repos_host_provider 7P, test_issue_372_round8_audit 13P (2 baseline pre-existing failures, unchanged), test_probe_github_hooks_404 3P (3 pre-existing, unchanged) - delivery/pipeline: test_issue_1739_qa_close_gate 52P, test_d29_comment_delivery_card_driven 8P, test_issue_1668 16P, test_issue_1770_a2a_dispatch_guard 17P+1XPASS, test_port_qa_gate_p1 7P, test_port_p2_acceptance 7P, test_result_post_policy 38P - engine: test_atomcode_runtime 39P, test_kill_stale_engine_no_tty 3P/2F (identical to baseline), test_issue_1811 6P - VCS API: test_git_repo_api 69P+1xfail; live end-to-end on a verification instance: issue create/comment/close and pull create/comment/close against gitcode and github repositories (7/7 each) Docs: docs/weekly-09/multi-platform-decouple/ (design + UC mapping), platform card schema in configs/platforms/SCHEMA.md. Scope of this MR (narrowed after review): - only the multi-platform decoupling work is included: platform cards and provider adapters, OAuth channel configuration, repository/credential decoupling, account system and UUID primary keys, provider-generic token resolution, plus the tests and design docs that back them - excluded on purpose: per-issue working docs (docs/issue-*), the IM engine design notes and its test suite, and the unreferenced IM adapter modules that arrived with an unrelated work stream. IM source modules that are referenced from observability/scheduler/chat wiring stay in the tree to avoid broken imports; a separate MR should move the whole IM stream out together with that wiring. Review-round fixes (squashed into this commit, PR #1231): Compliance (open-source review): - placeholder-ize internal usernames, repo names, hosts, the public IP and RDS/db capacity data across docs, source comments, dingtalk card template mockData, smoke scripts and test fixtures (example-user/example-org/example-repo, <public-host>, <worker-host>, <public-server-ip>); wecom card fallback URL is a non-routable placeholder; /root/grape doc paths become <repo-root> - configs/platforms/*.json kept as code-level default platform cards (data-driven feature core, no credentials) Guard realignment (deep review): - bump app.js cache version to 253; repoint s100/s96/s103 guard reads to the arch layout; fix the s122 src/ segment; drop now-legal domains modules from the legacy-shim blacklist; register the merged-baseline silent-except points; check-arch whitelist for the deferred kernel->domains lookups (R1), the baseline-inherited R5/R6 findings, plus canonicalizing the 4 new shim imports (same module objects) Routing fix found by the new coverage: - the im router was included after the SPA catch-all so GET /api/im/* never reached its handlers; it is now included before attach_frontend Milestone create due_on contract (three-platform live-fire finding): - GitCode/Gitee v5 upstreams require due_on on milestone create; the proxy now rejects a missing due_on with a readable 400 via the MILESTONE_DUE_ON_REQUIRED provider contract switch (no silent default date - a fabricated due date would pollute ordering/overdue reporting); GitHub stays optional; date-only coercion unchanged Verification (isolated, plus targeted regression): - platform cards: test_platform_card_matrix 28P, test_s3_card_driven 21P, test_platform_onboarding_acceptance 11P, test_platform_whitelist_ratchet 4P, test_s115 16P, test_s120 6P; identity/accounts: d105 family 25P+; token generalization: multi_platform_decouple_step1 9P, login_provider 21P - VCS API: test_git_repo_api 69P+1xfail; live end-to-end on a verification instance against gitcode and github repositories (issue create/comment/close and pull create/comment/close, 7/7 each) - review-round regression: 131 targeted tests green, scripts/check-arch.py PASS, sensitive-token sweep over the increment clean - due_on gate: tests/test_milestone_due_on_contract.py 6P; proxy contract and dialect backend suites 67P green Docs: docs/weekly-09/multi-platform-decouple/ (design + UC mapping), configs/platforms/SCHEMA.md (platform card contract). Architecture-guard round fixes (rounds 3/4, squashed into this commit): - release_pack.py: the if __name__ == "__main__" guard sat before tools_manifest_files() (script-mode run -> NameError in pack_tools); the guard now terminates the file and the duplicated trailing shebang/docstring dead block is removed; entry-order guard test added - frontend cache versions: the 16 changed page modules are bumped and a frozen-map ratchet test locks page-module ?v= values (bump must pair with a test update); app.js stays at 253 - i18n: account.js's 28 new hardcoded zh user-visible strings are keyed to app.account.* (31 new keys in zh/en app.json, sets verified equal); the || 'zh fallback' literals are dropped in dashboard/skills; a Chinese-literal ratchet freezes per-file counts (only-decrease) - credential tables renamed to the grape_t_ prefix (rule A6): repo_credentials -> grape_t_repo_credentials, system_credentials -> grape_t_system_credentials across DDL/SQL/ORM/tests/docs; both tables are introduced by this PR and no merged database carries the old names, so no rename migration is required; grape_t_credential_usage_log.credential_kind values are D100 domain labels and intentionally keep their unprefixed spelling - check-arch: the 13 new whitelist entries are registered at (file x import-target) precision (dict targets form; the string form stays legacy whole-rule for pre-existing entries), so new dependencies in the same file are no longer silently swallowed; reasons carry evidence pointers and a due Phase; the Phase 5 clearance criteria are written into docs (05-quality-infra.md); the configs/platforms exception is registered in SCHEMA.md - domain boundaries: the legacy-shim blacklist is restored to the baseline list (src.user / src.vc assertions pass on the arch tree) - milestone due_on dialect symmetry (three-platform live-fire follow up): MILESTONE_DUE_TIME_ONLY on github normalizes plain dates to T00:00:00Z (upstream 422 "not a valid date-time" otherwise); the update endpoint normalizes with the same dialect switches as create Verification: 284 targeted tests green across the guard, credential, proxy and IM suites; scripts/check-arch.py PASS; check-i18n-keys OK; node --check clean on the touched page modules. Known pre-existing reds on this line (stale guard paths / a script dropped by the port, verified identical before and after this commit): test_issue_1005, test_issue_1076, test_s118, test_uc39 (missing scripts/check_deploy_backfill.py), test_uc40 nested round9 path, test_migration_no_baseline_version_collision, s119 uc23. QA round-6 fixes (head 8be42d4c review, squashed into this commit): - conftest: the unguarded duplicate test-db deletion block is removed (it defeated the GRAPE_PYTEST_NESTED guard and re-triggered the D100 nested-run DB pollution path; the guarded import-time deletion stays) - check-arch C-1 verification: a precision guard test locks every dict-form whitelist entry to the exact set of actual kernel->domains / shim imports in that file (extra registration = stale, missing registration = new dependency fails immediately); string-form (whole-rule) entries are frozen to the pre-existing legacy set - check-destructive-ddl: coverage extended to scripts/migrations/*.py (QA M-2) with a sanctioned-channel concept - migration destructive DDL is reported as INFO (one-shot, constant-driven, reviewed per file) while db_setup rules stay unchanged; live run PASS - check-i18n-keys: module list now derives from locales/zh/*.json so every language pack is covered (QA M-3); all 19 modules validate OK - deploy_mysql_gate: database passwords travel via MYSQL_PWD env instead of -p argv (QA M-4; ps/history-visible); run_cmd gains an env pass-through and the gate tests now assert no password ever appears in argv and MYSQL_PWD is injected - migrations/002: the global_im_bot_config DROP is deferred (QA M-5) - bot_lease/feishu_async still hold lease-fallback reads against that table, so dropping it would cut the fallback chain; the report now states the deferral and db_setup DDL stays consistent with the readers Verification: 189 targeted tests green (3 pre-existing order/stale-path reds identical on the pre-change tree: s118 x2, s78 order-dependent); check-arch PASS; check-destructive-ddl PASS; check-i18n-keys all 19 modules OK; deploy_mysql_gate 20/20 with the new password assertions. Signed-off-by: xiaowu2119 <xiaowu2119@noreply.gitcode.com> | 11 days ago |
| feat(sync): land arch11-weekly-1102-zrr rework for four-process topology takeover Squash-lands the branch-side changes of arch11-weekly-1102-zrr (previously spread over commits 54b01c01/584ebd45/75e40561/9246a31d/1039ded3/6d0de4da/ 2f1f9bde/d55a704d/1b1854ff and several merge commits) into a single English Conventional Commits landing, per compliance review (Issue #3913 items 2-1/2-2). Content is unchanged from the reviewed PR head 2d0918bc9: - #3834 takeover cascade chain: backfill the takeover conclusion and keep the A2A chain alive; failed-terminal symmetry, original attribution fields, next-dispatchable validation, backfilled observability, plus real-HTTP link test cases - #3621 trigger_pipeline switch on issue create, with the pending-issue first-trigger path (stage=created -> vod via atomic CAS claim) and 409/400 idempotency guards - #3620 tko_ takeover token on git-credential with strict repo-scope check and takeover-session liveness revalidation - skills contract fixes: restore _validate_repo_param and document the repo owner/repo contract params - pending-issue trigger path no longer holds db_lock inside async code (sync critical section + asyncio.to_thread) - A2A dispatch by service mapping, v2 claim Request passthrough, and ratchet/snapshot refresh; takeover dispatch real-HTTP test updates - #3874 worker onboard review gaps: docs, CI gate, wheel platform coverage, pyyaml/model-gate resilience - 3-db cold-start bootstrap path (scripts/bootstrap_3db.py) and the deploy/README.md four-process wiring section - docs: grape-kit raw install URL fallback, openapi snapshot and i18n ratchet refresh, cross-domain read baseline refreshes | 5 hours ago |
| feat(trace): instrument GSB bus and httpx outbound calls (Issue #3570) - gsb provider dispatch: emit one span per bus call covering both local (in-process lib) and remote modes. Local-mode calls were completely invisible in traces, which is why a slow cross-domain request could not be attributed to a hop. Attributes: gsb.service, gsb.method, gsb.mode, gsb.caller; failures are marked ERROR by feature_span. - gsb client: annotate the same span with the resolved target instance, HTTP status, attempt index and transport error class, so failover can be read off the trace. - otel: optional HTTPXClientInstrumentor (new dependency in requirements.txt). Outbound calls in this stack go through httpx (bus client, LLM SDK); with only requests instrumented, traces jumped straight from the server span to the callee. - otel: request/response hooks rename outbound spans to "METHOD /masked/path" instead of a bare "GET"/"POST", add http.peer/server.address/server.port, http.elapsed_ms, http.retries, and mark 5xx ERROR. Path ids (uuid / long hex / numeric segments) collapse to {id} to keep span-name cardinality bounded. Request method is decoded when the client exposes it as bytes (otherwise the span name reads b'GET'). Verified on the beta pair: bus spans now carry gsb.mode=lib for in-process hops and gsb.instance/gsb.status for remote ones, and each remote hop has a nested opentelemetry.instrumentation.httpx child span with the peer address and status. | 3 days ago |
| fix(worker): point the start-worker template at the canonical engine entry #699 removed the legacy top-level shim packages, but the repo's own start-worker.sh template still exec'd python -m src.runtime.agent. Any device whose start script was generated from that template dies after a code upgrade with ModuleNotFoundError: No module named 'src.runtime' — the symptom reported as AI devspace devices being unable to attach. - start-worker.sh now execs src.domains.runtime.engine.agent, matching the module install-worker.sh already generates (WORKER_MODULE), so template and generated script no longer disagree - guard test pins the template, WORKER_MODULE and the worker package MANIFEST to the canonical entry src/runtime is deliberately not restored as a compatibility shim: tests/arch/test_domain_boundaries.py::test_legacy_dir_shims_removed and test_issue_2010_src_top_level_layout.py both forbid the package, and worker_package.MANIFEST excludes it — a repo-side shim would never ship to a device, so it would only make the guards red without fixing anything. Existing devices are fixed by re-running install-worker.sh, which rewrites start-worker.sh unconditionally (install-worker.sh:879). | 5 days ago |
| cleanup: remove old v2/ admin/ main.py webhook_handler.py event_processor.py prototype.html install_deps.py | 3 months ago |
| chore: #699 replace requirements*.txt with pyproject.toml [Coding Agent] Issue #699 Phase 0 Step 5: - Create pyproject.toml with [project] dependencies + [optional-dependencies] extras: mysql, obs, im, worker, dev, all, all-dev - Delete requirements.txt, requirements-worker.txt, requirements-dev.txt, requirements-local.txt - Update install-worker.sh/ps1: install worker deps from wheels by explicit package list (mirrors pyproject.toml [worker] extra) - Update worker_package.py: MANIFEST includes pyproject.toml, _pip_download_wheels uses WORKER_DEPS list, _requirements_hash reads pyproject.toml - Update release_pack.py: pack backend/tools include pyproject.toml instead of requirements files; generated INSTALL.md uses pip install -e '.[all]' - Update deploy/Dockerfile: COPY pyproject.toml + pip install -e '.[all]' - Update doctor.py, start.ps1, CI workflow, READMEs to use pip install -e . - Update tests: test_worker_package asserts pyproject.toml in package; test_issue_452 checks pyproject.toml deps; test_issue455 checks requires-python | 20 days ago |
| feat(#455): 0-to-1 onboarding hardening - env checks, explainable errors, fetch resilience M1: declare the Python floor, probe it at startup, warn when the public base URL is still a loopback address or OAuth credentials are missing, and make sure the SQLite schema exists on first run. M2: make hosted errors explainable - 502 responses carry the upstream context and a retry hint, repo ownership is validated before hosting (403 with a reason), and the frontend surfaces the error code. M3: retry git fetch/clone a bounded number of times with backoff and document the mirror/proxy options. Signed-off-by: liufei <liufei@noreply.gitcode.com> | 28 days ago |