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
deploying-to-harper-fabric: deploy from CI with OIDC, and go back by deployment_id #117
Agents in a Harper project learn how to deploy from harper-best-practices, which create-harper installs into every new project. Its deploying-to-harper-fabric rule is generated from the docs. rules.manifest.yaml sources it from:
fabric/cluster-creation-management.md, section "Connecting the Harper CLI to a Cluster".
Those sections describe deploys before 5.3, and so does the rule:
CI authentication. CI authenticates with HARPER_CLI_USERNAME and HARPER_CLI_PASSWORD, and the example uses admin/secret. Since Harper 5.3.0, a GitHub Actions run can deploy with no stored credential, through OIDC trusted publishing, as a role that can only deploy.
Rolling back. It says "Roll back by deploying an older commit" (harper deploy ref=<sha>). Since 5.3.0, each node keeps the releases a deploy replaced, and activating a deployment_id goes back to one with nothing to rebuild.
Restarts. It uses restart=true replicated=true everywhere. It says nothing about:
canary certification (5.4.0);
the certification field in the response;
waiting for a rolling deploy's job.
Staging and history. It says nothing about staging (activate=false) or list_deployments.
reference/v5/operations-api/operations.md, sections "Going back to a previous release", "Certifying a release in a canary worker" and add_oidc_trust;
learn/developers/deploying-from-ci.mdx, once it's rewritten around OIDC.
Alternatively, give CI its own generated rule (deploying-from-ci), so deploying-to-harper-fabric stays about a manual deploy.
Pin the new facts in must_cover so they survive regeneration: id-token: write, add_oidc_trust, deployment_id, certification and get_job. Also revisit the existing PAT anchors (fine-grained, Contents: Read-only, read:org, enc:v1:, refs/tags). They assume deploying by reference is the main path, and they will fail if the docs move that guidance.
Auto-sync has failed on every docs deploy since 2026-09-14 (#118, which consolidates #91–#116). The latest run (docs 2cfb813, run 37484111044) fails validate-generated, because regeneration drops facts from four other rules:
schema-design-tooling
automatic-apis
querying-rest-apis
v5-upgrade
Until that's fixed, no docs change reaches any rule. Either fix the sync first, or regenerate this rule locally with npm run generate -- --docs-path <docs>.
Part of HarperFast/create-harper#143.
Problem
Agents in a Harper project learn how to deploy from
harper-best-practices, which create-harper installs into every new project. Itsdeploying-to-harper-fabricrule is generated from the docs.rules.manifest.yamlsources it from:reference/v5/components/applications.md, section "Remote Management";fabric/cluster-creation-management.md, section "Connecting the Harper CLI to a Cluster".Those sections describe deploys before 5.3, and so does the rule:
HARPER_CLI_USERNAMEandHARPER_CLI_PASSWORD, and the example usesadmin/secret. Since Harper 5.3.0, a GitHub Actions run can deploy with no stored credential, through OIDC trusted publishing, as a role that can only deploy.harper deploy ref=<sha>). Since 5.3.0, each node keeps the releases a deploy replaced, and activating adeployment_idgoes back to one with nothing to rebuild.restart=true replicated=trueeverywhere. It says nothing about:certificationfield in the response;activate=false) orlist_deployments.The synthesized
creating-harper-appsrule ends with "Usenpm run deploy". It says nothing about the deploy workflow create-harper is about to scaffold (HarperFast/create-harper#144, HarperFast/create-harper#145).Proposal
Widen the deploy rule's sources, once the docs are fixed (Deploying from CI: lead with OIDC, and correct the deploy reference where it disagrees with Harper documentation#711). Add:
reference/v5/cli/authentication.md, section "Workload identity (OIDC)";reference/v5/operations-api/operations.md, sections "Going back to a previous release", "Certifying a release in a canary worker" andadd_oidc_trust;learn/developers/deploying-from-ci.mdx, once it's rewritten around OIDC.Alternatively, give CI its own generated rule (
deploying-from-ci), sodeploying-to-harper-fabricstays about a manual deploy.Pin the new facts in
must_coverso they survive regeneration:id-token: write,add_oidc_trust,deployment_id,certificationandget_job. Also revisit the existing PAT anchors (fine-grained,Contents: Read-only,read:org,enc:v1:,refs/tags). They assume deploying by reference is the main path, and they will fail if the docs move that guidance.Update
creating-harper-appsonce Deploy on merge tomainwith GitHub OIDC instead of a stored refresh token create-harper#144 and #145 land. It should cover:maindeploys;npm run deploy:setup-ciruns once;npm run deployis for a manual deploy.Regenerate, rebuild
AGENTS.md, and release.Blocked by
Auto-sync has failed on every docs deploy since 2026-09-14 (#118, which consolidates #91–#116). The latest run (docs
2cfb813, run 37484111044) failsvalidate-generated, because regeneration drops facts from four other rules:schema-design-toolingautomatic-apisquerying-rest-apisv5-upgradeUntil that's fixed, no docs change reaches any rule. Either fix the sync first, or regenerate this rule locally with
npm run generate -- --docs-path <docs>.Related
.envbehavior, env namespacing, verification and static file caching.Done when
In a project with these skills:
deployment_idinstead of redeploying an older commit.