@codyswann/lisa 4.27.4 → 4.27.6
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/all/copy-overwrite/scripts/lisa-enforcement-fallback.sh +27 -4
- package/all/copy-overwrite/scripts/lisa-work-item.mjs +167 -2
- package/dist/cli/doctor-enforcement-coverage.d.ts +14 -0
- package/dist/cli/doctor-enforcement-coverage.d.ts.map +1 -0
- package/dist/cli/doctor-enforcement-coverage.js +103 -0
- package/dist/cli/doctor-enforcement-coverage.js.map +1 -0
- package/dist/cli/doctor.d.ts.map +1 -1
- package/dist/cli/doctor.js +9 -0
- package/dist/cli/doctor.js.map +1 -1
- package/dist/core/enforcement-census-report.d.ts +19 -0
- package/dist/core/enforcement-census-report.d.ts.map +1 -0
- package/dist/core/enforcement-census-report.js +198 -0
- package/dist/core/enforcement-census-report.js.map +1 -0
- package/dist/core/enforcement-census.d.ts +177 -0
- package/dist/core/enforcement-census.d.ts.map +1 -0
- package/dist/core/enforcement-census.js +252 -0
- package/dist/core/enforcement-census.js.map +1 -0
- package/dist/core/enforcement-coverage.d.ts +168 -0
- package/dist/core/enforcement-coverage.d.ts.map +1 -0
- package/dist/core/enforcement-coverage.js +342 -0
- package/dist/core/enforcement-coverage.js.map +1 -0
- package/dist/core/lisa-owned-hash-ledger.d.ts.map +1 -1
- package/dist/core/lisa-owned-hash-ledger.js +10 -0
- package/dist/core/lisa-owned-hash-ledger.js.map +1 -1
- package/dist/core/nightly-e2e-guard-behavior-certificate.js +2 -2
- package/dist/core/upstream-evidence-manifest.d.ts.map +1 -1
- package/dist/core/upstream-evidence-manifest.js +25 -7
- package/dist/core/upstream-evidence-manifest.js.map +1 -1
- package/dist/migrations/ensure-push-default-safe.d.ts +50 -0
- package/dist/migrations/ensure-push-default-safe.d.ts.map +1 -0
- package/dist/migrations/ensure-push-default-safe.js +159 -0
- package/dist/migrations/ensure-push-default-safe.js.map +1 -0
- package/dist/migrations/index.d.ts +1 -0
- package/dist/migrations/index.d.ts.map +1 -1
- package/dist/migrations/index.js +3 -0
- package/dist/migrations/index.js.map +1 -1
- package/package.json +4 -3
- package/plugins/lisa/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-setup-automations/SKILL.md +23 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-sync-down/SKILL.md +8 -1
- package/plugins/lisa/skills/lisa-setup-automations/SKILL.md +23 -0
- package/plugins/lisa/skills/lisa-sync-down/SKILL.md +8 -1
- package/plugins/lisa-agy/plugin.json +1 -1
- package/plugins/lisa-agy/skills/lisa-setup-automations/SKILL.md +23 -0
- package/plugins/lisa-agy/skills/lisa-sync-down/SKILL.md +8 -1
- package/plugins/lisa-cdk/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-agy/plugin.json +1 -1
- package/plugins/lisa-cdk-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-copilot/skills/lisa-setup-automations/SKILL.md +23 -0
- package/plugins/lisa-copilot/skills/lisa-sync-down/SKILL.md +8 -1
- package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cursor/skills/lisa-setup-automations/SKILL.md +23 -0
- package/plugins/lisa-cursor/skills/lisa-sync-down/SKILL.md +8 -1
- package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-agy/plugin.json +1 -1
- package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-agy/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-agy/plugin.json +1 -1
- package/plugins/lisa-nestjs-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw-agy/plugin.json +1 -1
- package/plugins/lisa-openclaw-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-agy/plugin.json +1 -1
- package/plugins/lisa-phaser-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-agy/plugin.json +1 -1
- package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-agy/plugin.json +1 -1
- package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-agy/plugin.json +1 -1
- package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/src/base/skills/lisa-setup-automations/SKILL.md +23 -0
- package/plugins/src/base/skills/lisa-sync-down/SKILL.md +8 -1
- package/scripts/lisa-commit-and-pr-local.sh +22 -6
- package/scripts/lisa-enforcement-census.mjs +168 -0
- package/scripts/lisa-enforcement-fallback.sh +27 -4
- package/typescript/copy-contents/.husky/pre-push +70 -0
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type { Migration, MigrationContext, MigrationResult } from "./migration.interface.js";
|
|
2
|
+
/**
|
|
3
|
+
* Migration: stop a push from inheriting its destination from the upstream ref.
|
|
4
|
+
*
|
|
5
|
+
* With `push.default=upstream`, git resolves a push's destination from the
|
|
6
|
+
* branch's upstream instead of from the branch it was told to push. A working
|
|
7
|
+
* branch created the ordinary way — `git checkout -b <branch> origin/main` —
|
|
8
|
+
* has `main` as its upstream, so the ordinary `git push -u origin <branch>`
|
|
9
|
+
* resolves to `refs/heads/main` and lands there. The push reports success;
|
|
10
|
+
* branch protection and every required check are bypassed; the operator is told
|
|
11
|
+
* only afterwards, if at all.
|
|
12
|
+
*
|
|
13
|
+
* Measured in Lisa's own repository (CodySwannGT/lisa#3495): two commits
|
|
14
|
+
* reached the default branch this way. Every detection control afterwards fired
|
|
15
|
+
* correctly — the bypass was reported, the agent force-push was refused, the
|
|
16
|
+
* release run was caught and cancelled — and the commits shipped in a published
|
|
17
|
+
* release regardless, because an ordinary unrelated merge cut a release before
|
|
18
|
+
* anyone could rewind. Nothing had prevented the original push, and prevention
|
|
19
|
+
* turned out to be the only control that would have mattered.
|
|
20
|
+
*
|
|
21
|
+
* The rewrite is deliberately narrow. Only `upstream` and `tracking` are
|
|
22
|
+
* touched; `simple`, `current`, `matching`, and `nothing` are left exactly as
|
|
23
|
+
* the host set them, because none of them resolve a destination the pusher did
|
|
24
|
+
* not name. The write is `--local`, which shadows a global setting rather than
|
|
25
|
+
* editing the user's global config — this repository's problem to fix is this
|
|
26
|
+
* repository, not the machine.
|
|
27
|
+
*
|
|
28
|
+
* This is one half of the fix and the weaker half: it disarms the trap but
|
|
29
|
+
* cannot bind a clone made before it ran, and it does not survive a host
|
|
30
|
+
* setting the value back. The `validate-push-destination` guard in the pre-push
|
|
31
|
+
* hook is the other half, and it reads the destination git actually resolved
|
|
32
|
+
* rather than the config that produced it.
|
|
33
|
+
*/
|
|
34
|
+
export declare class EnsurePushDefaultSafeMigration implements Migration {
|
|
35
|
+
readonly name = "ensure-push-default-safe";
|
|
36
|
+
readonly description = "Set push.default=simple locally where it currently resolves a push's destination from the upstream ref, so a feature-branch push cannot land on the default branch";
|
|
37
|
+
/**
|
|
38
|
+
* Applies only where `push.default` currently inherits the destination.
|
|
39
|
+
* @param ctx - Migration context
|
|
40
|
+
* @returns True when there is work to do
|
|
41
|
+
*/
|
|
42
|
+
applies(ctx: MigrationContext): Promise<boolean>;
|
|
43
|
+
/**
|
|
44
|
+
* Rewrite the inheriting value to the safe one in local git config.
|
|
45
|
+
* @param ctx - Migration context
|
|
46
|
+
* @returns Result describing the action taken
|
|
47
|
+
*/
|
|
48
|
+
apply(ctx: MigrationContext): Promise<MigrationResult>;
|
|
49
|
+
}
|
|
50
|
+
//# sourceMappingURL=ensure-push-default-safe.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ensure-push-default-safe.d.ts","sourceRoot":"","sources":["../../src/migrations/ensure-push-default-safe.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,SAAS,EACT,gBAAgB,EAChB,eAAe,EAChB,MAAM,0BAA0B,CAAC;AAgGlC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,qBAAa,8BAA+B,YAAW,SAAS;IAC9D,QAAQ,CAAC,IAAI,8BAA8B;IAC3C,QAAQ,CAAC,WAAW,wKAA+K;IAEnM;;;;OAIG;IACG,OAAO,CAAC,GAAG,EAAE,gBAAgB,GAAG,OAAO,CAAC,OAAO,CAAC;IAKtD;;;;OAIG;IACG,KAAK,CAAC,GAAG,EAAE,gBAAgB,GAAG,OAAO,CAAC,eAAe,CAAC;CAgB7D"}
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
/** Minimal environment for project-scoped git commands, free of caller hook state. */
|
|
2
|
+
const GIT_COMMAND_ENV = {
|
|
3
|
+
PATH: "/usr/bin:/bin:/usr/sbin:/sbin",
|
|
4
|
+
};
|
|
5
|
+
/**
|
|
6
|
+
* The two `push.default` values that resolve a push's destination from the
|
|
7
|
+
* branch's UPSTREAM rather than from its own name.
|
|
8
|
+
*
|
|
9
|
+
* `tracking` is the deprecated spelling of `upstream`; git still honours it, so
|
|
10
|
+
* a guard that only knew the modern name would leave half the trap armed.
|
|
11
|
+
*/
|
|
12
|
+
const INHERITING_VALUES = new Set([
|
|
13
|
+
"upstream",
|
|
14
|
+
"tracking",
|
|
15
|
+
]);
|
|
16
|
+
/** What the inheriting values are rewritten to — git's own default since 2.0. */
|
|
17
|
+
const SAFE_VALUE = "simple";
|
|
18
|
+
/**
|
|
19
|
+
* Read the effective `push.default` for a project, or undefined when unset.
|
|
20
|
+
*
|
|
21
|
+
* Reads the EFFECTIVE value, not the local one. A repository inherits
|
|
22
|
+
* `push.default` from the user's global config just as readily as from its own
|
|
23
|
+
* `.git/config`, and the accident this migration disarms does not care which
|
|
24
|
+
* file the value came from.
|
|
25
|
+
* @param cwd - Project directory
|
|
26
|
+
* @returns The configured value lowercased, or undefined when unset or unreadable
|
|
27
|
+
*/
|
|
28
|
+
async function readPushDefault(cwd) {
|
|
29
|
+
const { exec } = await import("node:child_process");
|
|
30
|
+
const { promisify } = await import("node:util");
|
|
31
|
+
const run = promisify(exec);
|
|
32
|
+
try {
|
|
33
|
+
const { stdout } = await run("git config --get push.default", {
|
|
34
|
+
cwd,
|
|
35
|
+
env: GIT_COMMAND_ENV,
|
|
36
|
+
});
|
|
37
|
+
const value = stdout.trim().toLowerCase();
|
|
38
|
+
return value === "" ? undefined : value;
|
|
39
|
+
}
|
|
40
|
+
catch {
|
|
41
|
+
// Exit 1 means "not set", which is git's default `simple` and needs no fix.
|
|
42
|
+
// Any other failure means this is not a readable git directory, which is
|
|
43
|
+
// equally nothing to do here.
|
|
44
|
+
return undefined;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Write the safe value into one git config scope.
|
|
49
|
+
* @param cwd - Project directory
|
|
50
|
+
* @param scope - Config scope flag, `--local` or `--worktree`
|
|
51
|
+
* @returns True when the write succeeded
|
|
52
|
+
*/
|
|
53
|
+
async function writePushDefault(cwd, scope) {
|
|
54
|
+
const { exec } = await import("node:child_process");
|
|
55
|
+
const { promisify } = await import("node:util");
|
|
56
|
+
const run = promisify(exec);
|
|
57
|
+
try {
|
|
58
|
+
await run(`git config ${scope} push.default ${SAFE_VALUE}`, {
|
|
59
|
+
cwd,
|
|
60
|
+
env: GIT_COMMAND_ENV,
|
|
61
|
+
});
|
|
62
|
+
return true;
|
|
63
|
+
}
|
|
64
|
+
catch {
|
|
65
|
+
return false;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Set `push.default` to the safe value and PROVE it took effect.
|
|
70
|
+
*
|
|
71
|
+
* A `--local` write is not always the last word. With
|
|
72
|
+
* `extensions.worktreeConfig` enabled, a `push.default` living in
|
|
73
|
+
* `config.worktree` outranks `config`, so the local write lands, exits zero,
|
|
74
|
+
* and the effective value is still `upstream` — a migration reporting success
|
|
75
|
+
* over a trap that is still armed. That is the same shape as the defect this
|
|
76
|
+
* whole change is about (a command that reports what it did rather than what
|
|
77
|
+
* happened), so it is checked rather than assumed: write, re-read the
|
|
78
|
+
* EFFECTIVE value, and escalate to `--worktree` only if the local write did
|
|
79
|
+
* not move it.
|
|
80
|
+
* @param cwd - Project directory
|
|
81
|
+
* @returns True only when the effective value is now safe
|
|
82
|
+
*/
|
|
83
|
+
async function applySafePushDefault(cwd) {
|
|
84
|
+
if (!(await writePushDefault(cwd, "--local")))
|
|
85
|
+
return false;
|
|
86
|
+
if (!INHERITING_VALUES.has((await readPushDefault(cwd)) ?? SAFE_VALUE)) {
|
|
87
|
+
return true;
|
|
88
|
+
}
|
|
89
|
+
if (!(await writePushDefault(cwd, "--worktree")))
|
|
90
|
+
return false;
|
|
91
|
+
return !INHERITING_VALUES.has((await readPushDefault(cwd)) ?? SAFE_VALUE);
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Migration: stop a push from inheriting its destination from the upstream ref.
|
|
95
|
+
*
|
|
96
|
+
* With `push.default=upstream`, git resolves a push's destination from the
|
|
97
|
+
* branch's upstream instead of from the branch it was told to push. A working
|
|
98
|
+
* branch created the ordinary way — `git checkout -b <branch> origin/main` —
|
|
99
|
+
* has `main` as its upstream, so the ordinary `git push -u origin <branch>`
|
|
100
|
+
* resolves to `refs/heads/main` and lands there. The push reports success;
|
|
101
|
+
* branch protection and every required check are bypassed; the operator is told
|
|
102
|
+
* only afterwards, if at all.
|
|
103
|
+
*
|
|
104
|
+
* Measured in Lisa's own repository (CodySwannGT/lisa#3495): two commits
|
|
105
|
+
* reached the default branch this way. Every detection control afterwards fired
|
|
106
|
+
* correctly — the bypass was reported, the agent force-push was refused, the
|
|
107
|
+
* release run was caught and cancelled — and the commits shipped in a published
|
|
108
|
+
* release regardless, because an ordinary unrelated merge cut a release before
|
|
109
|
+
* anyone could rewind. Nothing had prevented the original push, and prevention
|
|
110
|
+
* turned out to be the only control that would have mattered.
|
|
111
|
+
*
|
|
112
|
+
* The rewrite is deliberately narrow. Only `upstream` and `tracking` are
|
|
113
|
+
* touched; `simple`, `current`, `matching`, and `nothing` are left exactly as
|
|
114
|
+
* the host set them, because none of them resolve a destination the pusher did
|
|
115
|
+
* not name. The write is `--local`, which shadows a global setting rather than
|
|
116
|
+
* editing the user's global config — this repository's problem to fix is this
|
|
117
|
+
* repository, not the machine.
|
|
118
|
+
*
|
|
119
|
+
* This is one half of the fix and the weaker half: it disarms the trap but
|
|
120
|
+
* cannot bind a clone made before it ran, and it does not survive a host
|
|
121
|
+
* setting the value back. The `validate-push-destination` guard in the pre-push
|
|
122
|
+
* hook is the other half, and it reads the destination git actually resolved
|
|
123
|
+
* rather than the config that produced it.
|
|
124
|
+
*/
|
|
125
|
+
export class EnsurePushDefaultSafeMigration {
|
|
126
|
+
name = "ensure-push-default-safe";
|
|
127
|
+
description = `Set push.default=${SAFE_VALUE} locally where it currently resolves a push's destination from the upstream ref, so a feature-branch push cannot land on the default branch`;
|
|
128
|
+
/**
|
|
129
|
+
* Applies only where `push.default` currently inherits the destination.
|
|
130
|
+
* @param ctx - Migration context
|
|
131
|
+
* @returns True when there is work to do
|
|
132
|
+
*/
|
|
133
|
+
async applies(ctx) {
|
|
134
|
+
const current = await readPushDefault(ctx.projectDir);
|
|
135
|
+
return current !== undefined && INHERITING_VALUES.has(current);
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* Rewrite the inheriting value to the safe one in local git config.
|
|
139
|
+
* @param ctx - Migration context
|
|
140
|
+
* @returns Result describing the action taken
|
|
141
|
+
*/
|
|
142
|
+
async apply(ctx) {
|
|
143
|
+
const current = await readPushDefault(ctx.projectDir);
|
|
144
|
+
if (current === undefined || !INHERITING_VALUES.has(current)) {
|
|
145
|
+
return { name: this.name, action: "noop" };
|
|
146
|
+
}
|
|
147
|
+
const detail = `push.default was "${current}", which resolves a push's destination from the branch's upstream — a feature branch created from the default branch would push straight to it. Set to "${SAFE_VALUE}" locally.`;
|
|
148
|
+
if (ctx.dryRun) {
|
|
149
|
+
ctx.logger.dry(`Would set push.default=${SAFE_VALUE} (was "${current}")`);
|
|
150
|
+
return { name: this.name, action: "applied", message: detail };
|
|
151
|
+
}
|
|
152
|
+
if (!(await applySafePushDefault(ctx.projectDir))) {
|
|
153
|
+
return { name: this.name, action: "noop" };
|
|
154
|
+
}
|
|
155
|
+
ctx.logger.success(detail);
|
|
156
|
+
return { name: this.name, action: "applied", message: detail };
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
//# sourceMappingURL=ensure-push-default-safe.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ensure-push-default-safe.js","sourceRoot":"","sources":["../../src/migrations/ensure-push-default-safe.ts"],"names":[],"mappings":"AAMA,sFAAsF;AACtF,MAAM,eAAe,GAAsB;IACzC,IAAI,EAAE,+BAA+B;CACtC,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,iBAAiB,GAAwB,IAAI,GAAG,CAAC;IACrD,UAAU;IACV,UAAU;CACX,CAAC,CAAC;AAEH,iFAAiF;AACjF,MAAM,UAAU,GAAG,QAAQ,CAAC;AAE5B;;;;;;;;;GASG;AACH,KAAK,UAAU,eAAe,CAAC,GAAW;IACxC,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,MAAM,CAAC,oBAAoB,CAAC,CAAC;IACpD,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,MAAM,CAAC,WAAW,CAAC,CAAC;IAChD,MAAM,GAAG,GAAG,SAAS,CAAC,IAAI,CAAC,CAAC;IAC5B,IAAI,CAAC;QACH,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM,GAAG,CAAC,+BAA+B,EAAE;YAC5D,GAAG;YACH,GAAG,EAAE,eAAe;SACrB,CAAC,CAAC;QACH,MAAM,KAAK,GAAG,MAAM,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC;QAC1C,OAAO,KAAK,KAAK,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC;IAC1C,CAAC;IAAC,MAAM,CAAC;QACP,4EAA4E;QAC5E,yEAAyE;QACzE,8BAA8B;QAC9B,OAAO,SAAS,CAAC;IACnB,CAAC;AACH,CAAC;AAED;;;;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-e2e-work
|
|
|
9
9
|
export { EnsureLisaPostinstallMigration } from "./ensure-lisa-postinstall.js";
|
|
10
10
|
export { EnsureOxlintBaseConfigsMigration } from "./ensure-oxlint-base-configs.js";
|
|
11
11
|
export { EnsurePlaywrightDedicatedCallerMigration } from "./ensure-playwright-dedicated-caller.js";
|
|
12
|
+
export { EnsurePushDefaultSafeMigration } from "./ensure-push-default-safe.js";
|
|
12
13
|
export { EnsureQualityCallerScopesMigration } from "./ensure-quality-caller-scopes.js";
|
|
13
14
|
export { EnsureSeededGatesMigration } from "./ensure-seeded-gates.js";
|
|
14
15
|
export { EnsureSonarExcludesLisaHarnessMigration } from "./ensure-sonar-excludes-lisa-harness.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/migrations/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/migrations/index.ts"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EACV,SAAS,EACT,gBAAgB,EAChB,eAAe,EAChB,MAAM,0BAA0B,CAAC;AAElC,YAAY,EACV,SAAS,EACT,eAAe,EACf,gBAAgB,EAChB,eAAe,GAChB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,yCAAyC,EAAE,MAAM,2CAA2C,CAAC;AACtG,OAAO,EAAE,6CAA6C,EAAE,MAAM,gDAAgD,CAAC;AAC/G,OAAO,EAAE,qCAAqC,EAAE,MAAM,qCAAqC,CAAC;AAC5F,OAAO,EAAE,mCAAmC,EAAE,MAAM,oCAAoC,CAAC;AACzF,OAAO,EAAE,uCAAuC,EAAE,MAAM,wCAAwC,CAAC;AACjG,OAAO,EAAE,qCAAqC,EAAE,MAAM,uCAAuC,CAAC;AAC9F,OAAO,EAAE,8BAA8B,EAAE,MAAM,8BAA8B,CAAC;AAC9E,OAAO,EAAE,gCAAgC,EAAE,MAAM,iCAAiC,CAAC;AACnF,OAAO,EAAE,wCAAwC,EAAE,MAAM,yCAAyC,CAAC;AACnG,OAAO,EAAE,8BAA8B,EAAE,MAAM,+BAA+B,CAAC;AAC/E,OAAO,EAAE,kCAAkC,EAAE,MAAM,mCAAmC,CAAC;AACvF,OAAO,EAAE,0BAA0B,EAAE,MAAM,0BAA0B,CAAC;AACtE,OAAO,EAAE,uCAAuC,EAAE,MAAM,yCAAyC,CAAC;AAClG,OAAO,EAAE,yCAAyC,EAAE,MAAM,2CAA2C,CAAC;AACtG,OAAO,EAAE,iCAAiC,EAAE,MAAM,kCAAkC,CAAC;AACrF,OAAO,EAAE,oCAAoC,EAAE,MAAM,qCAAqC,CAAC;AAC3F,OAAO,EAAE,oCAAoC,EAAE,MAAM,qCAAqC,CAAC;AAC3F,OAAO,EAAE,gCAAgC,EAAE,MAAM,gCAAgC,CAAC;AAElF;;GAEG;AACH,qBAAa,iBAAiB;IAC5B,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAuB;IAElD;;;OAGG;gBACS,UAAU,CAAC,EAAE,SAAS,SAAS,EAAE;IAuB7C;;;OAGG;IACH,MAAM,IAAI,SAAS,SAAS,EAAE;IAI9B;;;;OAIG;IACG,mBAAmB,CAAC,GAAG,EAAE,gBAAgB,GAAG,OAAO,CAAC,IAAI,CAAC;IAQ/D;;;;OAIG;IACG,MAAM,CAAC,GAAG,EAAE,gBAAgB,GAAG,OAAO,CAAC,SAAS,eAAe,EAAE,CAAC;CAazE;AAED;;;GAGG;AACH,wBAAgB,uBAAuB,IAAI,iBAAiB,CAE3D"}
|
package/dist/migrations/index.js
CHANGED
|
@@ -7,6 +7,7 @@ import { EnsureNightlyE2EWorkflowPinsMigration } from "./ensure-nightly-e2e-work
|
|
|
7
7
|
import { EnsureLisaPostinstallMigration } from "./ensure-lisa-postinstall.js";
|
|
8
8
|
import { EnsureOxlintBaseConfigsMigration } from "./ensure-oxlint-base-configs.js";
|
|
9
9
|
import { EnsurePlaywrightDedicatedCallerMigration } from "./ensure-playwright-dedicated-caller.js";
|
|
10
|
+
import { EnsurePushDefaultSafeMigration } from "./ensure-push-default-safe.js";
|
|
10
11
|
import { EnsureQualityCallerScopesMigration } from "./ensure-quality-caller-scopes.js";
|
|
11
12
|
import { EnsureSeededGatesMigration } from "./ensure-seeded-gates.js";
|
|
12
13
|
import { EnsureSonarExcludesLisaHarnessMigration } from "./ensure-sonar-excludes-lisa-harness.js";
|
|
@@ -24,6 +25,7 @@ export { EnsureNightlyE2EWorkflowPinsMigration } from "./ensure-nightly-e2e-work
|
|
|
24
25
|
export { EnsureLisaPostinstallMigration } from "./ensure-lisa-postinstall.js";
|
|
25
26
|
export { EnsureOxlintBaseConfigsMigration } from "./ensure-oxlint-base-configs.js";
|
|
26
27
|
export { EnsurePlaywrightDedicatedCallerMigration } from "./ensure-playwright-dedicated-caller.js";
|
|
28
|
+
export { EnsurePushDefaultSafeMigration } from "./ensure-push-default-safe.js";
|
|
27
29
|
export { EnsureQualityCallerScopesMigration } from "./ensure-quality-caller-scopes.js";
|
|
28
30
|
export { EnsureSeededGatesMigration } from "./ensure-seeded-gates.js";
|
|
29
31
|
export { EnsureSonarExcludesLisaHarnessMigration } from "./ensure-sonar-excludes-lisa-harness.js";
|
|
@@ -54,6 +56,7 @@ export class MigrationRegistry {
|
|
|
54
56
|
new EnsureLisaPostinstallMigration(),
|
|
55
57
|
new EnsureOxlintBaseConfigsMigration(),
|
|
56
58
|
new EnsurePlaywrightDedicatedCallerMigration(),
|
|
59
|
+
new EnsurePushDefaultSafeMigration(),
|
|
57
60
|
new EnsureQualityCallerScopesMigration(),
|
|
58
61
|
new EnsureSeededGatesMigration(),
|
|
59
62
|
new EnsureSonarExcludesLisaHarnessMigration(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/migrations/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yCAAyC,EAAE,MAAM,2CAA2C,CAAC;AACtG,OAAO,EAAE,6CAA6C,EAAE,MAAM,gDAAg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CAAC,gBAAgB,EAAE,CAAC;gBAC/B,MAAM,SAAS,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC;YACxC,CAAC;QACH,CAAC;IACH,CAAC;IAED;;;;OAIG;IACH,KAAK,CAAC,MAAM,CAAC,GAAqB;QAChC,MAAM,OAAO,GAAsB,EAAE,CAAC;QACtC,KAAK,MAAM,SAAS,IAAI,IAAI,CAAC,UAAU,EAAE,CAAC;YACxC,MAAM,SAAS,GAAG,MAAM,SAAS,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;YAC/C,IAAI,CAAC,SAAS,EAAE,CAAC;gBACf,OAAO,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC;gBAC1D,SAAS;YACX,CAAC;YACD,MAAM,MAAM,GAAG,MAAM,SAAS,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;YAC1C,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACvB,CAAC;QACD,OAAO,OAAO,CAAC;IACjB,CAAC;CACF;AAED;;;GAGG;AACH,MAAM,UAAU,uBAAuB;IACrC,OAAO,IAAI,iBAAiB,EAAE,CAAC;AACjC,CAAC"}
|
package/package.json
CHANGED
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
"cleanup:github-branches": "bash scripts/cleanup-github-branches.sh",
|
|
35
35
|
"github:status": "bash scripts/github-status-check.sh",
|
|
36
36
|
"setup:deploy-key": "bash scripts/setup-deploy-key.sh",
|
|
37
|
+
"lisa:enforcement-census": "bun run build:dist:in-place && node scripts/lisa-enforcement-census.mjs",
|
|
37
38
|
"lisa:update:local": "bash scripts/lisa-update-local.sh",
|
|
38
39
|
"lisa:commit-and-pr:local": "bash scripts/lisa-commit-and-pr-local.sh",
|
|
39
40
|
"prepublishOnly": "$npm_execpath run build",
|
|
@@ -161,7 +162,7 @@
|
|
|
161
162
|
"zod-validation-error": "^4.0.0"
|
|
162
163
|
},
|
|
163
164
|
"name": "@codyswann/lisa",
|
|
164
|
-
"version": "4.27.
|
|
165
|
+
"version": "4.27.6",
|
|
165
166
|
"description": "Claude Code governance framework that applies guardrails, guidance, and automated enforcement to projects",
|
|
166
167
|
"main": "dist/index.js",
|
|
167
168
|
"exports": {
|
|
@@ -305,6 +306,6 @@
|
|
|
305
306
|
"test": "tests"
|
|
306
307
|
},
|
|
307
308
|
"types": "./dist/index.d.ts",
|
|
308
|
-
"lisaReleaseCommit": "
|
|
309
|
-
"gitHead": "
|
|
309
|
+
"lisaReleaseCommit": "ca4a03afc00b14c943a2b4eda506f4c9483ca4ec",
|
|
310
|
+
"gitHead": "ca4a03afc00b14c943a2b4eda506f4c9483ca4ec"
|
|
310
311
|
}
|
|
@@ -207,6 +207,29 @@ project: the per-check marker dedupe converges under a single scheduled runner,
|
|
|
207
207
|
and two concurrent runs can both observe an empty open-ticket set and both
|
|
208
208
|
file. Tear-down removes it with the rest of the `lisa-auto-<project>-*` set.
|
|
209
209
|
|
|
210
|
+
**Optional automation — the fleet enforcement census.** Register
|
|
211
|
+
`lisa-auto-<project>-enforcement-census` running `/lisa:enforcement-census`
|
|
212
|
+
once a **day** only when BOTH are true of the repository being set up: it
|
|
213
|
+
maintains a fleet roster (`.lisa.workspaces.json`, the machine-local list of
|
|
214
|
+
host checkouts), and it provides the `/lisa:enforcement-census` command. Both
|
|
215
|
+
hold in the Lisa monorepo and in no ordinary host project, which is the point —
|
|
216
|
+
the census measures OTHER checkouts on the same machine, so only the workstation
|
|
217
|
+
holding the roster has a fleet to measure. Where either is absent, register
|
|
218
|
+
nothing — a host project has no fleet, and scheduling a command it does not
|
|
219
|
+
have would be a loop that fails every night — and report the census as SKIPPED
|
|
220
|
+
naming which prerequisite was missing, per the report contract. Registering
|
|
221
|
+
nothing is correct; omitting it from the report is not, because a silently
|
|
222
|
+
absent loop is indistinguishable from one that was never asked for.
|
|
223
|
+
|
|
224
|
+
It **reports and never gates**: no finding about the fleet changes an exit
|
|
225
|
+
status, and no run files a ticket. Enforcement resolves from the checkout an
|
|
226
|
+
agent is working in, so a checkout resolving no guard is protected by nothing
|
|
227
|
+
while looking identical, from inside a session, to one protected by an old
|
|
228
|
+
policy — and nothing was re-measuring that (CodySwannGT/lisa#3490). The
|
|
229
|
+
per-checkout half of the same finding is carried by `lisa doctor`, which every
|
|
230
|
+
host does get. Tear-down removes it with the rest of the `lisa-auto-<project>-*`
|
|
231
|
+
set.
|
|
232
|
+
|
|
210
233
|
**Exploratory PRD pressure gate.** `auto-start-prds=true` means "create PRDs in the ready PRD
|
|
211
234
|
lifecycle when the PRD queue has capacity," not "always create a new ready PRD." The
|
|
212
235
|
`exploratory-prds` automation uses the same PRD source queue and pressure roles reported by
|
|
@@ -127,8 +127,15 @@ source-only work downward.
|
|
|
127
127
|
If residue remains after applying the appropriate pattern, abort that hop and
|
|
128
128
|
report the unresolved files and the evidence gathered. Do not silently choose
|
|
129
129
|
source-wins when the target may already contain the change or has moved the code.
|
|
130
|
-
5. **Push** the sync branch
|
|
130
|
+
5. **Push** the sync branch with a fully qualified destination refspec:
|
|
131
|
+
`git push origin sync/<source>-to-<target>:refs/heads/sync/<source>-to-<target> --force-with-lease`.
|
|
131
132
|
Only ever force-push the sync branch — never the target environment branch.
|
|
133
|
+
The refspec is not decoration. `push -u origin <branch>` names only a
|
|
134
|
+
source, so git resolves the destination from the branch's upstream; where
|
|
135
|
+
`push.default` is `upstream` and the sync branch was created from the
|
|
136
|
+
target, that resolves to the TARGET ENVIRONMENT BRANCH and a force-push
|
|
137
|
+
lands there (CodySwannGT/lisa#3495). Naming the destination in full is
|
|
138
|
+
what makes the sentence above enforceable rather than advisory.
|
|
132
139
|
6. **Open or update the PR.** Check for an existing open PR
|
|
133
140
|
(`gh pr list --head sync/<source>-to-<target> --base <target> --state open`).
|
|
134
141
|
Update its body if it exists, otherwise create it
|
|
@@ -207,6 +207,29 @@ project: the per-check marker dedupe converges under a single scheduled runner,
|
|
|
207
207
|
and two concurrent runs can both observe an empty open-ticket set and both
|
|
208
208
|
file. Tear-down removes it with the rest of the `lisa-auto-<project>-*` set.
|
|
209
209
|
|
|
210
|
+
**Optional automation — the fleet enforcement census.** Register
|
|
211
|
+
`lisa-auto-<project>-enforcement-census` running `/lisa:enforcement-census`
|
|
212
|
+
once a **day** only when BOTH are true of the repository being set up: it
|
|
213
|
+
maintains a fleet roster (`.lisa.workspaces.json`, the machine-local list of
|
|
214
|
+
host checkouts), and it provides the `/lisa:enforcement-census` command. Both
|
|
215
|
+
hold in the Lisa monorepo and in no ordinary host project, which is the point —
|
|
216
|
+
the census measures OTHER checkouts on the same machine, so only the workstation
|
|
217
|
+
holding the roster has a fleet to measure. Where either is absent, register
|
|
218
|
+
nothing — a host project has no fleet, and scheduling a command it does not
|
|
219
|
+
have would be a loop that fails every night — and report the census as SKIPPED
|
|
220
|
+
naming which prerequisite was missing, per the report contract. Registering
|
|
221
|
+
nothing is correct; omitting it from the report is not, because a silently
|
|
222
|
+
absent loop is indistinguishable from one that was never asked for.
|
|
223
|
+
|
|
224
|
+
It **reports and never gates**: no finding about the fleet changes an exit
|
|
225
|
+
status, and no run files a ticket. Enforcement resolves from the checkout an
|
|
226
|
+
agent is working in, so a checkout resolving no guard is protected by nothing
|
|
227
|
+
while looking identical, from inside a session, to one protected by an old
|
|
228
|
+
policy — and nothing was re-measuring that (CodySwannGT/lisa#3490). The
|
|
229
|
+
per-checkout half of the same finding is carried by `lisa doctor`, which every
|
|
230
|
+
host does get. Tear-down removes it with the rest of the `lisa-auto-<project>-*`
|
|
231
|
+
set.
|
|
232
|
+
|
|
210
233
|
**Exploratory PRD pressure gate.** `auto-start-prds=true` means "create PRDs in the ready PRD
|
|
211
234
|
lifecycle when the PRD queue has capacity," not "always create a new ready PRD." The
|
|
212
235
|
`exploratory-prds` automation uses the same PRD source queue and pressure roles reported by
|
|
@@ -127,8 +127,15 @@ source-only work downward.
|
|
|
127
127
|
If residue remains after applying the appropriate pattern, abort that hop and
|
|
128
128
|
report the unresolved files and the evidence gathered. Do not silently choose
|
|
129
129
|
source-wins when the target may already contain the change or has moved the code.
|
|
130
|
-
5. **Push** the sync branch
|
|
130
|
+
5. **Push** the sync branch with a fully qualified destination refspec:
|
|
131
|
+
`git push origin sync/<source>-to-<target>:refs/heads/sync/<source>-to-<target> --force-with-lease`.
|
|
131
132
|
Only ever force-push the sync branch — never the target environment branch.
|
|
133
|
+
The refspec is not decoration. `push -u origin <branch>` names only a
|
|
134
|
+
source, so git resolves the destination from the branch's upstream; where
|
|
135
|
+
`push.default` is `upstream` and the sync branch was created from the
|
|
136
|
+
target, that resolves to the TARGET ENVIRONMENT BRANCH and a force-push
|
|
137
|
+
lands there (CodySwannGT/lisa#3495). Naming the destination in full is
|
|
138
|
+
what makes the sentence above enforceable rather than advisory.
|
|
132
139
|
6. **Open or update the PR.** Check for an existing open PR
|
|
133
140
|
(`gh pr list --head sync/<source>-to-<target> --base <target> --state open`).
|
|
134
141
|
Update its body if it exists, otherwise create it
|
|
@@ -207,6 +207,29 @@ project: the per-check marker dedupe converges under a single scheduled runner,
|
|
|
207
207
|
and two concurrent runs can both observe an empty open-ticket set and both
|
|
208
208
|
file. Tear-down removes it with the rest of the `lisa-auto-<project>-*` set.
|
|
209
209
|
|
|
210
|
+
**Optional automation — the fleet enforcement census.** Register
|
|
211
|
+
`lisa-auto-<project>-enforcement-census` running `/lisa:enforcement-census`
|
|
212
|
+
once a **day** only when BOTH are true of the repository being set up: it
|
|
213
|
+
maintains a fleet roster (`.lisa.workspaces.json`, the machine-local list of
|
|
214
|
+
host checkouts), and it provides the `/lisa:enforcement-census` command. Both
|
|
215
|
+
hold in the Lisa monorepo and in no ordinary host project, which is the point —
|
|
216
|
+
the census measures OTHER checkouts on the same machine, so only the workstation
|
|
217
|
+
holding the roster has a fleet to measure. Where either is absent, register
|
|
218
|
+
nothing — a host project has no fleet, and scheduling a command it does not
|
|
219
|
+
have would be a loop that fails every night — and report the census as SKIPPED
|
|
220
|
+
naming which prerequisite was missing, per the report contract. Registering
|
|
221
|
+
nothing is correct; omitting it from the report is not, because a silently
|
|
222
|
+
absent loop is indistinguishable from one that was never asked for.
|
|
223
|
+
|
|
224
|
+
It **reports and never gates**: no finding about the fleet changes an exit
|
|
225
|
+
status, and no run files a ticket. Enforcement resolves from the checkout an
|
|
226
|
+
agent is working in, so a checkout resolving no guard is protected by nothing
|
|
227
|
+
while looking identical, from inside a session, to one protected by an old
|
|
228
|
+
policy — and nothing was re-measuring that (CodySwannGT/lisa#3490). The
|
|
229
|
+
per-checkout half of the same finding is carried by `lisa doctor`, which every
|
|
230
|
+
host does get. Tear-down removes it with the rest of the `lisa-auto-<project>-*`
|
|
231
|
+
set.
|
|
232
|
+
|
|
210
233
|
**Exploratory PRD pressure gate.** `auto-start-prds=true` means "create PRDs in the ready PRD
|
|
211
234
|
lifecycle when the PRD queue has capacity," not "always create a new ready PRD." The
|
|
212
235
|
`exploratory-prds` automation uses the same PRD source queue and pressure roles reported by
|
|
@@ -127,8 +127,15 @@ source-only work downward.
|
|
|
127
127
|
If residue remains after applying the appropriate pattern, abort that hop and
|
|
128
128
|
report the unresolved files and the evidence gathered. Do not silently choose
|
|
129
129
|
source-wins when the target may already contain the change or has moved the code.
|
|
130
|
-
5. **Push** the sync branch
|
|
130
|
+
5. **Push** the sync branch with a fully qualified destination refspec:
|
|
131
|
+
`git push origin sync/<source>-to-<target>:refs/heads/sync/<source>-to-<target> --force-with-lease`.
|
|
131
132
|
Only ever force-push the sync branch — never the target environment branch.
|
|
133
|
+
The refspec is not decoration. `push -u origin <branch>` names only a
|
|
134
|
+
source, so git resolves the destination from the branch's upstream; where
|
|
135
|
+
`push.default` is `upstream` and the sync branch was created from the
|
|
136
|
+
target, that resolves to the TARGET ENVIRONMENT BRANCH and a force-push
|
|
137
|
+
lands there (CodySwannGT/lisa#3495). Naming the destination in full is
|
|
138
|
+
what makes the sentence above enforceable rather than advisory.
|
|
132
139
|
6. **Open or update the PR.** Check for an existing open PR
|
|
133
140
|
(`gh pr list --head sync/<source>-to-<target> --base <target> --state open`).
|
|
134
141
|
Update its body if it exists, otherwise create it
|
|
@@ -207,6 +207,29 @@ project: the per-check marker dedupe converges under a single scheduled runner,
|
|
|
207
207
|
and two concurrent runs can both observe an empty open-ticket set and both
|
|
208
208
|
file. Tear-down removes it with the rest of the `lisa-auto-<project>-*` set.
|
|
209
209
|
|
|
210
|
+
**Optional automation — the fleet enforcement census.** Register
|
|
211
|
+
`lisa-auto-<project>-enforcement-census` running `/lisa:enforcement-census`
|
|
212
|
+
once a **day** only when BOTH are true of the repository being set up: it
|
|
213
|
+
maintains a fleet roster (`.lisa.workspaces.json`, the machine-local list of
|
|
214
|
+
host checkouts), and it provides the `/lisa:enforcement-census` command. Both
|
|
215
|
+
hold in the Lisa monorepo and in no ordinary host project, which is the point —
|
|
216
|
+
the census measures OTHER checkouts on the same machine, so only the workstation
|
|
217
|
+
holding the roster has a fleet to measure. Where either is absent, register
|
|
218
|
+
nothing — a host project has no fleet, and scheduling a command it does not
|
|
219
|
+
have would be a loop that fails every night — and report the census as SKIPPED
|
|
220
|
+
naming which prerequisite was missing, per the report contract. Registering
|
|
221
|
+
nothing is correct; omitting it from the report is not, because a silently
|
|
222
|
+
absent loop is indistinguishable from one that was never asked for.
|
|
223
|
+
|
|
224
|
+
It **reports and never gates**: no finding about the fleet changes an exit
|
|
225
|
+
status, and no run files a ticket. Enforcement resolves from the checkout an
|
|
226
|
+
agent is working in, so a checkout resolving no guard is protected by nothing
|
|
227
|
+
while looking identical, from inside a session, to one protected by an old
|
|
228
|
+
policy — and nothing was re-measuring that (CodySwannGT/lisa#3490). The
|
|
229
|
+
per-checkout half of the same finding is carried by `lisa doctor`, which every
|
|
230
|
+
host does get. Tear-down removes it with the rest of the `lisa-auto-<project>-*`
|
|
231
|
+
set.
|
|
232
|
+
|
|
210
233
|
**Exploratory PRD pressure gate.** `auto-start-prds=true` means "create PRDs in the ready PRD
|
|
211
234
|
lifecycle when the PRD queue has capacity," not "always create a new ready PRD." The
|
|
212
235
|
`exploratory-prds` automation uses the same PRD source queue and pressure roles reported by
|
|
@@ -127,8 +127,15 @@ source-only work downward.
|
|
|
127
127
|
If residue remains after applying the appropriate pattern, abort that hop and
|
|
128
128
|
report the unresolved files and the evidence gathered. Do not silently choose
|
|
129
129
|
source-wins when the target may already contain the change or has moved the code.
|
|
130
|
-
5. **Push** the sync branch
|
|
130
|
+
5. **Push** the sync branch with a fully qualified destination refspec:
|
|
131
|
+
`git push origin sync/<source>-to-<target>:refs/heads/sync/<source>-to-<target> --force-with-lease`.
|
|
131
132
|
Only ever force-push the sync branch — never the target environment branch.
|
|
133
|
+
The refspec is not decoration. `push -u origin <branch>` names only a
|
|
134
|
+
source, so git resolves the destination from the branch's upstream; where
|
|
135
|
+
`push.default` is `upstream` and the sync branch was created from the
|
|
136
|
+
target, that resolves to the TARGET ENVIRONMENT BRANCH and a force-push
|
|
137
|
+
lands there (CodySwannGT/lisa#3495). Naming the destination in full is
|
|
138
|
+
what makes the sentence above enforceable rather than advisory.
|
|
132
139
|
6. **Open or update the PR.** Check for an existing open PR
|
|
133
140
|
(`gh pr list --head sync/<source>-to-<target> --base <target> --state open`).
|
|
134
141
|
Update its body if it exists, otherwise create it
|
|
@@ -207,6 +207,29 @@ project: the per-check marker dedupe converges under a single scheduled runner,
|
|
|
207
207
|
and two concurrent runs can both observe an empty open-ticket set and both
|
|
208
208
|
file. Tear-down removes it with the rest of the `lisa-auto-<project>-*` set.
|
|
209
209
|
|
|
210
|
+
**Optional automation — the fleet enforcement census.** Register
|
|
211
|
+
`lisa-auto-<project>-enforcement-census` running `/lisa:enforcement-census`
|
|
212
|
+
once a **day** only when BOTH are true of the repository being set up: it
|
|
213
|
+
maintains a fleet roster (`.lisa.workspaces.json`, the machine-local list of
|
|
214
|
+
host checkouts), and it provides the `/lisa:enforcement-census` command. Both
|
|
215
|
+
hold in the Lisa monorepo and in no ordinary host project, which is the point —
|
|
216
|
+
the census measures OTHER checkouts on the same machine, so only the workstation
|
|
217
|
+
holding the roster has a fleet to measure. Where either is absent, register
|
|
218
|
+
nothing — a host project has no fleet, and scheduling a command it does not
|
|
219
|
+
have would be a loop that fails every night — and report the census as SKIPPED
|
|
220
|
+
naming which prerequisite was missing, per the report contract. Registering
|
|
221
|
+
nothing is correct; omitting it from the report is not, because a silently
|
|
222
|
+
absent loop is indistinguishable from one that was never asked for.
|
|
223
|
+
|
|
224
|
+
It **reports and never gates**: no finding about the fleet changes an exit
|
|
225
|
+
status, and no run files a ticket. Enforcement resolves from the checkout an
|
|
226
|
+
agent is working in, so a checkout resolving no guard is protected by nothing
|
|
227
|
+
while looking identical, from inside a session, to one protected by an old
|
|
228
|
+
policy — and nothing was re-measuring that (CodySwannGT/lisa#3490). The
|
|
229
|
+
per-checkout half of the same finding is carried by `lisa doctor`, which every
|
|
230
|
+
host does get. Tear-down removes it with the rest of the `lisa-auto-<project>-*`
|
|
231
|
+
set.
|
|
232
|
+
|
|
210
233
|
**Exploratory PRD pressure gate.** `auto-start-prds=true` means "create PRDs in the ready PRD
|
|
211
234
|
lifecycle when the PRD queue has capacity," not "always create a new ready PRD." The
|
|
212
235
|
`exploratory-prds` automation uses the same PRD source queue and pressure roles reported by
|