Repository navigation
feat(deploy-to-cloud-engine): name apps with the engine-operator's setApp - #481
Merged
Merged
Conversation
…tApp The engine-operator now keeps a record of each app (its canisters and labels, main canister, name, address and icon) and checks who writes it. Step 2 finds the operator with getEngineOperatorBySubnet, reads getApps, and writes the whole record with setApp; setSuite groups apps. The __META_* variables stay as the path for engine-operators without setApp, and newer operators still import them. M6 (ICP MCP route), the derivation-origin notes and Verify follow. Pitfall 29 covers a partial setApp record. The naming evals expect setApp, with a new adversarial case for adding one canister. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Skill Validation ReportValidating skill: /home/runner/work/icskills/icskills/skills/deploy-to-cloud-engineStructure
Frontmatter
Tokens
Markdown
Tokens
Content Analysis
Contamination Analysis
Result: 2 warnings Project Checks |
pietrodimarco-dfinity
enabled auto-merge (squash)
November 24, 2026 08:34
There was a problem hiding this comment.
🟡 Changes recommended
The evaluation expects an exact state-preserving setApp call without essential inputs, risking penalties for correct clarification requests and rewards for invented state.
2 open issues
What changed in this PR
Updates the cloud-engine deployment skill to name and group apps through engine-operator records, replacing environment-variable metadata as the primary approach.
Changes:
- Documents
getApps, full-recordsetAppupdates, and suite grouping withsetSuite. - Updates CLI and ICP MCP guidance while retaining the
__META_*fallback for older operators. - Revises naming evaluations and adds an adversarial case for preserving an app’s existing record when adding a canister.
| File | Description |
|---|---|
skills/deploy-to-cloud-engine/SKILL.md |
Documents record-based app management, legacy fallback, verification, and replacement pitfalls. |
evaluations/deploy-to-cloud-engine.json |
Updates naming and icon expectations and adds a record-preservation case. |
Review effort: Balanced
…rators Pitfalls 6 to 9 now describe the setApp record first and the __META_* variables as the older path, and say that an app written with setApp ignores its canisters' variables. The icon rules match the console: a relative icon resolves against the app's address, or the main canister's own address when there is none. The add-a-canister eval accepts asking for the operator id and the getApps output before the final call. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
raymondk
approved these changes
Nov 24, 2026
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.
Why
Cloud engines (OpenCloud v0.30.18, rolling out to prod engines now) keep a record of each app in the engine-operator: which canisters form it and their labels, its main canister, its name, its address and its icon. The console shows apps from these records, and the operator checks who writes them. Until now the console grouped canisters from
__META_*canister environment variables that any controller can set, so it compared controllers before believing them, and real multi-canister apps failed that check.The skill still told agents to name an app with those variables. They keep working, since the operator imports them, but an import only records an app at once when its canisters have the same controllers; otherwise it waits for the engine's owner. Writing the record directly with
setAppavoids that, and lets an agent group apps into a suite.What changes
getEngineOperatorBySubneton the engine registry;getApps, and keep what the owner set in the console;setApp(key, name, every canister with its label, main canister, address, icon), with its rules: a stable key, a full replace, who may write, the limits;setSuite.__META_*variables stay as a subsection, for an operator withoutsetApp, with a note that newer operators still import them.setAppthroughcanister_update_callon the operator; the variables remain for configuration and older operators.setApponly what changed clears the rest.setAppignores its canisters' variables. The icon rules match the console: a relative icon resolves against the app's address, or the main canister's own address when there is none.setApp, and a new adversarial case adds one canister to an app.setAppbeside__META_*(1,022 characters).The engine-operator's own
getApiDocdescribes the same calls.Checks
skill-validator check skills/deploy-to-cloud-engine --skip links(v1.5.1, as CI pins) shows only the body-size warningsmainhas too.node scripts/check-project.jspasses.getApps,setApp(rename, add a canister, main canister, address, icon),setSuite, and the import of__META_*variables.getEngineOperatorBySubnetcommand was run as written against mainnet with icp-cli 1.3.0. The operator calls use-n ic, because-e icneeds a project manifest.🤖 Generated with Claude Code