From 7a1a238d1114f89e147322960a3a7fa425adcbb8 Mon Sep 17 00:00:00 2001 From: Tom Softreck Date: Thu, 3 Dec 2026 19:14:46 +0100 Subject: [PATCH] feat(ticket-004): add deployment.json for auto-update-pull --- .governance/manifest.json | 3 +- deployment.json | 154 +++++++++++++++++++++++++++++++++ project/ticket-004/README.md | 38 ++++++++ project/ticket-004/intent.json | 25 ++++++ 4 files changed, 219 insertions(+), 1 deletion(-) create mode 100644 deployment.json create mode 100644 project/ticket-004/README.md create mode 100644 project/ticket-004/intent.json diff --git a/.governance/manifest.json b/.governance/manifest.json index d2f044f..81888a9 100644 --- a/.governance/manifest.json +++ b/.governance/manifest.json @@ -86,7 +86,8 @@ "wellmanifest_governance.py", "worktree-guard.yaml", ".gitattributes", - ".github/workflows/new-project-branch-hygiene.yml" + ".github/workflows/new-project-branch-hygiene.yml", + "deployment.json" ] }, "infrastructure": { diff --git a/deployment.json b/deployment.json new file mode 100644 index 0000000..83c14fa --- /dev/null +++ b/deployment.json @@ -0,0 +1,154 @@ +{ + "$schema": "https://wellmanifest.dev/schemas/deployment/v1", + "schema": "wellmanifest.deployment/v1", + "id": "semcod-code2graph", + "version": "0.1.0", + "description": "Semantic code graph and topology models for static analysis with Validator-attested auto-update.", + "environment": "production", + "source": { + "ref": "code2graph-main", + "repository": "https://github.com/semcod/code2graph", + "revision": "9bbc9da7a147294906b1734719df47f673a2370b", + "artifactDigest": "sha256:0000000000000000000000000000000000000000000000000000000000000000", + "entrypoint": "code2graph/__init__.py" + }, + "target": { + "bindingRef": "fleet:code2graph-nvidia-212", + "bindingDigest": "sha256:0000000000000000000000000000000000000000000000000000000000000000" + }, + "strategy": { + "type": "atomic", + "releaseMode": "immutable-release", + "minimumHealthySeconds": 30, + "maxUnavailablePercent": 0, + "onFailure": "rollback" + }, + "preflight": { + "requiredChecks": [ + "binding-current", + "source-exact", + "validator-receipt" + ], + "digitalTwin": { + "required": false, + "networkAccess": "none", + "productionCredentials": "forbidden", + "writableScope": "isolated-runtime-only" + }, + "dryRunRequired": true, + "planHashAlgorithm": "sha256", + "failClosed": true + }, + "authority": { + "mode": "external-grant", + "issuerRef": "ifuri-validator-agent", + "bindExactPlanHash": true, + "invalidateOnInputChange": true, + "singleUse": true + }, + "apply": { + "executor": { + "adapter": "systemd-user-reconciler", + "capabilities": [ + "health-verify", + "release-rollback" + ] + }, + "idempotencyRequired": true, + "timeoutSeconds": 600, + "maxAttempts": 2 + }, + "verify": { + "activation": [ + { + "id": "active-revision", + "endpointRef": "binding:active-runtime", + "assertion": "active-source-revision-match" + }, + { + "id": "active-entrypoint", + "endpointRef": "binding:active-runtime", + "assertion": "active-entrypoint-match" + }, + { + "id": "code2graph-health-smoke", + "endpointRef": "binding:origin", + "assertion": "contract-smoke" + } + ], + "origin": [ + { + "id": "origin-health", + "endpointRef": "binding:origin", + "assertion": "healthy" + } + ], + "public": [ + { + "id": "lan-https-health", + "endpointRef": "binding:public", + "assertion": "healthy" + } + ], + "content": { + "mode": "sha256", + "entrypointFromSource": true, + "requireSourceDigestMatch": true + }, + "httpStatusOnlySufficient": false, + "timeoutSeconds": 120, + "onFailure": "applied_unverified" + }, + "rollback": { + "contentMode": "activate-previous-release", + "automatic": true, + "triggers": [ + "apply_failed", + "origin_verify_failed", + "public_verify_failed" + ], + "verifyAfter": true, + "maxAttempts": 2, + "onFailure": "needs_human", + "dnsBoundary": "human-only" + }, + "secrets": { + "resolution": "executor-vault", + "valuesForbidden": true, + "references": [] + }, + "receipt": { + "schema": "wellmanifest.deployment-receipt/v1", + "required": true, + "inputHashRequired": true, + "secretsRedacted": true, + "allowedOutcomes": [ + "verified", + "denied", + "preflight_failed", + "applied_unverified", + "rolled_back", + "rollback_failed", + "needs_human" + ] + }, + "automation": { + "mode": "auto-update-pull", + "trigger": "validator-merge-receipt", + "scheduleSeconds": 300, + "requireValidatorAttestation": true, + "driftPolicy": "reconcile", + "fleetTargets": [ + { + "nodeRef": "nvidia-212", + "runtime": "systemd", + "bindingRef": "binding:code2graph" + } + ], + "guards": { + "maxLoadRatio": 2.0, + "minFreeDiskBytes": 5368709120, + "rollbackOnHealthFail": true + } + } +} diff --git a/project/ticket-004/README.md b/project/ticket-004/README.md new file mode 100644 index 0000000..e9de823 --- /dev/null +++ b/project/ticket-004/README.md @@ -0,0 +1,38 @@ +# Ticket 004: Add deployment.json for auto-update-pull + +- **ID**: ticket-004 +- **Owner**: unresolved:human +- **Status**: IN_PROGRESS +- **Workflow state**: EDIT +- **Created**: 2026-12-03 + +## Goal and scope + +To be completed from human-owned input. + +## Acceptance criteria + +- [ ] AC-01: Scope is approved by a human owner. + +## Tracking boundary + +This directory contains the minimal reviewed intent. Optional participant prose +and raw command logs are not required delivery output. + + +## Ticket Radar + +Initial planned-scope estimate; advisory only, not execution or merge approval. + +| Measure | Initial assessment | +| --- | --- | +| Impact score | 56/100 | +| Complexity | M | +| Estimated effort | 52 min | +| Planning budget | 30 min | +| Split recommended | yes | + +Diagnostics: RADAR-ACCEPTANCE-MISSING, RADAR-BUDGET-EXCEEDED. + + +- Added `deployment.json` (`wellmanifest.deployment/v1`) with `automation.mode = "auto-update-pull"`. diff --git a/project/ticket-004/intent.json b/project/ticket-004/intent.json new file mode 100644 index 0000000..65da29f --- /dev/null +++ b/project/ticket-004/intent.json @@ -0,0 +1,25 @@ +{ + "schema": "new-project.intent/v3", + "ticket": "ticket-004", + "summary": "Add deployment.json for auto-update-pull", + "workstream": "governance", + "classification": { + "kind": "SERVICE", + "priority": "P2", + "origin": "health" + }, + "allowedPaths": [ + "project/ticket-004/**", + "TODO.md", + "project/TICKETS.md", + ".governance/manifest.json", + "deployment.json" + ], + "forbiddenPaths": [ + "project/ticket-*/user-*.md" + ], + "stacks": [], + "dependsOn": [], + "conflictsWith": [], + "integrationTicket": null +}