fix(gen): small config scrubs — openclaw blobs to real files, setup host drift, dead artifacts

- The three openclaw markdown blobs hardcoded inside gen-skill-docs.ts (which
  silently reverted any hand edit to their tracked outputs on regen) move to
  openclaw/templates/*.md source files; output shasums byte-identical.
- setup's --host allowlists gain cursor + slate — both fully registered hosts
  with generated output, but './setup --host cursor' exited 1 because two
  hand-rolled lists in setup had drifted from hosts/index.ts.
- scripts/proactive-suggestions.json deleted: 31KB regenerated on every run,
  read by nobody (the catalog-trim design's reader was never built); its
  emitter and three determinism tests (which guaranteed a file nothing reads
  didn't churn) retired with stays-retired pins.
- claude/SKILL.md.tmpl deleted: a complete 8.9KB skill that never generated
  output (directory name collides with the host id 'claude'), in no registry.
  Recoverable from git if ever wanted under a non-colliding name.
- openclaw's frozen extraFields.version '0.15.2.0' stamp dropped;
  includeSkills: [] no-ops omitted (the generator treats [] as absent);
  llms.txt 55 -> 54 skills.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Garry Tan
2026-08-14 21:12:22 -07:00
co-authored by Claude Fable 5
parent 5586f57c62
commit b60fe8bd64
15 changed files with 84 additions and 842 deletions
+6 -8
View File
@@ -7,10 +7,10 @@
* timestamp, a random seed, or any other non-deterministic field into a
* generated artifact.
*
* v1.45.0.0 shipped with a `generated_at` ISO timestamp in
* scripts/proactive-suggestions.json that updated every run. CI freshness
* checks failed because the committed file's timestamp never matched the
* latest gen. Fixed in 43e18af4 — this test pins the contract going forward.
* v1.45.0.0 shipped a generated artifact with a `generated_at` ISO timestamp
* that updated every run. CI freshness checks failed because the committed
* file's timestamp never matched the latest gen. Fixed in 43e18af4 — this
* test pins the contract going forward.
*
* The test pays a small cost (~2 gen-skill-docs invocations, ~3s total) but
* catches a class of bugs that's invisible until CI fails.
@@ -25,7 +25,6 @@ const REPO_ROOT = path.resolve(import.meta.dir, '..');
/** Files that gen-skill-docs writes and that must be byte-stable across runs. */
const STABLE_OUTPUTS = [
'scripts/proactive-suggestions.json',
'SKILL.md',
'ship/SKILL.md',
'plan-ceo-review/SKILL.md',
@@ -40,7 +39,6 @@ const STABLE_OUTPUTS = [
* non-determinism without paying the cost of snapshotting hundreds of files.
*/
const STABLE_HOST_ALL_OUTPUTS = [
'scripts/proactive-suggestions.json',
'SKILL.md',
'ship/SKILL.md',
'.agents/skills/gstack-ship/SKILL.md',
@@ -151,8 +149,8 @@ describe('gen-skill-docs idempotency', () => {
throw new Error(
`${flapping.length} file(s) changed between two consecutive --host all gen runs:\n` +
flapping.map(f => ` - ${f}`).join('\n') +
`\nLikely cause: a non-deterministic field leaked into a non-Claude host adapter ` +
`(scripts/host-adapters/*.ts). CI freshness checks for that host will flap.`,
`\nLikely cause: a non-deterministic field leaked into a non-Claude host's ` +
`config or resolver output. CI freshness checks for that host will flap.`,
);
}
}, 300_000); // ~5 min budget for two host-all runs