@nullplatform/mcp 0.1.2 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/i18n.js +28 -0
- package/dist/np/context.js +39 -28
- package/dist/np/journey.js +43 -8
- package/dist/surfaces/developer.js +3 -1
- package/dist/tool-names.js +2 -0
- package/dist/tools/builds.js +15 -5
- package/dist/tools/create-release.js +1 -1
- package/dist/tools/deploy.js +1 -1
- package/dist/tools/deployments.js +81 -0
- package/dist/tools/find-apps.js +1 -1
- package/dist/tools/index.js +4 -0
- package/dist/tools/logs.js +1 -1
- package/dist/tools/params.js +10 -5
- package/dist/tools/playbook.js +2 -2
- package/dist/tools/releases.js +59 -0
- package/dist/tools/shared.js +13 -0
- package/dist/tools/status.js +2 -2
- package/dist/tools/traffic.js +2 -2
- package/dist/ui.js +3 -0
- package/package.json +1 -1
- package/skills/configuring-safely/SKILL.md +50 -0
- package/skills/deploying-safely/SKILL.md +6 -3
- package/skills/incident-response/SKILL.md +4 -1
- package/skills/managing-environments/SKILL.md +53 -0
- package/skills/platform-conventions/SKILL.md +19 -9
- package/skills/promoting-across-environments/SKILL.md +51 -0
- package/skills/tracing-a-change/SKILL.md +30 -0
- package/skills/understand-a-service/SKILL.md +50 -0
- package/skills/working-from-a-ticket/SKILL.md +47 -0
- package/widgets-dist/builds.html +866 -0
- package/widgets-dist/create-app.html +51 -14
- package/widgets-dist/deployments.html +868 -0
- package/widgets-dist/find-apps.html +64 -27
- package/widgets-dist/logs.html +53 -16
- package/widgets-dist/manifest.json +9 -6
- package/widgets-dist/metrics.html +52 -15
- package/widgets-dist/np-panel.html +54 -17
- package/widgets-dist/params.html +52 -15
- package/widgets-dist/releases.html +868 -0
package/dist/ui.js
CHANGED
|
@@ -19,6 +19,9 @@ export const WIDGETS = {
|
|
|
19
19
|
logs: "Logs",
|
|
20
20
|
"find-apps": "Applications",
|
|
21
21
|
metrics: "Metrics",
|
|
22
|
+
builds: "Builds",
|
|
23
|
+
releases: "Releases",
|
|
24
|
+
deployments: "Deployments",
|
|
22
25
|
};
|
|
23
26
|
/** Did this session's client negotiate the MCP Apps extension? (Knowable after initialize.) */
|
|
24
27
|
export function uiNegotiated(server) {
|
package/package.json
CHANGED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: configuring-safely
|
|
3
|
+
description: Use when setting, changing, or rotating an application's parameters or secrets (env vars / files) on nullplatform — what is safe, what only takes effect on the next deploy, and how to rotate without downtime.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Configuring safely on nullplatform
|
|
7
|
+
|
|
8
|
+
A parameter change is **inert until you redeploy**. Setting it is half the job; the value
|
|
9
|
+
reaches running instances only when each scope that uses it deploys again. Secret values are
|
|
10
|
+
encrypted and shown masked — but they are versioned, not write-once.
|
|
11
|
+
|
|
12
|
+
## What a parameter is
|
|
13
|
+
|
|
14
|
+
- An environment variable or a file (`type:"ENVIRONMENT"|"FILE"`), defined on the application
|
|
15
|
+
and resolved per scope at deploy time. Mark credentials `secret:true`.
|
|
16
|
+
- `application_parameter_create` is an upsert and convergent: re-running with the same name
|
|
17
|
+
changes the value (it reports created vs updated) and never duplicates. Each change is kept
|
|
18
|
+
as a new version platform-side (history lives in the dashboard).
|
|
19
|
+
- Secret values are masked in `application_parameter_list` and in tool output. Revealing the
|
|
20
|
+
real value needs the `parameter:read-secrets` permission (often itself approval-gated) and is
|
|
21
|
+
done in the dashboard — this integration never prints a secret back.
|
|
22
|
+
|
|
23
|
+
## Setting a value
|
|
24
|
+
|
|
25
|
+
1. Treat the repo as the source of truth for what the value should be — a local `.env` or config
|
|
26
|
+
file is the usual reference. Never paste a secret's value into chat, a commit, or a log.
|
|
27
|
+
2. `application_parameter_create` writes the **application-level** value. Per-scope and
|
|
28
|
+
per-dimension overrides (a different value in production) are managed in the dashboard. So if
|
|
29
|
+
a value seems not to take effect, a more specific override may be shadowing it — the effective
|
|
30
|
+
value is the most specific: scope override → dimension match → application default.
|
|
31
|
+
|
|
32
|
+
## Making it live (the step that's easy to forget)
|
|
33
|
+
|
|
34
|
+
3. Nothing changes until each scope redeploys. List the scopes with `application_get` and
|
|
35
|
+
redeploy every one that should pick the value up — metric-gated, per `deploying-safely`.
|
|
36
|
+
Reporting "parameter updated" without the pending redeploy is misleading.
|
|
37
|
+
|
|
38
|
+
## Rotating a secret
|
|
39
|
+
|
|
40
|
+
4. There is no in-place rotate. Set the new value (`application_parameter_create`, same name) →
|
|
41
|
+
redeploy **every** scope that uses it → verify each is healthy → only then revoke the old
|
|
42
|
+
credential upstream. Order matters: a scope left un-redeployed is still serving the old value,
|
|
43
|
+
and revoking it first breaks that scope.
|
|
44
|
+
|
|
45
|
+
## Gotchas & don'ts
|
|
46
|
+
|
|
47
|
+
- A parameter's `type`, `name`, and `secret` flag are fixed once created. To change those, create
|
|
48
|
+
a new parameter and remove the old one (then redeploy).
|
|
49
|
+
- Don't echo a secret value anywhere. Don't treat a value as live before the redeploy. Don't
|
|
50
|
+
assume the application-level value is what production serves — check for a scope override first.
|
|
@@ -16,6 +16,8 @@ over in steps you control, and nothing is destroyed until you finalize. Rollback
|
|
|
16
16
|
rejects overlapping deploys).
|
|
17
17
|
- What will ship: if the latest successful build is newer than the latest release,
|
|
18
18
|
`application_deployment_create` will cut the release automatically — say so before doing it.
|
|
19
|
+
Running in the repo, read `git log` / the diff since the live release's commit to tell the
|
|
20
|
+
user what this deploy actually changes.
|
|
19
21
|
- The target scope: when several exist, pick by dimension (`scope:"environment=production"`),
|
|
20
22
|
never by guessing. Production-dimension scopes deserve a confirmation from the user.
|
|
21
23
|
2. If the change involved parameters (`application_parameter_create`), remember values only apply on this
|
|
@@ -30,7 +32,7 @@ over in steps you control, and nothing is destroyed until you finalize. Rollback
|
|
|
30
32
|
(dashboard → Approvals). Don't retry; watch with `application_get deployment:<id>`.
|
|
31
33
|
2. Wait for `running` (instances healthy). `waiting_for_instances` lasting more than ~5
|
|
32
34
|
minutes usually means a failing health check — check `application_log_list` before pushing traffic.
|
|
33
|
-
3. Walk traffic in steps — allowed marks are 1, 5, 10, 25, 50, 75, 90, 95, 99, 100:
|
|
35
|
+
3. Walk traffic in steps — allowed marks are 0, 1, 5, 10, 25, 50, 75, 90, 95, 99, 100:
|
|
34
36
|
- Low-risk/dev: 25 → 100 is fine.
|
|
35
37
|
- Production: 5 or 10 → 25 → 50 → 100, pausing 2–5 minutes per step.
|
|
36
38
|
4. **Gate every step on metrics** (`application_metric_list`, 1h window, compare against pre-deploy):
|
|
@@ -50,5 +52,6 @@ Prefer a needless rollback over a defended bad deploy. After rolling back, captu
|
|
|
50
52
|
## First-ever deploy on a scope
|
|
51
53
|
|
|
52
54
|
There is no old version to fall back to: traffic semantics don't apply, the deployment
|
|
53
|
-
finalizes on its own once instances are healthy, and "rollback" means cancel
|
|
54
|
-
the scope
|
|
55
|
+
finalizes on its own once instances are healthy, and "rollback" means cancel — which ends in
|
|
56
|
+
`failed`, leaving the scope to be recreated rather than reverted. Verify with the scope's
|
|
57
|
+
domain URL from `application_get` once finalized.
|
|
@@ -34,6 +34,8 @@ to the last known-good version.
|
|
|
34
34
|
- throughput cliff to ~0 → upstream/routing problem; the app may be healthy.
|
|
35
35
|
- `application_log_list` (the affected scope; filter for `ERROR`, `FATAL`, stack traces):
|
|
36
36
|
- note the FIRST error timestamp and correlate with the deploy time from `application_get`.
|
|
37
|
+
- running in the repo: map the suspect release to its build commit and read `git log` around
|
|
38
|
+
it — the changes between the last-good and the current release are the prime suspects.
|
|
37
39
|
- `application_parameter_list` — config is a top cause: was a parameter changed before the last deploy?
|
|
38
40
|
Secret values are masked, but names + the deploy timing tell the story.
|
|
39
41
|
|
|
@@ -47,6 +49,7 @@ and the evidence — and leave the bad release identified so it isn't redeployed
|
|
|
47
49
|
## Don'ts
|
|
48
50
|
|
|
49
51
|
- Don't deploy a "quick fix" forward while the incident is open — roll back first.
|
|
50
|
-
- Don't finalize
|
|
52
|
+
- Don't finalize during an incident — once a deploy is `finalizing` it can't be cancelled or
|
|
53
|
+
rolled back; it only retries forward.
|
|
51
54
|
- Don't restart/recreate scopes as a first move; that destroys the evidence and rarely
|
|
52
55
|
fixes the cause.
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: managing-environments
|
|
3
|
+
description: Use when adding or changing a nullplatform deploy target (scope / environment / region) — identifying existing scopes, carrying the org's dimensions, and the first deploy to a fresh scope.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Managing environments on nullplatform
|
|
7
|
+
|
|
8
|
+
A scope IS an environment, and creating one **provisions real infrastructure asynchronously**.
|
|
9
|
+
Identify before you create, carry the org's dimensions, and mirror a sibling.
|
|
10
|
+
|
|
11
|
+
## 1. Identify before creating
|
|
12
|
+
|
|
13
|
+
`application_get` first — list the existing scopes and their dimensions. "Add staging" often
|
|
14
|
+
means a scope that already exists; match by **dimension** (`environment=staging`), not by display
|
|
15
|
+
name. `application_scope_create` is convergent (an existing name returns that scope), but a
|
|
16
|
+
near-duplicate under a different name is a real-infrastructure mistake.
|
|
17
|
+
|
|
18
|
+
## 2. Dimensions
|
|
19
|
+
|
|
20
|
+
In orgs that use runtime dimensions a new scope must carry them (e.g. `environment`, `country`).
|
|
21
|
+
`application_scope_create` borrows the shape of an existing scope when you don't pass
|
|
22
|
+
`dimensions` — usually what you want. Set them right at creation: the dashboard locks dimensions
|
|
23
|
+
afterwards, so treat them as fixed even though the platform technically allows edits. A
|
|
24
|
+
production-dimension scope deserves an explicit confirmation from the user.
|
|
25
|
+
|
|
26
|
+
## 3. Create
|
|
27
|
+
|
|
28
|
+
`application_scope_create name:"…"` (it lists the scope types to choose from if the org has
|
|
29
|
+
several). It returns immediately with the scope **provisioning** — the infrastructure comes up
|
|
30
|
+
out of band. Poll with `application_get` until it's active before deploying; the create response
|
|
31
|
+
is accepted intent, not a ready environment.
|
|
32
|
+
|
|
33
|
+
## 4. Mirror config, then first deploy
|
|
34
|
+
|
|
35
|
+
- A new environment with missing parameters will misbehave. Bring the sibling's configuration
|
|
36
|
+
across (`application_parameter_create`, per `configuring-safely`) before the first deploy.
|
|
37
|
+
- The first deploy to a fresh scope is special: there's no previous version, so traffic-splitting
|
|
38
|
+
doesn't apply — it finalizes on its own once instances are healthy, and a cancel ends in
|
|
39
|
+
`failed` (the scope must be recreated, since there's nothing to fall back to). Verify via the
|
|
40
|
+
scope's domain URL from `application_get`.
|
|
41
|
+
|
|
42
|
+
## Sizing & later edits
|
|
43
|
+
|
|
44
|
+
Sizing/capabilities and post-creation dimension edits aren't exposed by this integration — set
|
|
45
|
+
what you can at creation and deep-link to the dashboard for the rest. An under-sized scope shows
|
|
46
|
+
up later as CPU/memory near limits in `application_metric_list`.
|
|
47
|
+
|
|
48
|
+
## Don'ts
|
|
49
|
+
|
|
50
|
+
- Don't create a duplicate of an existing scope; identify first.
|
|
51
|
+
- Don't guess dimension values — borrow a sibling's (the tool does this by default).
|
|
52
|
+
- Don't treat scope creation as cheap or instant: it's real infrastructure, provisioned
|
|
53
|
+
asynchronously.
|
|
@@ -30,29 +30,39 @@ Scopes carry org-defined dimensions like `environment` and `country`
|
|
|
30
30
|
|
|
31
31
|
## Versioning
|
|
32
32
|
|
|
33
|
-
- Releases use semver, optionally `v`-prefixed;
|
|
34
|
-
|
|
33
|
+
- Releases use semver, optionally `v`-prefixed; an org may enforce a pattern
|
|
34
|
+
(`settings.releases.versionPattern`). Whoever cuts the release chooses the semver.
|
|
35
|
+
- When a tool cuts a release for you (deploy, `application_release_create`) it defaults to
|
|
36
|
+
bumping the patch of the latest release. "Deploy 1.4.0" targets the EXISTING 1.4.0 release —
|
|
35
37
|
that's also how you roll back after a finalize.
|
|
36
38
|
|
|
37
39
|
## Parameters
|
|
38
40
|
|
|
39
|
-
- Env vars or files, app-NRN scoped, optionally secret
|
|
41
|
+
- Env vars or files, app-NRN scoped, optionally secret. Secret values are masked by default;
|
|
42
|
+
reading the real value needs the `parameter:read-secrets` permission (often itself
|
|
43
|
+
approval-gated) and is not exposed by this integration — a value is versioned, not write-once.
|
|
40
44
|
- Changes take effect ONLY on the next deploy of each scope — saying "parameter updated"
|
|
41
45
|
without mentioning the pending redeploy is misleading.
|
|
46
|
+
- The effective value for a scope is the most specific one: scope override → dimension match →
|
|
47
|
+
application default.
|
|
42
48
|
|
|
43
49
|
## Traffic & lifecycle semantics
|
|
44
50
|
|
|
45
|
-
- Traffic percentages snap to: 1, 5, 10, 25, 50, 75, 90, 95, 99, 100.
|
|
51
|
+
- Traffic percentages snap to: 0, 1, 5, 10, 25, 50, 75, 90, 95, 99, 100 (0 drains the new version).
|
|
46
52
|
- Deployment statuses: `creating → waiting_for_instances → running (traffic phase) →
|
|
47
|
-
finalizing → finalized`;
|
|
48
|
-
`
|
|
53
|
+
finalizing → finalized`; a rollback runs `cancelling → rolling_back → rolled_back`; terminal
|
|
54
|
+
also includes `failed`. `creating_approval` means a human approval gate (denied →
|
|
55
|
+
`creating_approval_denied`). A separate axis, `statusInScope` (active/candidate/inactive),
|
|
56
|
+
is what the scope actually serves. Once a deploy is `finalizing` it can't be cancelled — it
|
|
57
|
+
only retries forward.
|
|
49
58
|
- One active rollout per scope.
|
|
50
59
|
|
|
51
60
|
## Gotchas worth knowing
|
|
52
61
|
|
|
53
|
-
- Multi-asset builds (e.g. docker + lambda) need an asset choice per scope
|
|
54
|
-
|
|
55
|
-
|
|
62
|
+
- Multi-asset builds (e.g. docker + lambda) need an asset choice per scope (set the scope's
|
|
63
|
+
asset when a build emits more than one; a single-asset build needs no choice). A wrong or
|
|
64
|
+
missing choice is rejected with a misleading "scope and release belong to different
|
|
65
|
+
applications" — it actually means "pick the asset" (a real runtime error, verified live).
|
|
56
66
|
- Logs and metrics are per-scope, never app-wide.
|
|
57
67
|
- Approvals can gate deploys org-wide; a "stuck" deploy in `creating_approval` is waiting
|
|
58
68
|
for a human, not broken.
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: promoting-across-environments
|
|
3
|
+
description: Use when moving a validated release from one environment to the next (dev → staging → production) on nullplatform, or when two environments behave differently — promote the same release, and tell release drift from config drift.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Promoting across environments on nullplatform
|
|
7
|
+
|
|
8
|
+
Build once, deploy the same release everywhere. A release is an immutable, application-wide
|
|
9
|
+
pointer to a build, so promoting to the next environment means **deploying the release you
|
|
10
|
+
already validated** onto that environment's scope — never rebuilding, never cutting a new release
|
|
11
|
+
per environment. What you tested is then exactly what ships.
|
|
12
|
+
|
|
13
|
+
> "Promote" here is the developer sense: move a release to the next environment. The platform
|
|
14
|
+
> also uses "promote" for *finalize* — promoting a deployment's candidate over the old version
|
|
15
|
+
> within one rollout. Different operation; don't conflate them.
|
|
16
|
+
|
|
17
|
+
## Promoting a release
|
|
18
|
+
|
|
19
|
+
1. Validate on the lower environment first. With `application_get`, confirm which release is live
|
|
20
|
+
on (say) the `environment=staging` scope and that it's healthy — metrics and logs per
|
|
21
|
+
`deploying-safely`.
|
|
22
|
+
2. Deploy that **same** release to the next scope by version:
|
|
23
|
+
`application_deployment_create version:"1.4.2" scope:"environment=production"`. Passing the
|
|
24
|
+
existing version deploys it as-is; it does not cut a new release. Do NOT deploy "latest" here —
|
|
25
|
+
a newer build may exist between staging and prod, and "latest" would ship something you never
|
|
26
|
+
validated.
|
|
27
|
+
3. Walk traffic and gate exactly as in `deploying-safely`. A production-dimension scope deserves
|
|
28
|
+
an explicit confirmation. Repeat environment by environment.
|
|
29
|
+
|
|
30
|
+
## When an environment behaves differently (drift)
|
|
31
|
+
|
|
32
|
+
Two scopes running "the same app" can differ in exactly two ways — establish which before acting:
|
|
33
|
+
|
|
34
|
+
- **Release drift** — they're on different releases. `application_get` shows the live release per
|
|
35
|
+
scope; staging on 1.4.2 and prod on 1.3.0 is the whole story. The fix is promotion (above), not
|
|
36
|
+
debugging.
|
|
37
|
+
- **Config drift** — same release, different configuration. A parameter can be overridden per
|
|
38
|
+
scope or dimension (effective value: scope → dimension → application), so prod may resolve a
|
|
39
|
+
different value than staging. `application_parameter_list` shows the names; per-scope override
|
|
40
|
+
values live in the dashboard. Fuse with the repo — a local `.env` or config file is the
|
|
41
|
+
reference for what each environment *should* carry.
|
|
42
|
+
|
|
43
|
+
Promoting a release won't fix a config difference, and changing config won't close a release gap —
|
|
44
|
+
so name the drift before you touch anything.
|
|
45
|
+
|
|
46
|
+
## Don'ts
|
|
47
|
+
|
|
48
|
+
- Don't rebuild per environment, and don't cut a separate release for prod — promote the one you
|
|
49
|
+
validated.
|
|
50
|
+
- Don't deploy "latest" to production when you mean "the release that passed staging".
|
|
51
|
+
- Don't assume parity: two scopes can drift on release, on config, or both.
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: tracing-a-change
|
|
3
|
+
description: Use to answer "is this ticket / PR / commit live, and where?" on nullplatform — walk a commit from the issue key to the scopes serving it.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Tracing a change on nullplatform
|
|
7
|
+
|
|
8
|
+
Intent and delivery join on the **commit**. Given a ticket, a PR, or a commit, walk it forward to
|
|
9
|
+
the environments actually serving it — and be precise about the gap, because *merged* is not
|
|
10
|
+
*deployed*.
|
|
11
|
+
|
|
12
|
+
## The walk
|
|
13
|
+
|
|
14
|
+
1. **Work item → commit.** Get the commit SHA the change landed in: from the issue's linked PR in
|
|
15
|
+
the tracker, or in the repo with `git log --grep="PROJ-123"` (the issue key on the commit). Use
|
|
16
|
+
the full SHA.
|
|
17
|
+
2. **Commit → build.** `application_build_list commit:"<sha>"` returns the build(s) for that exact
|
|
18
|
+
commit (a build records its commit). No build → it hasn't built yet, or the commit isn't on a
|
|
19
|
+
built branch.
|
|
20
|
+
3. **Build → release.** A build ships only once someone has cut a release from it;
|
|
21
|
+
`application_build_list` flags whether each build is released and with which semver.
|
|
22
|
+
4. **Release → scopes.** `application_get` shows the live release per scope. If the change's
|
|
23
|
+
release is on staging but not production, that is the precise answer — and the next action is
|
|
24
|
+
`promoting-across-environments`.
|
|
25
|
+
|
|
26
|
+
## Answer with a position, not a yes/no
|
|
27
|
+
|
|
28
|
+
State where the change *is*: "PROJ-123 is in release 1.4.2 — live on staging since Tuesday, not
|
|
29
|
+
yet on production." If it hasn't built or been released, say which step it's stuck at. Never equate
|
|
30
|
+
a merged PR with a deployed change; the gap between them is the whole point of the trace.
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: understand-a-service
|
|
3
|
+
description: Use when getting oriented on an unfamiliar or inherited nullplatform application — what it is, where it runs, what it depends on, and how it is configured — before changing anything.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Understanding a service on nullplatform
|
|
7
|
+
|
|
8
|
+
Build the picture by fusing two views — the platform's and the repo's — read-only, before you
|
|
9
|
+
touch anything. Establish current state AND how it got there before forming any plan.
|
|
10
|
+
|
|
11
|
+
## 1. Resolve which app
|
|
12
|
+
|
|
13
|
+
Inside a linked repo the app is inferred from the git remote. Confirm you mean **this repo's**
|
|
14
|
+
app, not a similarly-named other one, and say which app (and scope) you're describing.
|
|
15
|
+
|
|
16
|
+
## 2. The platform view
|
|
17
|
+
|
|
18
|
+
- `application_get` — what's live where: the scopes (environments) and their dimensions, the
|
|
19
|
+
release each one serves, and recent activity. This is the spine of the picture.
|
|
20
|
+
- `application_service_list` — the dependencies (databases, queues, caches…) and their status. A
|
|
21
|
+
dependency in a non-active state is part of "how it runs", not a footnote.
|
|
22
|
+
- `application_parameter_list` — the config surface (names; secret values masked). What's
|
|
23
|
+
configured tells you what the service expects from its environment.
|
|
24
|
+
|
|
25
|
+
## 3. The repo view (what the dashboard can't see)
|
|
26
|
+
|
|
27
|
+
You're running in the developer's environment — read it. The `README`, `package.json` /
|
|
28
|
+
`Dockerfile` (language, runtime, entrypoint, ports), the default branch, and recent `git log`
|
|
29
|
+
(what's changing, and by whom). This is the half a web dashboard structurally lacks, and it's
|
|
30
|
+
where this integration earns its keep.
|
|
31
|
+
|
|
32
|
+
## 4. Correlate the two
|
|
33
|
+
|
|
34
|
+
- Does the release on the main scope match the repo's `HEAD`? A gap means production is behind
|
|
35
|
+
(or ahead of) what's checked out — say so.
|
|
36
|
+
- How many environments are there, and how do they differ (dimensions, releases)?
|
|
37
|
+
- What does the service talk to, and is each dependency provisioned and active?
|
|
38
|
+
|
|
39
|
+
## 5. Summarize, don't act
|
|
40
|
+
|
|
41
|
+
Give the user a grounded picture: what the service is, where it runs, what it depends on, how
|
|
42
|
+
it's configured, and what's live. For ownership, teams, and other surfaces this integration
|
|
43
|
+
doesn't cover, deep-link to the dashboard.
|
|
44
|
+
|
|
45
|
+
## Don'ts
|
|
46
|
+
|
|
47
|
+
- Stay read-only until you have the picture: no deploy, config change, or scope edit while still
|
|
48
|
+
learning.
|
|
49
|
+
- Don't assume the repo you're in is the app — confirm the git remote matches before you describe
|
|
50
|
+
anything as fact.
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: working-from-a-ticket
|
|
3
|
+
description: Use when starting from a tracker work item (Jira, GitHub Issues, Linear, …) — read or create the ticket, implement it in the repo, ship it through nullplatform, and report status back to the ticket.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Working from a ticket on nullplatform
|
|
7
|
+
|
|
8
|
+
nullplatform owns the delivery half — build → release → deploy. The ticket is the *intent* half,
|
|
9
|
+
and it lives in the developer's own tracker, reached through whatever issue-tracker connection
|
|
10
|
+
they've set up (Jira, GitHub Issues, Linear, …) — not through nullplatform. Your job is to carry
|
|
11
|
+
one work item across the whole loop and close it. The thread that ties intent to delivery is the
|
|
12
|
+
**commit**: keep the issue key on the branch and the commit so the change stays traceable end to
|
|
13
|
+
end (see `tracing-a-change`).
|
|
14
|
+
|
|
15
|
+
## 1. Get the work item
|
|
16
|
+
|
|
17
|
+
- Have a ticket → read it from the connected tracker. Pull out the change, the acceptance
|
|
18
|
+
criteria, and the issue key (e.g. `PROJ-123`).
|
|
19
|
+
- No ticket yet → draft one from repo + platform context (what the app is, what's live — see
|
|
20
|
+
`understand-a-service`) and create it in the tracker. Confirm the title and description with the
|
|
21
|
+
user before creating it — it's an external write.
|
|
22
|
+
|
|
23
|
+
## 2. Implement it
|
|
24
|
+
|
|
25
|
+
Work on a branch named for the issue key, and put the key in the commit / PR. Implement against the
|
|
26
|
+
acceptance criteria with your normal approach — plan, code, tests — that's your own craft, not this
|
|
27
|
+
playbook's job. The one thing that matters here: the issue key must ride the commit, because that
|
|
28
|
+
is what lets the deploy be traced back to the ticket afterwards.
|
|
29
|
+
|
|
30
|
+
## 3. Deliver it
|
|
31
|
+
|
|
32
|
+
Push so CI builds (the build records the commit). Watch it land with `application_build_list`, then
|
|
33
|
+
ship it with `deploying-safely`, or move it from a lower environment with
|
|
34
|
+
`promoting-across-environments`.
|
|
35
|
+
|
|
36
|
+
## 4. Close the loop
|
|
37
|
+
|
|
38
|
+
Once it's live on the target scope and verified, report back to the ticket — the release it shipped
|
|
39
|
+
in, the environment, and the commit — and move its state. Posting to the tracker is an external
|
|
40
|
+
write: confirm with the user first, and don't mark a ticket done before it's actually deployed and
|
|
41
|
+
healthy (merged ≠ deployed).
|
|
42
|
+
|
|
43
|
+
## Don'ts
|
|
44
|
+
|
|
45
|
+
- Don't lose the issue key — no key on the commit, no traceability back from a deploy.
|
|
46
|
+
- Don't create or update a tracker item without the user's ok.
|
|
47
|
+
- Don't close a ticket on merge; close it when the change is live and verified.
|