Skip to content

chore: generic public deploy names and strip client identifiers - #437

Merged
jencryzthers merged 29 commits into
mainfrom
cursor/public-repo-hygiene-167c
Oct 14, 2026
Merged

jencryzthers merged 29 commits into
mainfrom
cursor/public-repo-hygiene-167c

Conversation

@jencryzthers

@jencryzthers jencryzthers commented Oct 13, 2026 •

Copy link
Copy Markdown
Member

Hygiène du dépôt public

Remplace les valeurs d'infrastructure par des placeholders et des noms génériques, et prépare la réécriture d'historique (plan dans docs/history-rewrite-plan.md, aucun push forcé dans cette PR).

Commits

  • c30abdc5 : essai à blanc de réécriture sur miroir complet (nombre de commits identique avant/après).
  • 221a9055 : placeholders et renommage du chart.
  • fcc19e61 : merge de main (commit de merge, conflits résolus en gardant les noms génériques).
  • 106a8091 : variables OpenTofu Azure obligatoires et plan de réécriture complété.
  • a4479d38 : nouveau merge de main ; seuls conflits server/engines-self-check.ts et son test, comportement de main (fix(server): ne plus relancer les moteurs au démarrage #433) conservé.
  • 5090ef4e : inventaire de réécriture complété, par placeholders.
  • 8d90b0e3 : placeholders <PRIVATE_REPO_NAME> et <region>, mention du commit à purger réduite.
  • 47c1cf0e : merge de main (ci(release) : serveur par défaut des builds officiels depuis un secret #449, feat(voice): la personne ou le bot peut raccrocher #435) et derniers restes du nom du dépôt privé remplacés par placeholder.
  • b8da6461 : section 7 du plan (purge de l'historique d'édition des PR) et check-list finale.

OpenTofu

  • location, system_vm_size, azure_vm_size : obligatoires, sans défaut, validation par regex (région ^[a-z]+[a-z0-9]*$, SKU ^Standard_[A-Za-z0-9_]+$), messages d'erreur avec <region>.
  • core/outputs.tf dérive azure_vm_size de la variable.
  • aks.tf : garde stricte par regex SKU rétablie.

Plan de réécriture

Inclut la branche de #444 (commit à purger), la purge explicite de refs/pull/444/* auprès du Support GitHub et la purge de l'historique d'édition des PR.

Changements qui ne sont pas de purs placeholders

Noms génériques du chart et des namespaces, nom de domaine des labels produit, fixtures génériques, champ serveur vide sauf si SAGAX_DEFAULT_SERVER est défini (builds officiels : voir #449), exemples tfvars génériques et documentation des variables obligatoires.

Preuve

Tête b8da6461.

  • Essai à blanc de réécriture sur miroir complet : 20 heads + 30 tags, 6179 commits avant → 6179 après, Parsed 6179, rien de poussé.
  • tofu fmt -check et tofu validate (azure, k3s) : OK à 106a8091 ; depuis, seules des chaînes error_message ont changé dans OpenTofu.
  • Lignes ajoutées au plan vérifiées : aucune valeur brute.

jencryzthers and others added 8 commits October 13, 2026 22:04
Rename the Helm chart and namespaces from sagax-sandboxes to sandboxes /
sandbox-system, replace the client deploy tree with deploy/example, and
remove real hosts, vault names, D1 IDs and proof GUIDs from HEAD.

Co-authored-by: Jean-Christophe Proulx <j.christophe@devjc.net>
Assertions still expected the leftover "production" stand-in after
org names became Example. Match the fixtures and keep character
counts derived from the about-me text.
The example stack used a prefix that made the cluster and identity names
the same as the live AKS cluster. Use a generic prefix instead.
Co-authored-by: Jean-Christophe Proulx <j.christophe@devjc.net>
Co-authored-by: Jean-Christophe Proulx <j.christophe@devjc.net>
Public deploy docs and the host deploy script now use generic
placeholders (<INSTALL_ROOT>, <APPLE_TEAM_ID>, <PERSPICAX_REPO>,
<EDGE_SERVICE>) and /opt/sagax defaults. Rename the image-gate
workflow off the old host name, match the sandbox pool Prometheus
label to sagax.io/pool, and skip Docker rebuilds for deploy markdown.

Co-authored-by: Jean-Christophe Proulx <j.christophe@devjc.net>
Vitest collects scripts/**/*.test.mjs, so the node:test runner-guard
file failed shard 2 with "No test suite found". Rename it to
*.node-test.mjs (same pattern as electron). List the interrupt
coordination e2e that flaked on the same shard (wait() returned
failed after interrupt; the file is unchanged vs main).
@cursor

cursor Bot commented Oct 14, 2026

Copy link
Copy Markdown

Preuve

HEAD 8bfa4174f283adbc47d5dab43a8d655f0dec6902 (after merging current main with a merge commit). No rebase, no force-push.

Checks that this PR must keep green

term-guard scan — SUCCESS
https://github.com/pulsatrixtechnologies/Sagax/actions/runs/38498308143/job/115639046748

diff bytes: 380680
commits: 8
No forbidden terms in title, branch, commits, or diff (10 terms checked).

Docker image / build image + boot smoke — SUCCESS (3m42s)
https://github.com/pulsatrixtechnologies/Sagax/actions/runs/38498115640/job/115638447962
SHA 8bfa4174f. Job steps all success: Image identity, Build image (ENGINE_SET=all), Refuse a short engine set, Boot the container, open-source edition, baked-in Chrome, no public bind, tenant stack + Caddy pair.

Boot-smoke runtime stdout (after the container became healthy):

2.1.288 (Claude Code)
grok 1.0.46 (2765805b9442)
codex-cli 0.160.0
2026.10.01-e373342
Sagax open-source edition
local requests: owner trust (self-hosted default)
brand: default
openmausbot server on http://127.0.0.1:8799

scripts/engine-image-gate.mjs is silent on success (exit 0). CI aggregate on this SHA: SUCCESS (required checks completed without failures; one superseded term-guard run is CANCELLED).

Grep: no leftover host / infra names in added lines

Run on origin/cursor/public-repo-hygiene-167c vs origin/main:

git diff origin/main...HEAD | grep -nE '^\+' | grep -viE '^\+\+\+' | grep -Ei \
  'goxcloud|azpxc|rg-pulsatrix|pulsatrix-v3|azure-pulsatrix|sagax\.pulsatrix\.ca|PP546MZVHZ|main-20004735|/opt/pulsatrix|bot\.pulsatrix\.mcp|azpxcgox'
# (no matches)

UUIDs in added lines are sequential all-zero / pr_* fixtures only (no subscription or tenant GUIDs). Rename records still name the old paths (scripts/gox-deploy.mjs → scripts/deploy-server.mjs, networkpolicy-gox.yaml → networkpolicy-ingress.yaml, gox-image-gate.yml → image-gate.yml, delete deploy/gox/deploy-pulsabot.sh); that is git rename metadata, not new content.

Not merged.

cursoragent and others added 14 commits October 14, 2026 03:36
Restore runner-guard, the runner-label tests and ci-retry-list to
match main (main already converted that suite to vitest). Put the
image-gate workflow back at main's filename; its body still calls
deploy-server.mjs.
Local clone --mirror only. Raw filter-repo log, git rev-list --all | wc -l
(6127 before and after), and git grep of every rewritten commit (empty,
exit 1). Live terms masked with placeholders. Rewritten refs were not pushed.
Keep the image-gate filename and generic helper; take main's IMAGE env
for the image ref (#431).

# Conflicts:
#	.github/workflows/gox-image-gate.yml
Leave the file byte-identical to main so this PR does not conflict with
the image-gate engine-set check. That workflow is not part of this
hygiene change.
The attached Preuve is the local mirror dry-run: rev-list counts before
and after, then git grep -E over every rewritten SHA (empty stdout,
exit 1). The image-gate workflow is not path-renamed.
Replace the collapsed proof with the real filter-repo log, the wc -l
stdout before and after, and git grep of every rev-list SHA (empty,
exit 1). Placeholders only.
Those two SHAs were only on origin/main; filter-repo dropped the
origin remote. Not empty commits. Chart dir rename stays in #437.
The md path filter was off-topic. wrangler keeps main's D1 id lines.
The two dropped SHAs were only on origin/main; filter-repo parsed 6078
because it removes that remote before walking.
Replace the contradictory workspace-mirror transcripts with a single
run: clone --mirror --single-branch --branch main, 6070 before, 6070
after, no dropped SHAs. docker.yml and D1 id lines stay identical to
main.
Second local filter-repo pass on a complete origin --mirror after
deleting refs/pull. 20 heads, 30 tags, 6179 commits before and after,
no dropped SHAs.
…lders

Olesya audit on #437: ios-push already used <RESOURCE_GROUP>;
cutover-rollback now uses <RESOURCE_GROUP>, <REGION>, <VM_SIZE>;
the old helm chart path is gone. Same placeholders in the sibling
docs and tofu defaults so case-insensitive class greps are 0.
Keep this branch's generic names and placeholders in the docs and k8s
runbooks that conflicted. Main's side still had live region and VM-size
literals and used the resource-group placeholder as a namespace.

Co-authored-by: Jean-Christophe Proulx <j.christophe@devjc.net>
Commit 221a905 left '<REGION>' and '<VM_SIZE>' as OpenTofu defaults,
which are not valid Azure values. Make location, system_vm_size and
azure_vm_size required, validate region as ^[a-z]+[a-z0-9]*$ and SKU as
^Standard_[A-Za-z0-9_]+$, derive the core pool output from the variable,
and restore the AKS sandbox-pool SKU regex (not length > 0).

Also add docs/history-rewrite-plan.md: rewrite scope includes
cursor/docker-image-cves-5d72 (commit 1b3bbe5, Trivy JSON from PR #444)
and an explicit GitHub Support purge of refs/pull/444.

Co-authored-by: Jean-Christophe Proulx <j.christophe@devjc.net>
@jencryzthers
jencryzthers marked this pull request as ready for review October 14, 2026 11:35
cursoragent and others added 2 commits October 14, 2026 11:37
Take main's engine self-check: recorded --version is reused at boot, and
a missing line is probed one at a time. Hygiene only had a comment on
the old concurrency. No rebase.

Co-authored-by: Jean-Christophe Proulx <j.christophe@devjc.net>
jencryzthers and others added 5 commits October 14, 2026 07:44
Bring in the voice hangup work and the official-build default-server
secret. No rebase.

Co-authored-by: Jean-Christophe Proulx <j.christophe@devjc.net>
Public HEAD no longer names the private repository. Restore the
history-rewrite description of commit 1b3bbe5's Trivy JSON and the
Support purge of refs/pull/444.

Co-authored-by: Jean-Christophe Proulx <j.christophe@devjc.net>
@jencryzthers
jencryzthers merged commit f849cb5 into main Oct 14, 2026
12 of 13 checks passed
@jencryzthers
jencryzthers deleted the cursor/public-repo-hygiene-167c branch October 14, 2026 11:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants