You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
service-automation: a catalog descriptor saved active through PUT /api/v1/meta/connector/:name never gets the inert-connector audit warning until a later publish or restart #33839
Observed at objectstack main @ a557fa3 (examples/app-showcase scratch copy, os dev, sqlite file DB, admin session), beside integration-system.connector-descriptor-audit.
Reproduction (reproduced twice, qa_erp_rt and qa_erp_rt3):
Boot the stock showcase; confirm the boot log has no "declare actions but are not registered" line.
PUT /api/v1/meta/connector/qa_erp_rt body {"name":"qa_erp_rt","label":"QA ERP runtime","type":"saas","enabled":true,"actions":[{"key":"get_y","label":"Get Y"}]} → 200 "Saved connector 'qa_erp_rt' (env-wide, state=active)".
Wait (8 s). Expected: the [Automation] N declarative connector(s) declare actions but are not registered … : qa_erp_rt … warning, as a boot or a publish raises it. Actual: no warning line at all; the log shows only [Registry] Registered connector: qa_erp_rt.
Control: PUT /api/v1/meta/connector/qa_erp_rt2?mode=draft (same shape) then POST /api/v1/meta/connector/qa_erp_rt2/publish → the warning appears within seconds and names BOTH qa_erp_rt and qa_erp_rt2 — so the first descriptor was inert and unreported the whole time.
Corroboration that the save path does reconcile: PUT /api/v1/meta/connector/qa_inst_rt with provider 'rest' (active, no draft) materializes the instance (it appears ready on GET /api/v1/automation/connectors) — only the audit is skipped.
Mechanism: packages/services/service-automation/src/plugin.ts — queueConnectorMutationReconcile (the #28002onMetadataMutation path that "also covers a direct active save, which raises no reload anywhere") runs reconcileDeclaredConnectors only; auditDeclaredConnectors is wired on kernel:ready and metadata:reloaded alone (plugin.ts ~2830 and ~2865), so the direct-save door skips it.
Expected: the inert-descriptor audit runs wherever the connector reconcile runs (PD#10: declared ≠ delivered surfaces loudly), or the item/ADR states that only a publish re-audits.
Not a regression since 18.4.0: the save-path reconcile predates tag 181ad7d (git merge-base check).
QA-source: #33829 · integration-system.connector-descriptor-audit · observed beside the clauses
From sweep #33761. A connector descriptor saved active through PUT /api/v1/meta/connector/:name misses the inert-connector audit warning until a later event. p3. A5.
Claim: server area-lease mode (#33751 §2), area S6 lease A5, dispatched by seat domain:server#5 area thread · executed by an os-dev sub-agent (mode:subagent) · posted at 2026-11-15T13:48Z
Session: session_01QsR2jUZKdq3PK2Sab53cT3
Account: zhuangjianguo
Branch: claude/area-A5b-33839
Worktree: objectstack-issue-33839
Domain: domain:server
Seat: domain:server#5
File surface: packages/services/service-automation/src/plugin.ts (queueConnectorMutationReconcile, auditDeclaredConnectors wiring), its tests, a changeset (stop on breach; explain in the report)
Container & model: S, mode:subagent, model: default (no path-derived mandate; dispatch-gates --tier at 1e65a389), effort: medium
Clause-②: no
Metadata-protocol: none
Responsibility: objectstack service-automation: a connector descriptor saved active through PUT /api/v1/meta/connector/:name skips the inert-connector audit warning | the audit on kernel:ready / metadata:reloaded | admins saving a connector descriptor directly; rare
Thread-read: 6894716377
Premise: holds
Serial constraints cleared: none in flight on plugin.ts (PR #33890 edits engine.ts only; #33894 edits connector-pull.ts)
Pre-claim check (binding, area-rules.md) · recorded for the claim 6895282893 · 2026-11-15T13:54Z
Pre-claim lane: server because packages/services/service-automation/src/plugin.ts (the save-path reconcile and the audit wiring)
Pre-claim deps: none (no Blocked-by; no p1/p2 in flight on plugin.ts)
Prior rulings read: git grep of docs/adr/** for auditDeclaredConnectors / "declare actions but are not registered" / inert connector / connector audit: 0 hits. The code (plugin.ts ~l.2844, ~l.2880, ~l.6308) states no rule that only a publish re-audits. The change adds a log warning on the save path, so no door answer moves. Tests pinning the opposite: the dev measures before editing.
{
"issue": 33839,
"status": "done",
"branch": "claude/area-A5b-33839",
"pr": "https://github.com/objectstack-ai/objectstack/pull/34015",
"pr_number": 34015,
"head_sha": "c931a722542475af8cbee00b9116d2c32ea23334",
"session": "session_01QsR2jUZKdq3PK2Sab53cT3",
"premise_still_valid": true,
"summary": "PM hypotheses measured as stated: queueConnectorMutationReconcile (the onMetadataMutation path, the only signal a direct active PUT /api/v1/meta/connector/:name raises) ran reconcileDeclaredConnectors only, and auditDeclaredConnectors was wired on kernel:ready and metadata:reloaded alone. No test pinned the opposite: git grep of the warning text and the audit name outside plugin.ts hits only the docs/qa checklist item, the spec liveness note and the existing boot pin. The mutation path now runs auditDeclaredConnectors after its reconcile, on the same reconcile queue. The audit now warns only when the inert set (sorted names) differs from the set the previous audit found, and it still names the whole set. A publish raises both signals and still prints one warning. Enabled->disabled->enabled warns again. The audit also returns early once the plugin is destroyed. Read cost: one declaration read per coalesced connector mutation, the same read the reload audit makes. The other reconcile callers (credential and connection doors, the boot-registered pass) do not change the declaration, so they were left alone. That is stated in the PR. Assignee untouched.",
"tests": "New top-level describe '[#33839] the audit on the metadata save door' in connector-descriptor-audit.test.ts, running on the real write path (ObjectKernel + ObjectQLPlugin protocol + driver-sql file); it waits for the queued audits to finish via a prototype spy: 4 cases (direct save warns; a later publish prints exactly one more warning naming both; re-save with the set unchanged is silent, enabled:false is silent, re-enable warns again; a draft save runs no audit). Final head c931a722, under the lock: service-automation typecheck exit 0; test Test Files 282 passed (282), Tests 3986 passed (3986), VERDICT command-exit 0. Pre-merge head 4c5b66a4: the file alone 14/14; direct dependents connector-rest 57/57, connector-slack 10/10, connector-openapi 111/111, connector-mcp 119/119, trigger-schedule 256/256, trigger-record-change 122/122. Ablations on the committed fix via scripts/ablation-replace.mjs (vitest resolves ./plugin.js from src, no dist leg): A, audit call removed from the mutation path: 3 failed | 11 passed, 'expected 0 to be greater than or equal to 1'. B, dedupe removed: 2 failed | 12 passed, 'expected [ …(3) ] to have a length of 2 but got 3' / '… length of 1 but got 2'. Each was restored, blob == HEAD cb46c0f084ee and git diff HEAD empty.",
"gates": "dispatch-gates --commands --repo objectstack-ai/objectstack at c931a722: 71 derived; 69 run locally, each exit 0 recorded (dts-closure, lean-entry-closure and sourcemap-no-sources-content exited 3 NOT MEASURED on a first pass before the build, then exited 0 on the final-head rerun). --ran: '71 derived, 69 run, 0 NOT-MEASURED, 2 UNRUN' (check:type-check-debt, check:dual-build-cjs-loads, both declared to CI). PR body gates: check-changeset-no-major exit 0, check-adr-0087-registration exit 0, check-closing-keyword-parity exit 0, check-partof-closing-keyword exit 0. eslint --no-inline-config on the two edited source files exit 0. pnpm --filter service-automation typecheck exit 0. PR check-runs at c931a722 when the report was written: 23 total, 1 success, 5 skipped, 17 in_progress. CI is not yet converged; that is an honest in_progress.",
"dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
"mcp_calls": "0",
"api_writes": "2 — fleet-write relay pr_create (objectstack-ai/objectstack#34015), and post-stamped issue comment on #33839 (this report). git push is not counted.",
"line_budget": "184 changed lines (+172 / -12) across 3 files, under the 3000 human-merge threshold",
"files_changed": [
"packages/services/service-automation/src/plugin.ts",
"packages/services/service-automation/src/connector-descriptor-audit.test.ts",
".changeset/33839-connector-audit-save-door.md"
],
"deviations": [
"Conflict between dev-common and os-dev.md, named rather than chosen silently. dev-common asks for repo-wide `pnpm lint` and tests of every direct dependent. os-dev.md says repo-wide lint is CI's and that import sites are not owed tests when the public surface is byte-unchanged. Ran eslint on the edited files and 6 of 13 direct dependents (the connectors and triggers). cli, dogfood, verify, client, plugin-approvals and the two examples are declared to CI. Only private methods and log output change.",
"Log-behaviour change inside the card's sanctioned dedupe option: before, every metadata:reloaded printed the warning again; now it prints only when the inert set changes. Stated in the changeset and the PR acceptance notes.",
"About 75 minutes were spent in the os-verify-lock queue before the first build. Observation, not measured to a cause: an OS_VERIFY_LOCK_SLOT call alternately printed 'resumed slot' and 'queued: 2 ahead of you' on consecutive calls with the same slot name."
],
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: none · noted, not filed — docs/qa/platform-checklist/areas/integration-system.json item integration-system.connector-descriptor-audit: its automated.ref says no pin drives a non-boot path. connector-descriptor-audit.test.ts now drives the mutation path (save and publish), though still not a bare metadata:reloaded. The file is outside this claim's surface; recorded in PR Acceptance notes."
]
}
Activity
objectstack-fleet commentedon Nov 15, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Path: none
Triage: first touch →
domain:server·lease:A5· p3 · 2026-11-15T13:01Z⛔ Not a claim.
From sweep #33761. A connector descriptor saved active through
PUT /api/v1/meta/connector/:namemisses the inert-connector audit warning until a later event. p3. A5.objectstack-fleet commentedon Nov 15, 2026
domain:server#5 · zhuangjianguo · session_01QsR2jUZKdq3PK2Sab53cT3
Claim: server area-lease mode (#33751 §2), area S6 lease A5, dispatched by seat
domain:server#5area thread · executed by anos-devsub-agent (mode:subagent) · posted at 2026-11-15T13:48ZSession:
session_01QsR2jUZKdq3PK2Sab53cT3Account:
zhuangjianguoBranch:
claude/area-A5b-33839Worktree:
objectstack-issue-33839Domain:
domain:serverSeat:
domain:server#5File surface:
packages/services/service-automation/src/plugin.ts(queueConnectorMutationReconcile,auditDeclaredConnectorswiring), its tests, a changeset (stop on breach; explain in the report)Container & model:
S,mode:subagent,model: default (no path-derived mandate; dispatch-gates --tier at 1e65a389),effort: mediumClause-②: no
Metadata-protocol: none
Responsibility:
objectstack service-automation: a connector descriptor saved active through PUT /api/v1/meta/connector/:name skips the inert-connector audit warning | the audit on kernel:ready / metadata:reloaded | admins saving a connector descriptor directly; rareThread-read: 6894716377
Premise: holds
Serial constraints cleared: none in flight on plugin.ts (PR #33890 edits engine.ts only; #33894 edits connector-pull.ts)
Generated by Claude Code
objectstack-fleet commentedon Nov 15, 2026
domain:server#5 · zhuangjianguo · session_01QsR2jUZKdq3PK2Sab53cT3
Pre-claim check (binding, area-rules.md) · recorded for the claim 6895282893 · 2026-11-15T13:54Z
Pre-claim lane: server because
packages/services/service-automation/src/plugin.ts(the save-path reconcile and the audit wiring)Pre-claim deps: none (no Blocked-by; no p1/p2 in flight on plugin.ts)
Prior rulings read:
git grepof docs/adr/** for auditDeclaredConnectors / "declare actions but are not registered" / inert connector / connector audit: 0 hits. The code (plugin.ts ~l.2844, ~l.2880, ~l.6308) states no rule that only a publish re-audits. The change adds a log warning on the save path, so no door answer moves. Tests pinning the opposite: the dev measures before editing.Result: pass. Dispatched.
Generated by Claude Code
objectstack-fleet commentedon Nov 15, 2026
domain:server#5 · zhuangjianguo · session_01QsR2jUZKdq3PK2Sab53cT3
os-dev-report
{ "issue": 33839, "status": "done", "branch": "claude/area-A5b-33839", "pr": "https://github.com/objectstack-ai/objectstack/pull/34015", "pr_number": 34015, "head_sha": "c931a722542475af8cbee00b9116d2c32ea23334", "session": "session_01QsR2jUZKdq3PK2Sab53cT3", "premise_still_valid": true, "summary": "PM hypotheses measured as stated: queueConnectorMutationReconcile (the onMetadataMutation path, the only signal a direct active PUT /api/v1/meta/connector/:name raises) ran reconcileDeclaredConnectors only, and auditDeclaredConnectors was wired on kernel:ready and metadata:reloaded alone. No test pinned the opposite: git grep of the warning text and the audit name outside plugin.ts hits only the docs/qa checklist item, the spec liveness note and the existing boot pin. The mutation path now runs auditDeclaredConnectors after its reconcile, on the same reconcile queue. The audit now warns only when the inert set (sorted names) differs from the set the previous audit found, and it still names the whole set. A publish raises both signals and still prints one warning. Enabled->disabled->enabled warns again. The audit also returns early once the plugin is destroyed. Read cost: one declaration read per coalesced connector mutation, the same read the reload audit makes. The other reconcile callers (credential and connection doors, the boot-registered pass) do not change the declaration, so they were left alone. That is stated in the PR. Assignee untouched.", "tests": "New top-level describe '[#33839] the audit on the metadata save door' in connector-descriptor-audit.test.ts, running on the real write path (ObjectKernel + ObjectQLPlugin protocol + driver-sql file); it waits for the queued audits to finish via a prototype spy: 4 cases (direct save warns; a later publish prints exactly one more warning naming both; re-save with the set unchanged is silent, enabled:false is silent, re-enable warns again; a draft save runs no audit). Final head c931a722, under the lock: service-automation typecheck exit 0; test Test Files 282 passed (282), Tests 3986 passed (3986), VERDICT command-exit 0. Pre-merge head 4c5b66a4: the file alone 14/14; direct dependents connector-rest 57/57, connector-slack 10/10, connector-openapi 111/111, connector-mcp 119/119, trigger-schedule 256/256, trigger-record-change 122/122. Ablations on the committed fix via scripts/ablation-replace.mjs (vitest resolves ./plugin.js from src, no dist leg): A, audit call removed from the mutation path: 3 failed | 11 passed, 'expected 0 to be greater than or equal to 1'. B, dedupe removed: 2 failed | 12 passed, 'expected [ …(3) ] to have a length of 2 but got 3' / '… length of 1 but got 2'. Each was restored, blob == HEAD cb46c0f084ee and git diff HEAD empty.", "gates": "dispatch-gates --commands --repo objectstack-ai/objectstack at c931a722: 71 derived; 69 run locally, each exit 0 recorded (dts-closure, lean-entry-closure and sourcemap-no-sources-content exited 3 NOT MEASURED on a first pass before the build, then exited 0 on the final-head rerun). --ran: '71 derived, 69 run, 0 NOT-MEASURED, 2 UNRUN' (check:type-check-debt, check:dual-build-cjs-loads, both declared to CI). PR body gates: check-changeset-no-major exit 0, check-adr-0087-registration exit 0, check-closing-keyword-parity exit 0, check-partof-closing-keyword exit 0. eslint --no-inline-config on the two edited source files exit 0. pnpm --filter service-automation typecheck exit 0. PR check-runs at c931a722 when the report was written: 23 total, 1 success, 5 skipped, 17 in_progress. CI is not yet converged; that is an honest in_progress.", "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm", "mcp_calls": "0", "api_writes": "2 — fleet-write relay pr_create (objectstack-ai/objectstack#34015), and post-stamped issue comment on #33839 (this report). git push is not counted.", "line_budget": "184 changed lines (+172 / -12) across 3 files, under the 3000 human-merge threshold", "files_changed": [ "packages/services/service-automation/src/plugin.ts", "packages/services/service-automation/src/connector-descriptor-audit.test.ts", ".changeset/33839-connector-audit-save-door.md" ], "deviations": [ "Conflict between dev-common and os-dev.md, named rather than chosen silently. dev-common asks for repo-wide `pnpm lint` and tests of every direct dependent. os-dev.md says repo-wide lint is CI's and that import sites are not owed tests when the public surface is byte-unchanged. Ran eslint on the edited files and 6 of 13 direct dependents (the connectors and triggers). cli, dogfood, verify, client, plugin-approvals and the two examples are declared to CI. Only private methods and log output change.", "Log-behaviour change inside the card's sanctioned dedupe option: before, every metadata:reloaded printed the warning again; now it prints only when the inert set changes. Stated in the changeset and the PR acceptance notes.", "About 75 minutes were spent in the os-verify-lock queue before the first build. Observation, not measured to a cause: an OS_VERIFY_LOCK_SLOT call alternately printed 'resumed slot' and 'queued: 2 ahead of you' on consecutive calls with the same slot name." ], "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "carrier: none · noted, not filed — docs/qa/platform-checklist/areas/integration-system.json item integration-system.connector-descriptor-audit: its automated.ref says no pin drives a non-boot path. connector-descriptor-audit.test.ts now drives the mutation path (save and publish), though still not a bare metadata:reloaded. The file is outside this claim's surface; recorded in PR Acceptance notes." ] }fix(service-automation): audit inert connector descriptors on the met…