@codyswann/lisa 5.14.1 → 5.14.3
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/check-npm-publish-landed.mjs +5 -2
- package/all/copy-overwrite/scripts/lib/gate-failure-diagnosis.mjs +14 -18
- package/all/copy-overwrite/scripts/lib/invoked-as-script.d.mts +5 -0
- package/all/copy-overwrite/scripts/lisa-commit-msg-gates.mjs +1 -1
- package/all/copy-overwrite/scripts/lisa-destructive-guard.mjs +4 -4
- package/all/copy-overwrite/scripts/lisa-environment-prepare.mjs +2 -2
- package/all/copy-overwrite/scripts/lisa-gates.mjs +61 -30
- package/all/copy-overwrite/scripts/lisa-reconcile-policy.mjs +5 -3
- package/all/copy-overwrite/scripts/lisa-run-gates.mjs +2 -2
- package/all/copy-overwrite/scripts/lisa-work-item.mjs +3 -2
- package/all/copy-overwrite/scripts/npm-updater-helper-graph.json +6 -6
- package/all/copy-overwrite/scripts/threshold-ratchet-families.mjs +0 -8
- package/dist/cli/lisa-test-run.js +0 -1
- package/dist/cli/lisa-test-run.js.map +1 -1
- package/dist/core/lisa-owned-hash-ledger.d.ts.map +1 -1
- package/dist/core/lisa-owned-hash-ledger.js +30 -0
- package/dist/core/lisa-owned-hash-ledger.js.map +1 -1
- package/dist/core/nightly-e2e-guard-behavior-certificate.d.ts +5 -0
- package/dist/core/nightly-e2e-guard-behavior-certificate.d.ts.map +1 -1
- package/dist/core/nightly-e2e-guard-behavior-certificate.js +9 -2
- package/dist/core/nightly-e2e-guard-behavior-certificate.js.map +1 -1
- package/dist/core/upstream-evidence-manifest.d.ts.map +1 -1
- package/dist/core/upstream-evidence-manifest.js +47 -42
- package/dist/core/upstream-evidence-manifest.js.map +1 -1
- package/package.json +4 -4
- 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-detect-tooling/scripts/detect-tooling.mjs +3 -3
- package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/aws-bootstrap.mjs +2 -2
- package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/doctor-secrets.mjs +1 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/publish-aws-bootstrap.mjs +4 -3
- package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/sync-secret-to-ci.mjs +1 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/tools-from-notes.mjs +1 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-setup-remote-env/scripts/toolchain.mjs +2 -2
- package/plugins/lisa/.codex-plugin/skills/lisa-setup-workstation/scripts/catalogue.mjs +32 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-setup-workstation/scripts/cli.mjs +2 -2
- package/plugins/lisa/.codex-plugin/skills/lisa-setup-workstation/scripts/workstation.mjs +22 -7
- package/plugins/lisa/hooks/threshold-ratchet-families.mjs +0 -8
- package/plugins/lisa/rules/eager/coding-philosophy.md +1 -0
- package/plugins/lisa/rules/reference/coding-philosophy.md +20 -0
- package/plugins/lisa/scripts/design-bindings-probe.mjs +37 -8
- package/plugins/lisa/scripts/design-intake-gate.mjs +23 -5
- package/plugins/lisa/scripts/design-source-gate.mjs +5 -5
- package/plugins/lisa/scripts/lifecycle-label-trust.mjs +1 -1
- package/plugins/lisa/scripts/rollup-blocker-classification.mjs +41 -4
- package/plugins/lisa/skills/lisa-detect-tooling/scripts/detect-tooling.mjs +3 -3
- package/plugins/lisa/skills/lisa-secrets-access/scripts/aws-bootstrap.mjs +2 -2
- package/plugins/lisa/skills/lisa-secrets-access/scripts/doctor-secrets.mjs +1 -1
- package/plugins/lisa/skills/lisa-secrets-access/scripts/publish-aws-bootstrap.mjs +4 -3
- package/plugins/lisa/skills/lisa-secrets-access/scripts/sync-secret-to-ci.mjs +1 -1
- package/plugins/lisa/skills/lisa-secrets-access/scripts/tools-from-notes.mjs +1 -1
- package/plugins/lisa/skills/lisa-setup-remote-env/scripts/toolchain.mjs +2 -2
- package/plugins/lisa/skills/lisa-setup-workstation/scripts/catalogue.mjs +32 -1
- package/plugins/lisa/skills/lisa-setup-workstation/scripts/cli.mjs +2 -2
- package/plugins/lisa/skills/lisa-setup-workstation/scripts/workstation.mjs +22 -7
- package/plugins/lisa-agy/plugin.json +1 -1
- package/plugins/lisa-agy/scripts/design-bindings-probe.mjs +37 -8
- package/plugins/lisa-agy/scripts/design-intake-gate.mjs +23 -5
- package/plugins/lisa-agy/scripts/design-source-gate.mjs +5 -5
- package/plugins/lisa-agy/scripts/lifecycle-label-trust.mjs +1 -1
- package/plugins/lisa-agy/scripts/rollup-blocker-classification.mjs +41 -4
- package/plugins/lisa-agy/skills/lisa-detect-tooling/scripts/detect-tooling.mjs +3 -3
- package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/aws-bootstrap.mjs +2 -2
- package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/doctor-secrets.mjs +1 -1
- package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/publish-aws-bootstrap.mjs +4 -3
- package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/sync-secret-to-ci.mjs +1 -1
- package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/tools-from-notes.mjs +1 -1
- package/plugins/lisa-agy/skills/lisa-setup-remote-env/scripts/toolchain.mjs +2 -2
- package/plugins/lisa-agy/skills/lisa-setup-workstation/scripts/catalogue.mjs +32 -1
- package/plugins/lisa-agy/skills/lisa-setup-workstation/scripts/cli.mjs +2 -2
- package/plugins/lisa-agy/skills/lisa-setup-workstation/scripts/workstation.mjs +22 -7
- 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-cdk-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-copilot/hooks/threshold-ratchet-families.mjs +0 -8
- package/plugins/lisa-copilot/rules/eager/coding-philosophy.md +1 -0
- package/plugins/lisa-copilot/rules/reference/coding-philosophy.md +20 -0
- package/plugins/lisa-copilot/scripts/design-bindings-probe.mjs +37 -8
- package/plugins/lisa-copilot/scripts/design-intake-gate.mjs +23 -5
- package/plugins/lisa-copilot/scripts/design-source-gate.mjs +5 -5
- package/plugins/lisa-copilot/scripts/lifecycle-label-trust.mjs +1 -1
- package/plugins/lisa-copilot/scripts/rollup-blocker-classification.mjs +41 -4
- package/plugins/lisa-copilot/skills/lisa-detect-tooling/scripts/detect-tooling.mjs +3 -3
- package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/aws-bootstrap.mjs +2 -2
- package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/doctor-secrets.mjs +1 -1
- package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/publish-aws-bootstrap.mjs +4 -3
- package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/sync-secret-to-ci.mjs +1 -1
- package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/tools-from-notes.mjs +1 -1
- package/plugins/lisa-copilot/skills/lisa-setup-remote-env/scripts/toolchain.mjs +2 -2
- package/plugins/lisa-copilot/skills/lisa-setup-workstation/scripts/catalogue.mjs +32 -1
- package/plugins/lisa-copilot/skills/lisa-setup-workstation/scripts/cli.mjs +2 -2
- package/plugins/lisa-copilot/skills/lisa-setup-workstation/scripts/workstation.mjs +22 -7
- package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cursor/hooks/threshold-ratchet-families.mjs +0 -8
- package/plugins/lisa-cursor/rules/coding-philosophy-reference.mdc +20 -0
- package/plugins/lisa-cursor/rules/coding-philosophy.mdc +1 -0
- package/plugins/lisa-cursor/scripts/design-bindings-probe.mjs +37 -8
- package/plugins/lisa-cursor/scripts/design-intake-gate.mjs +23 -5
- package/plugins/lisa-cursor/scripts/design-source-gate.mjs +5 -5
- package/plugins/lisa-cursor/scripts/lifecycle-label-trust.mjs +1 -1
- package/plugins/lisa-cursor/scripts/rollup-blocker-classification.mjs +41 -4
- package/plugins/lisa-cursor/skills/lisa-detect-tooling/scripts/detect-tooling.mjs +3 -3
- package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/aws-bootstrap.mjs +2 -2
- package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/doctor-secrets.mjs +1 -1
- package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/publish-aws-bootstrap.mjs +4 -3
- package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/sync-secret-to-ci.mjs +1 -1
- package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/tools-from-notes.mjs +1 -1
- package/plugins/lisa-cursor/skills/lisa-setup-remote-env/scripts/toolchain.mjs +2 -2
- package/plugins/lisa-cursor/skills/lisa-setup-workstation/scripts/catalogue.mjs +32 -1
- package/plugins/lisa-cursor/skills/lisa-setup-workstation/scripts/cli.mjs +2 -2
- package/plugins/lisa-cursor/skills/lisa-setup-workstation/scripts/workstation.mjs +22 -7
- package/plugins/lisa-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-devin/hooks/threshold-ratchet-families.mjs +0 -8
- package/plugins/lisa-devin/rules/eager/coding-philosophy.md +1 -0
- package/plugins/lisa-devin/rules/reference/coding-philosophy.md +20 -0
- package/plugins/lisa-devin/scripts/design-bindings-probe.mjs +37 -8
- package/plugins/lisa-devin/scripts/design-intake-gate.mjs +23 -5
- package/plugins/lisa-devin/scripts/design-source-gate.mjs +5 -5
- package/plugins/lisa-devin/scripts/lifecycle-label-trust.mjs +1 -1
- package/plugins/lisa-devin/scripts/rollup-blocker-classification.mjs +41 -4
- package/plugins/lisa-devin/skills/lisa-detect-tooling/scripts/detect-tooling.mjs +3 -3
- package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/aws-bootstrap.mjs +2 -2
- package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/doctor-secrets.mjs +1 -1
- package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/publish-aws-bootstrap.mjs +4 -3
- package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/sync-secret-to-ci.mjs +1 -1
- package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/tools-from-notes.mjs +1 -1
- package/plugins/lisa-devin/skills/lisa-setup-remote-env/scripts/toolchain.mjs +2 -2
- package/plugins/lisa-devin/skills/lisa-setup-workstation/scripts/catalogue.mjs +32 -1
- package/plugins/lisa-devin/skills/lisa-setup-workstation/scripts/cli.mjs +2 -2
- package/plugins/lisa-devin/skills/lisa-setup-workstation/scripts/workstation.mjs +22 -7
- 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-expo-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-devin/.devin-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-harper-fabric-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-devin/.devin-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-nestjs-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-devin/.devin-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-phaser-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-devin/.devin-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-rails-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-devin/.devin-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-typescript-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-devin/.devin-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/scripts/wiki-status.mjs +18 -0
- package/plugins/lisa-wiki-agy/plugin.json +1 -1
- package/plugins/lisa-wiki-agy/scripts/wiki-status.mjs +18 -0
- package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-copilot/scripts/wiki-status.mjs +18 -0
- package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-cursor/scripts/wiki-status.mjs +18 -0
- package/plugins/lisa-wiki-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-devin/scripts/wiki-status.mjs +18 -0
- package/plugins/src/base/hooks/threshold-ratchet-families.mjs +0 -8
- package/plugins/src/base/rules/eager/coding-philosophy.md +1 -0
- package/plugins/src/base/rules/reference/coding-philosophy.md +20 -0
- package/plugins/src/base/scripts/design-bindings-probe.mjs +37 -8
- package/plugins/src/base/scripts/design-intake-gate.mjs +23 -5
- package/plugins/src/base/scripts/design-source-gate.mjs +5 -5
- package/plugins/src/base/scripts/lifecycle-label-trust.mjs +1 -1
- package/plugins/src/base/scripts/rollup-blocker-classification.mjs +41 -4
- package/plugins/src/base/skills/lisa-detect-tooling/scripts/detect-tooling.mjs +3 -3
- package/plugins/src/base/skills/lisa-secrets-access/scripts/aws-bootstrap.mjs +2 -2
- package/plugins/src/base/skills/lisa-secrets-access/scripts/doctor-secrets.mjs +1 -1
- package/plugins/src/base/skills/lisa-secrets-access/scripts/publish-aws-bootstrap.mjs +4 -3
- package/plugins/src/base/skills/lisa-secrets-access/scripts/sync-secret-to-ci.mjs +1 -1
- package/plugins/src/base/skills/lisa-secrets-access/scripts/tools-from-notes.mjs +1 -1
- package/plugins/src/base/skills/lisa-setup-remote-env/scripts/toolchain.mjs +2 -2
- package/plugins/src/base/skills/lisa-setup-workstation/scripts/catalogue.mjs +32 -1
- package/plugins/src/base/skills/lisa-setup-workstation/scripts/cli.mjs +2 -2
- package/plugins/src/base/skills/lisa-setup-workstation/scripts/workstation.mjs +22 -7
- package/plugins/src/wiki/scripts/wiki-status.mjs +18 -0
- package/rails/copy-overwrite/scripts/threshold-ratchet-families.mjs +0 -8
- package/scripts/check-typecheck-tests.mjs +37 -115
- package/scripts/check-whole-output-guards.mjs +12 -2
- package/scripts/generate-nightly-e2e-guard-certificate.mjs +6 -0
- package/scripts/lib/dependency-tree.mjs +7 -11
- package/scripts/lib/invoked-as-script.d.mts +5 -0
- package/scripts/lisa-ruleset-payload.mjs +1 -1
- package/scripts/measure-tmpdir-growth.mjs +21 -2
- package/scripts/reconcile-release-tags.mjs +3 -3
- package/scripts/two-channel-couplings.json +1 -1
- package/typescript/copy-overwrite/scripts/check-nightly-e2e-health.mjs +1 -1
- package/typescript/copy-overwrite/scripts/threshold-ratchet-families.mjs +0 -8
|
@@ -199,6 +199,15 @@ function nextActionFor(verdict, connectorName, reason) {
|
|
|
199
199
|
return `Run /lisa-wiki:ingest --source ${connectorName}.`;
|
|
200
200
|
}
|
|
201
201
|
|
|
202
|
+
/**
|
|
203
|
+
* Build the reader-facing freshness report for every enabled connector.
|
|
204
|
+
* @param {object} [options] Inputs.
|
|
205
|
+
* @param {string} [options.configPath] Path to the wiki config JSON.
|
|
206
|
+
* @param {string} [options.wikiRoot] Wiki directory; defaults to `wiki`.
|
|
207
|
+
* @param {Date} [options.now] The instant freshness is judged at.
|
|
208
|
+
* @param {number} [options.staleAfterDays] Age at which an observation is stale.
|
|
209
|
+
* @returns {{generatedAt: string, configPath: string, wikiRoot: string, items: Array<{connector: string, sideEffects: string, verdict: string, evidence: string[], lastObserved: string, reason: string, nextAction: string}>}} The report.
|
|
210
|
+
*/
|
|
202
211
|
export function createWikiFreshnessReport({
|
|
203
212
|
configPath = "wiki/lisa-wiki.config.json",
|
|
204
213
|
wikiRoot,
|
|
@@ -228,6 +237,15 @@ export function createWikiFreshnessReport({
|
|
|
228
237
|
};
|
|
229
238
|
}
|
|
230
239
|
|
|
240
|
+
/**
|
|
241
|
+
* Read each enabled connector's freshness facts from the wiki, without writing.
|
|
242
|
+
* @param {object} [options] Inputs.
|
|
243
|
+
* @param {string} [options.configPath] Path to the wiki config JSON.
|
|
244
|
+
* @param {string} [options.wikiRoot] Wiki directory; defaults to `wiki`.
|
|
245
|
+
* @param {Date} [options.now] The instant freshness is judged at.
|
|
246
|
+
* @param {number} [options.staleAfterDays] Age at which an observation is stale.
|
|
247
|
+
* @returns {{configPath: string, wikiRoot: string, connectors: Array<{connector: string, sideEffects: string, verdict: string, evidencePaths: string[], lastObservedDate: string|undefined, reason: string, nextAction: string}>}} Absolute paths and one record per connector.
|
|
248
|
+
*/
|
|
231
249
|
export function parseWikiSourceFreshness({
|
|
232
250
|
configPath = "wiki/lisa-wiki.config.json",
|
|
233
251
|
wikiRoot,
|
|
@@ -199,6 +199,15 @@ function nextActionFor(verdict, connectorName, reason) {
|
|
|
199
199
|
return `Run /lisa-wiki:ingest --source ${connectorName}.`;
|
|
200
200
|
}
|
|
201
201
|
|
|
202
|
+
/**
|
|
203
|
+
* Build the reader-facing freshness report for every enabled connector.
|
|
204
|
+
* @param {object} [options] Inputs.
|
|
205
|
+
* @param {string} [options.configPath] Path to the wiki config JSON.
|
|
206
|
+
* @param {string} [options.wikiRoot] Wiki directory; defaults to `wiki`.
|
|
207
|
+
* @param {Date} [options.now] The instant freshness is judged at.
|
|
208
|
+
* @param {number} [options.staleAfterDays] Age at which an observation is stale.
|
|
209
|
+
* @returns {{generatedAt: string, configPath: string, wikiRoot: string, items: Array<{connector: string, sideEffects: string, verdict: string, evidence: string[], lastObserved: string, reason: string, nextAction: string}>}} The report.
|
|
210
|
+
*/
|
|
202
211
|
export function createWikiFreshnessReport({
|
|
203
212
|
configPath = "wiki/lisa-wiki.config.json",
|
|
204
213
|
wikiRoot,
|
|
@@ -228,6 +237,15 @@ export function createWikiFreshnessReport({
|
|
|
228
237
|
};
|
|
229
238
|
}
|
|
230
239
|
|
|
240
|
+
/**
|
|
241
|
+
* Read each enabled connector's freshness facts from the wiki, without writing.
|
|
242
|
+
* @param {object} [options] Inputs.
|
|
243
|
+
* @param {string} [options.configPath] Path to the wiki config JSON.
|
|
244
|
+
* @param {string} [options.wikiRoot] Wiki directory; defaults to `wiki`.
|
|
245
|
+
* @param {Date} [options.now] The instant freshness is judged at.
|
|
246
|
+
* @param {number} [options.staleAfterDays] Age at which an observation is stale.
|
|
247
|
+
* @returns {{configPath: string, wikiRoot: string, connectors: Array<{connector: string, sideEffects: string, verdict: string, evidencePaths: string[], lastObservedDate: string|undefined, reason: string, nextAction: string}>}} Absolute paths and one record per connector.
|
|
248
|
+
*/
|
|
231
249
|
export function parseWikiSourceFreshness({
|
|
232
250
|
configPath = "wiki/lisa-wiki.config.json",
|
|
233
251
|
wikiRoot,
|
|
@@ -199,6 +199,15 @@ function nextActionFor(verdict, connectorName, reason) {
|
|
|
199
199
|
return `Run /lisa-wiki:ingest --source ${connectorName}.`;
|
|
200
200
|
}
|
|
201
201
|
|
|
202
|
+
/**
|
|
203
|
+
* Build the reader-facing freshness report for every enabled connector.
|
|
204
|
+
* @param {object} [options] Inputs.
|
|
205
|
+
* @param {string} [options.configPath] Path to the wiki config JSON.
|
|
206
|
+
* @param {string} [options.wikiRoot] Wiki directory; defaults to `wiki`.
|
|
207
|
+
* @param {Date} [options.now] The instant freshness is judged at.
|
|
208
|
+
* @param {number} [options.staleAfterDays] Age at which an observation is stale.
|
|
209
|
+
* @returns {{generatedAt: string, configPath: string, wikiRoot: string, items: Array<{connector: string, sideEffects: string, verdict: string, evidence: string[], lastObserved: string, reason: string, nextAction: string}>}} The report.
|
|
210
|
+
*/
|
|
202
211
|
export function createWikiFreshnessReport({
|
|
203
212
|
configPath = "wiki/lisa-wiki.config.json",
|
|
204
213
|
wikiRoot,
|
|
@@ -228,6 +237,15 @@ export function createWikiFreshnessReport({
|
|
|
228
237
|
};
|
|
229
238
|
}
|
|
230
239
|
|
|
240
|
+
/**
|
|
241
|
+
* Read each enabled connector's freshness facts from the wiki, without writing.
|
|
242
|
+
* @param {object} [options] Inputs.
|
|
243
|
+
* @param {string} [options.configPath] Path to the wiki config JSON.
|
|
244
|
+
* @param {string} [options.wikiRoot] Wiki directory; defaults to `wiki`.
|
|
245
|
+
* @param {Date} [options.now] The instant freshness is judged at.
|
|
246
|
+
* @param {number} [options.staleAfterDays] Age at which an observation is stale.
|
|
247
|
+
* @returns {{configPath: string, wikiRoot: string, connectors: Array<{connector: string, sideEffects: string, verdict: string, evidencePaths: string[], lastObservedDate: string|undefined, reason: string, nextAction: string}>}} Absolute paths and one record per connector.
|
|
248
|
+
*/
|
|
231
249
|
export function parseWikiSourceFreshness({
|
|
232
250
|
configPath = "wiki/lisa-wiki.config.json",
|
|
233
251
|
wikiRoot,
|
|
@@ -199,6 +199,15 @@ function nextActionFor(verdict, connectorName, reason) {
|
|
|
199
199
|
return `Run /lisa-wiki:ingest --source ${connectorName}.`;
|
|
200
200
|
}
|
|
201
201
|
|
|
202
|
+
/**
|
|
203
|
+
* Build the reader-facing freshness report for every enabled connector.
|
|
204
|
+
* @param {object} [options] Inputs.
|
|
205
|
+
* @param {string} [options.configPath] Path to the wiki config JSON.
|
|
206
|
+
* @param {string} [options.wikiRoot] Wiki directory; defaults to `wiki`.
|
|
207
|
+
* @param {Date} [options.now] The instant freshness is judged at.
|
|
208
|
+
* @param {number} [options.staleAfterDays] Age at which an observation is stale.
|
|
209
|
+
* @returns {{generatedAt: string, configPath: string, wikiRoot: string, items: Array<{connector: string, sideEffects: string, verdict: string, evidence: string[], lastObserved: string, reason: string, nextAction: string}>}} The report.
|
|
210
|
+
*/
|
|
202
211
|
export function createWikiFreshnessReport({
|
|
203
212
|
configPath = "wiki/lisa-wiki.config.json",
|
|
204
213
|
wikiRoot,
|
|
@@ -228,6 +237,15 @@ export function createWikiFreshnessReport({
|
|
|
228
237
|
};
|
|
229
238
|
}
|
|
230
239
|
|
|
240
|
+
/**
|
|
241
|
+
* Read each enabled connector's freshness facts from the wiki, without writing.
|
|
242
|
+
* @param {object} [options] Inputs.
|
|
243
|
+
* @param {string} [options.configPath] Path to the wiki config JSON.
|
|
244
|
+
* @param {string} [options.wikiRoot] Wiki directory; defaults to `wiki`.
|
|
245
|
+
* @param {Date} [options.now] The instant freshness is judged at.
|
|
246
|
+
* @param {number} [options.staleAfterDays] Age at which an observation is stale.
|
|
247
|
+
* @returns {{configPath: string, wikiRoot: string, connectors: Array<{connector: string, sideEffects: string, verdict: string, evidencePaths: string[], lastObservedDate: string|undefined, reason: string, nextAction: string}>}} Absolute paths and one record per connector.
|
|
248
|
+
*/
|
|
231
249
|
export function parseWikiSourceFreshness({
|
|
232
250
|
configPath = "wiki/lisa-wiki.config.json",
|
|
233
251
|
wikiRoot,
|
|
@@ -199,6 +199,15 @@ function nextActionFor(verdict, connectorName, reason) {
|
|
|
199
199
|
return `Run /lisa-wiki:ingest --source ${connectorName}.`;
|
|
200
200
|
}
|
|
201
201
|
|
|
202
|
+
/**
|
|
203
|
+
* Build the reader-facing freshness report for every enabled connector.
|
|
204
|
+
* @param {object} [options] Inputs.
|
|
205
|
+
* @param {string} [options.configPath] Path to the wiki config JSON.
|
|
206
|
+
* @param {string} [options.wikiRoot] Wiki directory; defaults to `wiki`.
|
|
207
|
+
* @param {Date} [options.now] The instant freshness is judged at.
|
|
208
|
+
* @param {number} [options.staleAfterDays] Age at which an observation is stale.
|
|
209
|
+
* @returns {{generatedAt: string, configPath: string, wikiRoot: string, items: Array<{connector: string, sideEffects: string, verdict: string, evidence: string[], lastObserved: string, reason: string, nextAction: string}>}} The report.
|
|
210
|
+
*/
|
|
202
211
|
export function createWikiFreshnessReport({
|
|
203
212
|
configPath = "wiki/lisa-wiki.config.json",
|
|
204
213
|
wikiRoot,
|
|
@@ -228,6 +237,15 @@ export function createWikiFreshnessReport({
|
|
|
228
237
|
};
|
|
229
238
|
}
|
|
230
239
|
|
|
240
|
+
/**
|
|
241
|
+
* Read each enabled connector's freshness facts from the wiki, without writing.
|
|
242
|
+
* @param {object} [options] Inputs.
|
|
243
|
+
* @param {string} [options.configPath] Path to the wiki config JSON.
|
|
244
|
+
* @param {string} [options.wikiRoot] Wiki directory; defaults to `wiki`.
|
|
245
|
+
* @param {Date} [options.now] The instant freshness is judged at.
|
|
246
|
+
* @param {number} [options.staleAfterDays] Age at which an observation is stale.
|
|
247
|
+
* @returns {{configPath: string, wikiRoot: string, connectors: Array<{connector: string, sideEffects: string, verdict: string, evidencePaths: string[], lastObservedDate: string|undefined, reason: string, nextAction: string}>}} Absolute paths and one record per connector.
|
|
248
|
+
*/
|
|
231
249
|
export function parseWikiSourceFreshness({
|
|
232
250
|
configPath = "wiki/lisa-wiki.config.json",
|
|
233
251
|
wikiRoot,
|
|
@@ -89,14 +89,6 @@ export const FAMILIES = [
|
|
|
89
89
|
match: /(^|\/)\.lisa\.config\.json$/,
|
|
90
90
|
kind: "allow-list",
|
|
91
91
|
},
|
|
92
|
-
{
|
|
93
|
-
// The #3811 quarantine. `allow-list` is exactly right here: the list may
|
|
94
|
-
// shrink freely, and ADDING a file — re-authorising type debt that the
|
|
95
|
-
// gate would otherwise refuse — is the change that needs a human to see it.
|
|
96
|
-
id: "typecheck-quarantine",
|
|
97
|
-
match: /(^|\/)typecheck-quarantine\.json$/,
|
|
98
|
-
kind: "allow-list",
|
|
99
|
-
},
|
|
100
92
|
{
|
|
101
93
|
id: "lighthouse",
|
|
102
94
|
match: /(^|\/)(?:lighthouserc-config|lighthouserc|\.lighthouserc)\.json$/,
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
- **Immutability.** Create new values instead of mutating, and prefer `map`/`filter`/`reduce`. On a hot path where a stack rule forbids allocation, such as a game's `update()`, the stack rule wins.
|
|
6
6
|
- **TDD for behavior changes.** Write the failing test first, make it pass, then refactor. Learn real behavior by running code before you write expectations.
|
|
7
7
|
- **Delete replaced code completely**, with no `V2` copies or compatibility shims. Framework migrations, such as Rails migrations, are ordinary code. Simplify your diff before you finish.
|
|
8
|
+
- **No technical debt.** Fix failures in the change that surfaces them. Never add quarantine, baseline or exemption lists, silence a check, or defer part of the job as "follow-up". Split a large backlog across parallel changes; the check still turns on strict.
|
|
8
9
|
- **Comments preserve intent.** Explain why, not what: the requirement behind a non-obvious choice, the rejected alternative, the invariant a change must respect, and what breaks if someone simplifies it. Keep comments true when code changes, and do not invent a rationale. If you do not know why code exists, find out (`history-audit`). This overrides any default to match the surrounding comment density, because future agents keep no memory of today.
|
|
9
10
|
|
|
10
11
|
Examples, documentation guidelines, and anti-patterns: [reference/coding-philosophy.md](../reference/coding-philosophy.md).
|
|
@@ -129,6 +129,26 @@ const getPlayerScore = (player: Player): number => calculateScore(player);
|
|
|
129
129
|
- Never write migration code unless explicitly asked
|
|
130
130
|
- Trust git history for recovery if needed
|
|
131
131
|
|
|
132
|
+
### 6. No Technical Debt
|
|
133
|
+
|
|
134
|
+
**Fix failures in the change that surfaces them.** Turning on a lint rule, type check, coverage floor or any other check often reveals failures that already exist. Fix them. Do not exempt them.
|
|
135
|
+
|
|
136
|
+
An exemption list only grows. Once a quarantine file exists, every hard case gets added to it rather than fixed, and nobody remembers why each entry is there. It hides exactly the failures the check exists to catch, so the check reports green while the code it covers drifts. One repository's test type-check quarantine grew to 311 files hiding 1,403 errors before anyone looked.
|
|
137
|
+
|
|
138
|
+
```text
|
|
139
|
+
Wrong: turn the check on and record today's failures as allowed
|
|
140
|
+
typecheck-quarantine.json -> ["tests/a.test.ts", "tests/b.test.ts", ...]
|
|
141
|
+
|
|
142
|
+
Right: fix every failure, then turn the check on with nothing exempted
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
**No-technical-debt rules:**
|
|
146
|
+
- Never add quarantine, baseline, exemption, grandfather or "known failures" lists that let existing failures pass a check
|
|
147
|
+
- Never silence a check: no `@ts-ignore`, `eslint-disable`, `any`, loosened compiler or linter config, lowered coverage thresholds, or skipped tests to get green
|
|
148
|
+
- Never defer part of the requested job as "follow-up" or "known gap". Finish it, or say plainly that it is not done and why
|
|
149
|
+
- If the backlog is too large for one change, split the fix into parallel changes and land them together. The check still turns on strict, with nothing exempted
|
|
150
|
+
- An existing exemption list is debt to pay off: fix its entries and delete the list and the code that reads it
|
|
151
|
+
|
|
132
152
|
---
|
|
133
153
|
|
|
134
154
|
## Quick Reference
|