@codyswann/lisa 5.12.0 → 5.14.0
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/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 +48 -22
- package/dist/core/upstream-evidence-manifest.js.map +1 -1
- package/dist/strategies/merge.d.ts +1 -1
- package/dist/strategies/merge.d.ts.map +1 -1
- package/dist/strategies/merge.js +18 -8
- package/dist/strategies/merge.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-monitor/SKILL.md +1 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-posthog-access/SKILL.md +2 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/validate-config.mjs +65 -11
- package/plugins/lisa/.codex-plugin/skills/lisa-setup-remote-env/SKILL.md +2 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-setup-remote-env/scripts/setup-remote-env.mjs +248 -18
- package/plugins/lisa/.codex-plugin/skills/lisa-ticket-triage/SKILL.md +6 -6
- package/plugins/lisa/.codex-plugin/skills/lisa-tracker-add-journey/SKILL.md +1 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-tracker-create/SKILL.md +1 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-tracker-evidence/SKILL.md +1 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-tracker-journey/SKILL.md +1 -0
- package/plugins/lisa/agents/spec-conformance-specialist.md +1 -1
- package/plugins/lisa/agents/verification-specialist.md +1 -1
- package/plugins/lisa/hooks/inject-resolved-config.mjs +1 -0
- package/plugins/lisa/rules/reference/base-rules.md +10 -8
- package/plugins/lisa/rules/reference/config-resolution.md +28 -0
- package/plugins/lisa/skills/lisa-monitor/SKILL.md +1 -1
- package/plugins/lisa/skills/lisa-posthog-access/SKILL.md +2 -0
- package/plugins/lisa/skills/lisa-secrets-access/scripts/validate-config.mjs +65 -11
- package/plugins/lisa/skills/lisa-setup-remote-env/SKILL.md +2 -0
- package/plugins/lisa/skills/lisa-setup-remote-env/scripts/setup-remote-env.mjs +248 -18
- package/plugins/lisa/skills/lisa-ticket-triage/SKILL.md +6 -6
- package/plugins/lisa/skills/lisa-tracker-add-journey/SKILL.md +1 -0
- package/plugins/lisa/skills/lisa-tracker-create/SKILL.md +1 -0
- package/plugins/lisa/skills/lisa-tracker-evidence/SKILL.md +1 -0
- package/plugins/lisa/skills/lisa-tracker-journey/SKILL.md +1 -0
- package/plugins/lisa-agy/agents/spec-conformance-specialist.md +1 -1
- package/plugins/lisa-agy/agents/verification-specialist.md +1 -1
- package/plugins/lisa-agy/plugin.json +1 -1
- package/plugins/lisa-agy/skills/lisa-monitor/SKILL.md +1 -1
- package/plugins/lisa-agy/skills/lisa-posthog-access/SKILL.md +2 -0
- package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/validate-config.mjs +65 -11
- package/plugins/lisa-agy/skills/lisa-setup-remote-env/SKILL.md +2 -0
- package/plugins/lisa-agy/skills/lisa-setup-remote-env/scripts/setup-remote-env.mjs +248 -18
- package/plugins/lisa-agy/skills/lisa-ticket-triage/SKILL.md +6 -6
- package/plugins/lisa-agy/skills/lisa-tracker-add-journey/SKILL.md +1 -0
- package/plugins/lisa-agy/skills/lisa-tracker-create/SKILL.md +1 -0
- package/plugins/lisa-agy/skills/lisa-tracker-evidence/SKILL.md +1 -0
- package/plugins/lisa-agy/skills/lisa-tracker-journey/SKILL.md +1 -0
- 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/agents/spec-conformance-specialist.agent.md +1 -1
- package/plugins/lisa-copilot/agents/verification-specialist.agent.md +1 -1
- package/plugins/lisa-copilot/hooks/inject-resolved-config.mjs +1 -0
- package/plugins/lisa-copilot/rules/reference/base-rules.md +10 -8
- package/plugins/lisa-copilot/rules/reference/config-resolution.md +28 -0
- package/plugins/lisa-copilot/skills/lisa-monitor/SKILL.md +1 -1
- package/plugins/lisa-copilot/skills/lisa-posthog-access/SKILL.md +2 -0
- package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/validate-config.mjs +65 -11
- package/plugins/lisa-copilot/skills/lisa-setup-remote-env/SKILL.md +2 -0
- package/plugins/lisa-copilot/skills/lisa-setup-remote-env/scripts/setup-remote-env.mjs +248 -18
- package/plugins/lisa-copilot/skills/lisa-ticket-triage/SKILL.md +6 -6
- package/plugins/lisa-copilot/skills/lisa-tracker-add-journey/SKILL.md +1 -0
- package/plugins/lisa-copilot/skills/lisa-tracker-create/SKILL.md +1 -0
- package/plugins/lisa-copilot/skills/lisa-tracker-evidence/SKILL.md +1 -0
- package/plugins/lisa-copilot/skills/lisa-tracker-journey/SKILL.md +1 -0
- package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cursor/agents/spec-conformance-specialist.md +1 -1
- package/plugins/lisa-cursor/agents/verification-specialist.md +1 -1
- package/plugins/lisa-cursor/hooks/inject-resolved-config.mjs +1 -0
- package/plugins/lisa-cursor/rules/base-rules-reference.mdc +10 -8
- package/plugins/lisa-cursor/rules/config-resolution-reference.mdc +28 -0
- package/plugins/lisa-cursor/skills/lisa-monitor/SKILL.md +1 -1
- package/plugins/lisa-cursor/skills/lisa-posthog-access/SKILL.md +2 -0
- package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/validate-config.mjs +65 -11
- package/plugins/lisa-cursor/skills/lisa-setup-remote-env/SKILL.md +2 -0
- package/plugins/lisa-cursor/skills/lisa-setup-remote-env/scripts/setup-remote-env.mjs +248 -18
- package/plugins/lisa-cursor/skills/lisa-ticket-triage/SKILL.md +6 -6
- package/plugins/lisa-cursor/skills/lisa-tracker-add-journey/SKILL.md +1 -0
- package/plugins/lisa-cursor/skills/lisa-tracker-create/SKILL.md +1 -0
- package/plugins/lisa-cursor/skills/lisa-tracker-evidence/SKILL.md +1 -0
- package/plugins/lisa-cursor/skills/lisa-tracker-journey/SKILL.md +1 -0
- package/plugins/lisa-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-devin/agents/spec-conformance-specialist.md +1 -1
- package/plugins/lisa-devin/agents/verification-specialist.md +1 -1
- package/plugins/lisa-devin/hooks/inject-resolved-config.mjs +1 -0
- package/plugins/lisa-devin/rules/reference/base-rules.md +10 -8
- package/plugins/lisa-devin/rules/reference/config-resolution.md +28 -0
- package/plugins/lisa-devin/skills/lisa-monitor/SKILL.md +1 -1
- package/plugins/lisa-devin/skills/lisa-posthog-access/SKILL.md +2 -0
- package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/validate-config.mjs +65 -11
- package/plugins/lisa-devin/skills/lisa-setup-remote-env/SKILL.md +2 -0
- package/plugins/lisa-devin/skills/lisa-setup-remote-env/scripts/setup-remote-env.mjs +248 -18
- package/plugins/lisa-devin/skills/lisa-ticket-triage/SKILL.md +6 -6
- package/plugins/lisa-devin/skills/lisa-tracker-add-journey/SKILL.md +1 -0
- package/plugins/lisa-devin/skills/lisa-tracker-create/SKILL.md +1 -0
- package/plugins/lisa-devin/skills/lisa-tracker-evidence/SKILL.md +1 -0
- package/plugins/lisa-devin/skills/lisa-tracker-journey/SKILL.md +1 -0
- package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-expo/.codex-plugin/skills/jira-add-journey/SKILL.md +1 -1
- package/plugins/lisa-expo/.codex-plugin/skills/jira-create/SKILL.md +1 -1
- package/plugins/lisa-expo/.codex-plugin/skills/journey-guidance/SKILL.md +77 -0
- package/plugins/lisa-expo/.codex-plugin/skills/journey-guidance/agents/openai.yaml +4 -0
- package/plugins/lisa-expo/.codex-plugin/skills/ops-check-logs/SKILL.md +1 -1
- package/plugins/lisa-expo/.codex-plugin/skills/ops-deploy/SKILL.md +1 -1
- package/plugins/lisa-expo/.codex-plugin/skills/ops-monitor-errors/SKILL.md +16 -4
- package/plugins/lisa-expo/.codex-plugin/skills/ops-monitor-errors/agents/openai.yaml +2 -2
- package/plugins/lisa-expo/.codex-plugin/skills/play-store-access/SKILL.md +42 -7
- package/plugins/lisa-expo/agents/ops-specialist.md +3 -3
- package/plugins/lisa-expo/skills/jira-add-journey/SKILL.md +1 -1
- package/plugins/lisa-expo/skills/jira-create/SKILL.md +1 -1
- package/plugins/lisa-expo/skills/journey-guidance/SKILL.md +75 -0
- package/plugins/lisa-expo/skills/journey-guidance/agents/openai.yaml +4 -0
- package/plugins/lisa-expo/skills/ops-check-logs/SKILL.md +1 -1
- package/plugins/lisa-expo/skills/ops-deploy/SKILL.md +1 -1
- package/plugins/lisa-expo/skills/ops-monitor-errors/SKILL.md +15 -3
- package/plugins/lisa-expo/skills/ops-monitor-errors/agents/openai.yaml +2 -2
- package/plugins/lisa-expo/skills/play-store-access/SKILL.md +42 -7
- package/plugins/lisa-expo-agy/agents/ops-specialist.md +3 -3
- package/plugins/lisa-expo-agy/plugin.json +1 -1
- package/plugins/lisa-expo-agy/skills/jira-add-journey/SKILL.md +1 -1
- package/plugins/lisa-expo-agy/skills/jira-create/SKILL.md +1 -1
- package/plugins/lisa-expo-agy/skills/journey-guidance/SKILL.md +75 -0
- package/plugins/lisa-expo-agy/skills/ops-check-logs/SKILL.md +1 -1
- package/plugins/lisa-expo-agy/skills/ops-deploy/SKILL.md +1 -1
- package/plugins/lisa-expo-agy/skills/ops-monitor-errors/SKILL.md +15 -3
- package/plugins/lisa-expo-agy/skills/play-store-access/SKILL.md +42 -7
- package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-copilot/agents/ops-specialist.agent.md +3 -3
- package/plugins/lisa-expo-copilot/skills/jira-add-journey/SKILL.md +1 -1
- package/plugins/lisa-expo-copilot/skills/jira-create/SKILL.md +1 -1
- package/plugins/lisa-expo-copilot/skills/journey-guidance/SKILL.md +75 -0
- package/plugins/lisa-expo-copilot/skills/ops-check-logs/SKILL.md +1 -1
- package/plugins/lisa-expo-copilot/skills/ops-deploy/SKILL.md +1 -1
- package/plugins/lisa-expo-copilot/skills/ops-monitor-errors/SKILL.md +15 -3
- package/plugins/lisa-expo-copilot/skills/play-store-access/SKILL.md +42 -7
- package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-cursor/agents/ops-specialist.md +3 -3
- package/plugins/lisa-expo-cursor/skills/jira-add-journey/SKILL.md +1 -1
- package/plugins/lisa-expo-cursor/skills/jira-create/SKILL.md +1 -1
- package/plugins/lisa-expo-cursor/skills/journey-guidance/SKILL.md +75 -0
- package/plugins/lisa-expo-cursor/skills/ops-check-logs/SKILL.md +1 -1
- package/plugins/lisa-expo-cursor/skills/ops-deploy/SKILL.md +1 -1
- package/plugins/lisa-expo-cursor/skills/ops-monitor-errors/SKILL.md +15 -3
- package/plugins/lisa-expo-cursor/skills/play-store-access/SKILL.md +42 -7
- 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-expo-devin/agents/ops-specialist.md +3 -3
- package/plugins/lisa-expo-devin/skills/jira-add-journey/SKILL.md +1 -1
- package/plugins/lisa-expo-devin/skills/jira-create/SKILL.md +1 -1
- package/plugins/lisa-expo-devin/skills/journey-guidance/SKILL.md +75 -0
- package/plugins/lisa-expo-devin/skills/ops-check-logs/SKILL.md +1 -1
- package/plugins/lisa-expo-devin/skills/ops-deploy/SKILL.md +1 -1
- package/plugins/lisa-expo-devin/skills/ops-monitor-errors/SKILL.md +15 -3
- package/plugins/lisa-expo-devin/skills/play-store-access/SKILL.md +42 -7
- 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/.codex-plugin/skills/journey-guidance/SKILL.md +39 -0
- package/plugins/lisa-rails/.codex-plugin/skills/journey-guidance/agents/openai.yaml +4 -0
- package/plugins/lisa-rails/skills/journey-guidance/SKILL.md +37 -0
- package/plugins/lisa-rails/skills/journey-guidance/agents/openai.yaml +4 -0
- package/plugins/lisa-rails-agy/plugin.json +1 -1
- package/plugins/lisa-rails-agy/skills/journey-guidance/SKILL.md +37 -0
- package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-copilot/skills/journey-guidance/SKILL.md +37 -0
- package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-cursor/skills/journey-guidance/SKILL.md +37 -0
- 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-rails-devin/skills/journey-guidance/SKILL.md +37 -0
- 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-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/lisa-wiki-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/src/base/agents/spec-conformance-specialist.md +1 -1
- package/plugins/src/base/agents/verification-specialist.md +1 -1
- package/plugins/src/base/hooks/inject-resolved-config.mjs +1 -0
- package/plugins/src/base/rules/reference/base-rules.md +10 -8
- package/plugins/src/base/rules/reference/config-resolution.md +28 -0
- package/plugins/src/base/skills/lisa-monitor/SKILL.md +1 -1
- package/plugins/src/base/skills/lisa-posthog-access/SKILL.md +2 -0
- package/plugins/src/base/skills/lisa-secrets-access/scripts/validate-config.mjs +65 -11
- package/plugins/src/base/skills/lisa-setup-remote-env/SKILL.md +2 -0
- package/plugins/src/base/skills/lisa-setup-remote-env/scripts/setup-remote-env.mjs +248 -18
- package/plugins/src/base/skills/lisa-ticket-triage/SKILL.md +6 -6
- package/plugins/src/base/skills/lisa-tracker-add-journey/SKILL.md +1 -0
- package/plugins/src/base/skills/lisa-tracker-create/SKILL.md +1 -0
- package/plugins/src/base/skills/lisa-tracker-evidence/SKILL.md +1 -0
- package/plugins/src/base/skills/lisa-tracker-journey/SKILL.md +1 -0
- package/plugins/src/expo/agents/ops-specialist.md +3 -3
- package/plugins/src/expo/skills/jira-add-journey/SKILL.md +1 -1
- package/plugins/src/expo/skills/jira-create/SKILL.md +1 -1
- package/plugins/src/expo/skills/journey-guidance/SKILL.md +75 -0
- package/plugins/src/expo/skills/ops-check-logs/SKILL.md +1 -1
- package/plugins/src/expo/skills/ops-deploy/SKILL.md +1 -1
- package/plugins/src/expo/skills/ops-monitor-errors/SKILL.md +15 -3
- package/plugins/src/expo/skills/play-store-access/SKILL.md +42 -7
- package/plugins/src/rails/skills/journey-guidance/SKILL.md +37 -0
|
@@ -724,6 +724,13 @@ export const SETUP_FIELD =
|
|
|
724
724
|
'if [ -n "$ten" ]; then ' +
|
|
725
725
|
'echo "No checkout; preparing tools and credentials for $ten."; ' +
|
|
726
726
|
"tw=0; tt=0; ts=0; tp=0; " +
|
|
727
|
+
// The secrets contract calls "the environment is the provider" `env`; the
|
|
728
|
+
// workstation catalogue calls it `none` and rejects `env` as unknown. The
|
|
729
|
+
// emitted guidance exports `LISA_PROVIDER=env` for a project that names no
|
|
730
|
+
// provider, so the field translates it here — the shell twin of
|
|
731
|
+
// `workstationProviderFor`.
|
|
732
|
+
'wp="${LISA_PROVIDER:-${LISA_SECRETS_PROVIDER:-bitwarden}}"; ' +
|
|
733
|
+
'case "$wp" in env) wp=none;; esac; ' +
|
|
727
734
|
// `--agents=none` is load-bearing, not tidiness.
|
|
728
735
|
//
|
|
729
736
|
// The bootstrap's default is every coding agent it knows: claude, codex,
|
|
@@ -741,8 +748,13 @@ export const SETUP_FIELD =
|
|
|
741
748
|
//
|
|
742
749
|
// The first pass installs only the provider CLI (`--tools=none`, the same
|
|
743
750
|
// idiom as `--agents=none`), because that is all materialization requires.
|
|
751
|
+
//
|
|
752
|
+
// The Bitwarden fallback is NOT a vendor preference: this branch runs with no
|
|
753
|
+
// checkout, so no `secrets.provider` is readable, and it mirrors the
|
|
754
|
+
// repo-less tenant convention `lisa-secrets-access` applies at runtime. The
|
|
755
|
+
// emitted guidance exports LISA_PROVIDER from the operator's own config.
|
|
744
756
|
`npx -y ${SELF_SPEC} workstation --install --agents=none --tools=none ` +
|
|
745
|
-
'--provider="$
|
|
757
|
+
'--provider="$wp" || tw=$?; ' +
|
|
746
758
|
// Exported BEFORE the secrets phase, not after: the toolchain installs into
|
|
747
759
|
// ~/.local/bin, and materialization spawns the provider CLI by name. Ordered
|
|
748
760
|
// the other way it gets ENOENT on a binary that is sitting right there.
|
|
@@ -766,7 +778,7 @@ export const SETUP_FIELD =
|
|
|
766
778
|
'[ "$tp" -eq 0 ] || echo "SETUP INCOMPLETE: could not read the tool list ' +
|
|
767
779
|
'from the vault (exit $tp). Installing the full catalogue." >&2; ' +
|
|
768
780
|
`npx -y ${SELF_SPEC} workstation --install --agents=none --tools="$w" ` +
|
|
769
|
-
'--provider="$
|
|
781
|
+
'--provider="$wp" || tt=$?; ' +
|
|
770
782
|
'[ "$tw" -eq 0 ] && [ "$tt" -eq 0 ] || echo "SETUP INCOMPLETE: tool install ' +
|
|
771
783
|
'failed (exit $tw/$tt). The session will start WITHOUT the pinned tools." >&2; ' +
|
|
772
784
|
'[ "$ts" -eq 0 ] || echo "SETUP INCOMPLETE: secrets did not materialize ' +
|
|
@@ -975,8 +987,11 @@ export function pinEnvironment(environmentId, cwd = process.cwd()) {
|
|
|
975
987
|
* placeholder — a line that would be a syntax error if pasted.
|
|
976
988
|
*
|
|
977
989
|
* `LISA_PROVIDER` is exported even though the field defaults it, because the
|
|
978
|
-
* field
|
|
979
|
-
*
|
|
990
|
+
* field runs with no checkout and so cannot read `secrets.provider`; its
|
|
991
|
+
* fallback mirrors the `lisa-secrets-access` repo-less tenant convention
|
|
992
|
+
* (Bitwarden). The provider printed here comes from `resolveSecretsProvider`,
|
|
993
|
+
* which DOES read the operator's config, so exporting it carries the
|
|
994
|
+
* configured choice into a session that has none.
|
|
980
995
|
* @param {object} options Resolved identity and display strings.
|
|
981
996
|
* @returns {string[]} Lines to include in the emitted guidance.
|
|
982
997
|
*/
|
|
@@ -1212,7 +1227,7 @@ export function emitContainer({
|
|
|
1212
1227
|
" machine install the identical set:",
|
|
1213
1228
|
"",
|
|
1214
1229
|
" npx -y @codyswann/lisa@latest workstation --print-dockerfile \\",
|
|
1215
|
-
` --provider=${provider
|
|
1230
|
+
` --provider=${workstationProviderFor(provider)} > Dockerfile.lisa`,
|
|
1216
1231
|
" docker build -f Dockerfile.lisa -t lisa-workstation .",
|
|
1217
1232
|
"",
|
|
1218
1233
|
" Nothing secret belongs in it. An image layer is readable by anyone who",
|
|
@@ -1352,13 +1367,211 @@ async function detectSurface() {
|
|
|
1352
1367
|
|
|
1353
1368
|
/**
|
|
1354
1369
|
* Read the bootstrap key name, which is the one value the operator must paste.
|
|
1355
|
-
*
|
|
1356
|
-
*
|
|
1370
|
+
*
|
|
1371
|
+
* Located by the secrets runtime's own `readConfig` walk — the same file the
|
|
1372
|
+
* provider is resolved from — so a run from a subdirectory, or one anchored by
|
|
1373
|
+
* `LISA_PROJECT_DIR` / `CLAUDE_PROJECT_DIR`, cannot pair one config's provider
|
|
1374
|
+
* with another directory's key.
|
|
1375
|
+
*
|
|
1376
|
+
* The name is printed unquoted as `export <key>='…'` in a block the operator
|
|
1377
|
+
* pastes, so it must be a shell variable name and nothing else. The grammar is
|
|
1378
|
+
* the secrets runtime's own `ENV_KEY`, the rule it applies to every name it
|
|
1379
|
+
* exports. (`bootstrap-store` accepts a looser path segment, `.` and `-`
|
|
1380
|
+
* included; neither is a variable name, so the stricter rule is the one that
|
|
1381
|
+
* fits a line of shell.)
|
|
1382
|
+
* @param {string} [cwd] Directory to resolve the config from.
|
|
1383
|
+
* @param {Record<string, string|undefined>} [env] Environment, for the config anchors.
|
|
1384
|
+
* @returns {Promise<string|null>} The configured key name, when there is one.
|
|
1357
1385
|
*/
|
|
1358
|
-
function readBootstrapKey(cwd = process.cwd()) {
|
|
1359
|
-
const
|
|
1360
|
-
|
|
1361
|
-
|
|
1386
|
+
async function readBootstrapKey(cwd = process.cwd(), env = process.env) {
|
|
1387
|
+
const { readConfig } = await import(
|
|
1388
|
+
pathToFileURL(siblingScript("lisa-secrets-access", "surfaces.mjs")).href
|
|
1389
|
+
);
|
|
1390
|
+
const { configPath } = readConfig(cwd, env);
|
|
1391
|
+
if (!configPath) return null;
|
|
1392
|
+
const key = readLayer(configPath)?.secrets?.bootstrap?.key ?? null;
|
|
1393
|
+
if (key === null) return null;
|
|
1394
|
+
const { ENV_KEY } = await import(
|
|
1395
|
+
pathToFileURL(siblingScript("lisa-secrets-access", "providers.mjs")).href
|
|
1396
|
+
);
|
|
1397
|
+
if (typeof key === "string" && ENV_KEY.test(key)) return key;
|
|
1398
|
+
throw new Error(
|
|
1399
|
+
`secrets.bootstrap.key ${JSON.stringify(key)} in ${configPath} is not a ` +
|
|
1400
|
+
"valid environment variable name. Use letters, digits and underscores " +
|
|
1401
|
+
"only, not starting with a digit (for example BWS_ACCESS_TOKEN_acme)."
|
|
1402
|
+
);
|
|
1403
|
+
}
|
|
1404
|
+
|
|
1405
|
+
/**
|
|
1406
|
+
* Refuse a provider name the secrets contract does not know.
|
|
1407
|
+
*
|
|
1408
|
+
* The resolved name is printed into shell the operator pastes verbatim
|
|
1409
|
+
* (`export LISA_PROVIDER=…`, `-e LISA_PROVIDER=…`, `--provider=…`), so an
|
|
1410
|
+
* unchecked value such as `bitwarden;touch /tmp/pwn` would become a command.
|
|
1411
|
+
* Every source — flag, environment and config — passes through here.
|
|
1412
|
+
* @param {string} provider Candidate provider name.
|
|
1413
|
+
* @param {string} source Where it came from, for the message.
|
|
1414
|
+
* @param {readonly string[]} known The secrets contract's provider names.
|
|
1415
|
+
* @returns {string} The same name, once known to be safe.
|
|
1416
|
+
*/
|
|
1417
|
+
function assertKnownProvider(provider, source, known) {
|
|
1418
|
+
if (known.includes(provider)) return provider;
|
|
1419
|
+
throw new Error(
|
|
1420
|
+
`"${provider}" (from the ${source}) is not a secrets provider Lisa knows. ` +
|
|
1421
|
+
`Set it to one of: ${known.join(", ")}.`
|
|
1422
|
+
);
|
|
1423
|
+
}
|
|
1424
|
+
|
|
1425
|
+
/**
|
|
1426
|
+
* Decide which secrets provider this setup run is provisioning for.
|
|
1427
|
+
*
|
|
1428
|
+
* The provider used to come from environment variables alone, falling back to
|
|
1429
|
+
* Bitwarden, so a project that had correctly configured `secrets.provider` was
|
|
1430
|
+
* still handed `bws` and told to export a Bitwarden variable. Setup now picks
|
|
1431
|
+
* exactly the provider the `lisa-secrets-access` runtime will use, so it never
|
|
1432
|
+
* installs a CLI the runtime ignores:
|
|
1433
|
+
*
|
|
1434
|
+
* 1. `--provider=<name>` on this command — explicit operator intent, the one
|
|
1435
|
+
* deliberate exception to "match the runtime";
|
|
1436
|
+
* 2. otherwise the runtime's own `readConfig`: the committed
|
|
1437
|
+
* `.lisa.config.json` `secrets.provider` when a config exists (the runtime
|
|
1438
|
+
* reads neither `.lisa.config.local.json` nor `LISA_PROVIDER` then, and
|
|
1439
|
+
* neither does this), `env` for a config that names none, and the
|
|
1440
|
+
* repo-less tenant convention (`LISA_PROVIDER` / `LISA_SECRETS_PROVIDER`
|
|
1441
|
+
* with a tenant set) when there is no config at all.
|
|
1442
|
+
*
|
|
1443
|
+
* Whatever the source, the name is checked against the known provider list,
|
|
1444
|
+
* because it is printed into shell the operator pastes.
|
|
1445
|
+
* @param {{argv?: string[], env?: Record<string, string|undefined>, cwd?: string}} [options] Inputs.
|
|
1446
|
+
* @returns {Promise<{provider: string, source: "flag"|"environment"|"config"|"default"}>} Provider and where it came from.
|
|
1447
|
+
*/
|
|
1448
|
+
export async function resolveSecretsProvider({
|
|
1449
|
+
argv = [],
|
|
1450
|
+
env = process.env,
|
|
1451
|
+
cwd = process.cwd(),
|
|
1452
|
+
} = {}) {
|
|
1453
|
+
const { KNOWN_SECRETS_PROVIDERS: known } = await import(
|
|
1454
|
+
pathToFileURL(siblingScript("lisa-secrets-access", "validate-config.mjs"))
|
|
1455
|
+
.href
|
|
1456
|
+
);
|
|
1457
|
+
const flagged = (
|
|
1458
|
+
argv.find(a => a.startsWith("--provider="))?.slice("--provider=".length) ??
|
|
1459
|
+
""
|
|
1460
|
+
).trim();
|
|
1461
|
+
if (flagged) {
|
|
1462
|
+
return {
|
|
1463
|
+
provider: assertKnownProvider(flagged, "--provider flag", known),
|
|
1464
|
+
source: "flag",
|
|
1465
|
+
};
|
|
1466
|
+
}
|
|
1467
|
+
|
|
1468
|
+
const { readConfig } = await import(
|
|
1469
|
+
pathToFileURL(siblingScript("lisa-secrets-access", "surfaces.mjs")).href
|
|
1470
|
+
);
|
|
1471
|
+
const runtime = readConfig(cwd, env);
|
|
1472
|
+
const named = runtime.configPath
|
|
1473
|
+
? readLayer(runtime.configPath)?.secrets?.provider !== undefined
|
|
1474
|
+
: Boolean(
|
|
1475
|
+
(env.LISA_PROVIDER ?? env.LISA_SECRETS_PROVIDER ?? "").trim() &&
|
|
1476
|
+
(env.LISA_TENANT ?? env.LISA_SECRETS_NAMESPACE ?? "").trim()
|
|
1477
|
+
);
|
|
1478
|
+
const source = !named
|
|
1479
|
+
? "default"
|
|
1480
|
+
: runtime.configPath
|
|
1481
|
+
? "config"
|
|
1482
|
+
: "environment";
|
|
1483
|
+
const label = {
|
|
1484
|
+
config: "secrets.provider setting in .lisa.config.json",
|
|
1485
|
+
environment: "LISA_PROVIDER environment variable",
|
|
1486
|
+
default: "runtime default",
|
|
1487
|
+
}[source];
|
|
1488
|
+
return {
|
|
1489
|
+
provider: assertKnownProvider(String(runtime.provider), label, known),
|
|
1490
|
+
source,
|
|
1491
|
+
};
|
|
1492
|
+
}
|
|
1493
|
+
|
|
1494
|
+
/**
|
|
1495
|
+
* Read a JSON config layer, or undefined when the file does not exist.
|
|
1496
|
+
* @param {string} file Absolute path.
|
|
1497
|
+
* @returns {unknown} Parsed contents, or undefined.
|
|
1498
|
+
*/
|
|
1499
|
+
function readLayer(file) {
|
|
1500
|
+
return existsSync(file) ? JSON.parse(readFileSync(file, "utf8")) : undefined;
|
|
1501
|
+
}
|
|
1502
|
+
|
|
1503
|
+
/**
|
|
1504
|
+
* Translate a secrets provider name into the workstation catalogue's name.
|
|
1505
|
+
*
|
|
1506
|
+
* The two vocabularies agree on every vendor and differ on one word: the
|
|
1507
|
+
* secrets contract calls "the environment is the provider" `env`, and the
|
|
1508
|
+
* workstation catalogue calls "install no credential manager" `none`. Passing
|
|
1509
|
+
* `env` through made the bootstrap reject a supported configuration as an
|
|
1510
|
+
* unknown credential manager. A missing provider means none, never a vendor.
|
|
1511
|
+
* @param {string|null|undefined} provider Secrets provider name.
|
|
1512
|
+
* @returns {string} Workstation catalogue name.
|
|
1513
|
+
*/
|
|
1514
|
+
export function workstationProviderFor(provider) {
|
|
1515
|
+
if (!provider || provider === "env") return "none";
|
|
1516
|
+
return provider;
|
|
1517
|
+
}
|
|
1518
|
+
|
|
1519
|
+
/**
|
|
1520
|
+
* Verify — and, with consent, install — the configured provider's CLI.
|
|
1521
|
+
*
|
|
1522
|
+
* The toolchain phase used to install only what `remoteEnv.tools` listed, so a
|
|
1523
|
+
* project whose manifest did not happen to name its provider's CLI reached the
|
|
1524
|
+
* secrets phase without it. The catalogue entry, probe and installer are the
|
|
1525
|
+
* workstation skill's own, borrowed rather than duplicated so the pins and the
|
|
1526
|
+
* vendor install routes cannot drift between the two.
|
|
1527
|
+
* @param {string} provider Secrets provider name.
|
|
1528
|
+
* @param {{dryRun?: boolean, consent?: boolean, deps?: object}} [options] Run mode and injected probes.
|
|
1529
|
+
* @returns {Promise<object>} The plan row, updated with the install outcome.
|
|
1530
|
+
*/
|
|
1531
|
+
export async function ensureProviderCli(provider, options = {}) {
|
|
1532
|
+
// Consent defaults to NO: a caller that says nothing must not install. `main`
|
|
1533
|
+
// passes it explicitly — always on a remote surface, `--install-tools` locally.
|
|
1534
|
+
const { dryRun = false, consent = false, deps = {} } = options;
|
|
1535
|
+
const workstation = await import(
|
|
1536
|
+
pathToFileURL(siblingScript("lisa-setup-workstation", "workstation.mjs"))
|
|
1537
|
+
.href
|
|
1538
|
+
);
|
|
1539
|
+
const entry = workstation.resolveProvider(workstationProviderFor(provider));
|
|
1540
|
+
const row = workstation.planProvider(entry, deps);
|
|
1541
|
+
if (row.action !== "install" || dryRun || !consent) return row;
|
|
1542
|
+
|
|
1543
|
+
const installPinned =
|
|
1544
|
+
deps.installPinned ??
|
|
1545
|
+
(await (
|
|
1546
|
+
await import(
|
|
1547
|
+
pathToFileURL(siblingScript("lisa-setup-workstation", "cli.mjs")).href
|
|
1548
|
+
)
|
|
1549
|
+
).loadPinnedInstaller()) ??
|
|
1550
|
+
undefined;
|
|
1551
|
+
return workstation.installEntry({ ...entry, name: entry.binary }, row, {
|
|
1552
|
+
...deps,
|
|
1553
|
+
installPinned,
|
|
1554
|
+
});
|
|
1555
|
+
}
|
|
1556
|
+
|
|
1557
|
+
/**
|
|
1558
|
+
* Fail a remote toolchain run whose provider CLI is still missing.
|
|
1559
|
+
*
|
|
1560
|
+
* A remote container with no provider CLI cannot materialize anything, so it
|
|
1561
|
+
* fails here, naming the cause, rather than one phase later as a
|
|
1562
|
+
* missing-binary error from inside the secrets step. Locally and on a dry run
|
|
1563
|
+
* the plan row is only reported.
|
|
1564
|
+
* @param {{name: string, action: string, reason?: string}} row The provider plan row.
|
|
1565
|
+
* @param {{provider: string, remote: boolean, dryRun: boolean}} context Run mode.
|
|
1566
|
+
* @returns {void}
|
|
1567
|
+
*/
|
|
1568
|
+
export function assertProviderCliReady(row, { provider, remote, dryRun }) {
|
|
1569
|
+
if (!remote || dryRun) return;
|
|
1570
|
+
if (["present", "installed"].includes(row.action)) return;
|
|
1571
|
+
throw new Error(
|
|
1572
|
+
`the configured secrets provider "${provider}" needs ${row.name}, ` +
|
|
1573
|
+
`which is not available: ${row.reason}`
|
|
1574
|
+
);
|
|
1362
1575
|
}
|
|
1363
1576
|
|
|
1364
1577
|
/**
|
|
@@ -1391,11 +1604,6 @@ export async function resolveEmitTarget(
|
|
|
1391
1604
|
flag("tenant") ||
|
|
1392
1605
|
(env.LISA_TENANT ?? env.LISA_SECRETS_NAMESPACE ?? "").trim() ||
|
|
1393
1606
|
null;
|
|
1394
|
-
const provider =
|
|
1395
|
-
flag("provider") ||
|
|
1396
|
-
(env.LISA_PROVIDER ?? env.LISA_SECRETS_PROVIDER ?? "").trim() ||
|
|
1397
|
-
"bitwarden";
|
|
1398
|
-
|
|
1399
1607
|
// Validated before it can reach the output, by the same rule the runtime path
|
|
1400
1608
|
// applies. This one becomes `export LISA_TENANT=<value>` in a block an
|
|
1401
1609
|
// operator pastes verbatim, so `my tenant` or `has$var` would emit shell that
|
|
@@ -1408,10 +1616,18 @@ export async function resolveEmitTarget(
|
|
|
1408
1616
|
assertNamespace(tenant);
|
|
1409
1617
|
}
|
|
1410
1618
|
|
|
1619
|
+
// The tenant is handed on as the session will see it — exported — so a run
|
|
1620
|
+
// with no config resolves the same default the repo-less runtime will.
|
|
1621
|
+
const { provider } = await resolveSecretsProvider({
|
|
1622
|
+
argv,
|
|
1623
|
+
env: tenant ? { ...env, LISA_TENANT: tenant } : env,
|
|
1624
|
+
cwd,
|
|
1625
|
+
});
|
|
1626
|
+
|
|
1411
1627
|
// A configured key outranks the convention: a project may legitimately use a
|
|
1412
1628
|
// name that is not derivable, and this command must not tell its operator to
|
|
1413
1629
|
// set a different one from the one their sessions actually read.
|
|
1414
|
-
const configured = readBootstrapKey(cwd);
|
|
1630
|
+
const configured = await readBootstrapKey(cwd, env);
|
|
1415
1631
|
if (configured) return { tenant, provider, bootstrapKey: configured };
|
|
1416
1632
|
if (!tenant) return { tenant, provider, bootstrapKey: null };
|
|
1417
1633
|
|
|
@@ -1521,10 +1737,24 @@ async function main() {
|
|
|
1521
1737
|
// watching, and provisioning it is why the script exists. Locally the
|
|
1522
1738
|
// operator opts in per run.
|
|
1523
1739
|
const remote = Boolean(materializeAt);
|
|
1740
|
+
const consent = remote || process.argv.includes("--install-tools");
|
|
1524
1741
|
applyToolchain(cfg.tools, dryRun, {
|
|
1525
1742
|
surface: remote ? "remote" : "local",
|
|
1526
|
-
consent
|
|
1743
|
+
consent,
|
|
1527
1744
|
});
|
|
1745
|
+
// After the manifest, so a provider CLI the project pins itself is found
|
|
1746
|
+
// present rather than installed twice by two different routes.
|
|
1747
|
+
const { provider, source } = await resolveSecretsProvider({
|
|
1748
|
+
argv: process.argv,
|
|
1749
|
+
});
|
|
1750
|
+
const row = await ensureProviderCli(provider, { dryRun, consent });
|
|
1751
|
+
console.log(
|
|
1752
|
+
` provider ${provider} (from ${source}): ${row.action} — ${row.reason}`
|
|
1753
|
+
);
|
|
1754
|
+
// A remote container with no provider CLI cannot materialize anything, so
|
|
1755
|
+
// it fails here, naming the cause, rather than one phase later as a
|
|
1756
|
+
// missing-binary error from inside the secrets step.
|
|
1757
|
+
assertProviderCliReady(row, { provider, remote, dryRun });
|
|
1528
1758
|
}
|
|
1529
1759
|
|
|
1530
1760
|
if (phases.includes("secrets")) {
|
|
@@ -6,7 +6,7 @@ allowed-tools: ["Read", "Glob", "Grep", "Bash"]
|
|
|
6
6
|
|
|
7
7
|
# Ticket Triage: $ARGUMENTS
|
|
8
8
|
|
|
9
|
-
Perform analytical triage on the ticket. The caller MUST have run `lisa-tracker-read` (or its vendor-specific underlying skill — `lisa-jira-read-ticket` for JIRA, `lisa-github-read-issue` for GitHub) first and provided the resulting context bundle — which includes the primary ticket, all linked tickets (blocks / is blocked by / relates to / duplicates), parent (Epic in JIRA, parent sub-issue in GitHub), siblings, sub-tasks / sub-issues, and remote PR state. Do not triage from a bare ticket summary — if the bundle is missing link or parent context, stop and instruct the caller to run `/tracker-read` first.
|
|
9
|
+
Perform analytical triage on the ticket. The caller MUST have run `lisa-tracker-read` (or its vendor-specific underlying skill — `lisa-jira-read-ticket` for JIRA, `lisa-github-read-issue` for GitHub, `lisa-linear-read-issue` for Linear) first and provided the resulting context bundle — which includes the primary ticket, all linked tickets (blocks / is blocked by / relates to / duplicates), parent (Epic in JIRA, parent sub-issue in GitHub, parent Project or parent Issue in Linear), siblings, sub-tasks / sub-issues, and remote PR state. Do not triage from a bare ticket summary — if the bundle is missing link or parent context, stop and instruct the caller to run `/tracker-read` first.
|
|
10
10
|
|
|
11
11
|
Repository name for scoped labels and comment headers: determine via `basename $(git rev-parse --show-toplevel)`.
|
|
12
12
|
|
|
@@ -14,7 +14,7 @@ Repository name for scoped labels and comment headers: determine via `basename $
|
|
|
14
14
|
|
|
15
15
|
Before any analytical work, confirm the ticket carries the content an implementer needs to start. The caller should already have run `lisa-tracker-verify`; this phase consumes its output. If `lisa-tracker-verify` returned `FAIL` for any of the following, emit `BLOCKED` immediately with the missing-requirements list and skip to Phase 6:
|
|
16
16
|
|
|
17
|
-
- Parent missing (Epic parent for JIRA non-bug-non-epic; parent sub-issue for GitHub non-bug-non-epic)
|
|
17
|
+
- Parent missing (Epic parent for JIRA non-bug-non-epic; parent sub-issue for GitHub non-bug-non-epic; parent Project — or parent Issue for a sub-Issue — for Linear non-bug-non-epic)
|
|
18
18
|
- Description quality failures (no Gherkin acceptance criteria, missing audience sections)
|
|
19
19
|
- Validation Journey missing on a runtime-behavior ticket
|
|
20
20
|
- Target backend environment missing on a runtime-behavior ticket
|
|
@@ -23,7 +23,7 @@ Before any analytical work, confirm the ticket carries the content an implemente
|
|
|
23
23
|
|
|
24
24
|
Single-repo scope is handled separately — see below.
|
|
25
25
|
|
|
26
|
-
The caller (jira-agent or
|
|
26
|
+
The caller (jira-agent, github-agent, or linear-agent) is responsible for moving the ticket to the configured `blocked` lifecycle role — the `Blocked` status in JIRA, the `status:blocked` label in GitHub, the configured `blocked` workflow state in Linear — reassigning to the **Reporter / original author**, and posting a comment listing the missing requirements. This skill only emits the verdict and the missing-requirements list.
|
|
27
27
|
|
|
28
28
|
**Single-repo scope is split, not blocked.** A cross-repo leaf work unit (Bug / Task / Sub-task / Improvement spanning repos) is a decomposition error the agent owns, not a terminal BLOCKED. Do not emit BLOCKED for it. The caller runs the **work-time split procedure** in the `repo-scope-split` rule (narrow the original to one repo, spin off a sibling per additional repo, link the producer→consumer dependency), then re-runs `tracker-verify` and re-enters triage on the now single-repo ticket. Only fall back to BLOCKED if the split is ambiguous (see "When to block instead of split" in that rule).
|
|
29
29
|
|
|
@@ -170,7 +170,7 @@ Evaluate the findings and produce exactly one verdict:
|
|
|
170
170
|
|
|
171
171
|
- **`NOT_RELEVANT`** -- No relevant code was found in this repository (Phase 1). The caller should add the triage label and skip implementation in this repo.
|
|
172
172
|
- **`DUPLICATE_ALREADY_FIXED`** -- This ticket duplicates canonical work whose fix is already merged/deployed and empirically confirmed present on the relevant base branch. Work MUST NOT proceed. The caller must post the triage finding, ensure the native `duplicates <canonical>` link exists when the tracker supports one, and return the structured canonical reference/evidence to build intake for terminal duplicate closeout.
|
|
173
|
-
- **`BLOCKED`** -- Blocking conditions were found in Phase 0 (missing required description content), Phase 1.5 (open blockers, duplicate-of-open), and/or Phase 3 (ambiguities). Work MUST NOT proceed until resolved by a human. When the block is from Phase 0, the caller (jira-agent) MUST
|
|
173
|
+
- **`BLOCKED`** -- Blocking conditions were found in Phase 0 (missing required description content), Phase 1.5 (open blockers, duplicate-of-open), and/or Phase 3 (ambiguities). Work MUST NOT proceed until resolved by a human. When the block is from Phase 0, the caller (jira-agent, github-agent, or linear-agent) MUST move the ticket to the configured `blocked` lifecycle role and reassign to the Reporter — not just leave it in place. For Phase 1.5 / Phase 3 blocks, post findings, add the triage label, and STOP.
|
|
174
174
|
- **`PASSED_WITH_FINDINGS`** -- No ambiguities, but edge cases or verification findings were identified. Work can proceed. The caller should post findings and add the triage label.
|
|
175
175
|
- **`PASSED`** -- No ambiguities, edge cases, or verification gaps found. Work can proceed. The caller should add the triage label.
|
|
176
176
|
|
|
@@ -207,8 +207,8 @@ Structure all output with clear section headers so the caller can parse and post
|
|
|
207
207
|
```
|
|
208
208
|
|
|
209
209
|
The caller is responsible for:
|
|
210
|
-
1. Posting the findings as comments on the ticket
|
|
210
|
+
1. Posting the findings as comments on the ticket with the configured tracker's comment mechanism — the vendor agent's triage step owns it: jira-agent for JIRA, github-agent (`gh issue comment`) for GitHub, linear-agent (`lisa-linear-access`) for Linear
|
|
211
211
|
2. Adding the `claude-triaged-{repo}` label to the ticket
|
|
212
|
-
3. If `BLOCKED` due to Phase 0 (missing required description content):
|
|
212
|
+
3. If `BLOCKED` due to Phase 0 (missing required description content): moving the ticket to the configured `blocked` lifecycle role, reassigning to the **Reporter**, posting a comment listing the missing requirements, and stopping all work.
|
|
213
213
|
4. If `DUPLICATE_ALREADY_FIXED`: return the canonical ticket reference and empirical base-branch evidence to build intake so it can close the ticket as a terminal duplicate without opening a PR.
|
|
214
214
|
5. If `BLOCKED` due to Phase 1.5 (open blockers, duplicate-of-open) or Phase 3 (ambiguities): stopping all work and reporting to the human; do NOT auto-transition status in these cases.
|
|
@@ -13,6 +13,7 @@ See the `config-resolution` rule for configuration and dispatch table.
|
|
|
13
13
|
## Workflow
|
|
14
14
|
|
|
15
15
|
1. Resolve tracker config (same logic as `lisa-tracker-write`).
|
|
16
|
+
Then, when an installed stack plugin ships a `journey-guidance` skill (the Expo and Rails plugins do), invoke it and carry its guidance — when a ticket needs a journey and how to write its steps, markers, viewports, and assertions — into the vendor skill below. It is tracker-neutral, so it applies to `jira`, `github`, and `linear` alike. When no stack plugin ships one, continue with the base behaviour; that is not an error.
|
|
16
17
|
2. Dispatch:
|
|
17
18
|
- Missing / empty → stop and report `"No tracker configured in .lisa.config.json. Run /lisa:setup:jira, /lisa:setup:github, or /lisa:setup:linear first."`
|
|
18
19
|
- `jira` → invoke `lisa-jira-add-journey` with `$ARGUMENTS` verbatim. Arg: a JIRA ticket key.
|
|
@@ -13,6 +13,7 @@ See the `config-resolution` rule for configuration and dispatch table.
|
|
|
13
13
|
## Workflow
|
|
14
14
|
|
|
15
15
|
1. Resolve tracker config (same logic as `lisa-tracker-write`).
|
|
16
|
+
Then, when an installed stack plugin ships a `journey-guidance` skill (the Expo and Rails plugins do), invoke it and carry its guidance — which planned tickets need a Validation Journey and how to draft it, plus stack reuse expectations — into the vendor skill below. It is tracker-neutral, so it applies to `jira`, `github`, and `linear` alike. When no stack plugin ships one, continue with the base behaviour; that is not an error.
|
|
16
17
|
2. Dispatch:
|
|
17
18
|
- Missing / empty → stop and report `"No tracker configured in .lisa.config.json. Run /lisa:setup:jira, /lisa:setup:github, or /lisa:setup:linear first."`
|
|
18
19
|
- `jira` → invoke `lisa-jira-create` with `$ARGUMENTS` verbatim.
|
|
@@ -20,6 +20,7 @@ or publishing completion proof. It ships with the skill even on runtimes that
|
|
|
20
20
|
omit the plugin rules tree; do not assume a runtime-specific rules directory.
|
|
21
21
|
|
|
22
22
|
1. Resolve tracker config (same logic as `lisa-tracker-write`).
|
|
23
|
+
Then, when an installed stack plugin ships a `journey-guidance` skill (the Expo and Rails plugins do), invoke it and carry its guidance — how the stack names its evidence files — into the vendor skill below. It is tracker-neutral, so it applies to `jira`, `github`, and `linear` alike. When no stack plugin ships one, continue with the base behaviour; that is not an error.
|
|
23
24
|
2. Missing / empty → stop and report `"No tracker configured in .lisa.config.json. Run /lisa:setup:jira, /lisa:setup:github, or /lisa:setup:linear first."`
|
|
24
25
|
3. Before dispatching, update the generated evidence artifact through `lisa-usage-accounting` so the comment body / PR evidence section carries a direct `lisa-verify` usage entry in the canonical `## Lisa Usage` section. If the originating work item's parentage or child refs are already known, prefer `record_and_rollup` so ancestor totals refresh in the same write; otherwise still write the direct entry, and if trustworthy runtime usage is unavailable, write `source: unavailable` with nullable token/cost fields instead of skipping the row.
|
|
25
26
|
4. Dispatch:
|
|
@@ -13,6 +13,7 @@ See the `config-resolution` rule for configuration and dispatch table.
|
|
|
13
13
|
## Workflow
|
|
14
14
|
|
|
15
15
|
1. Resolve tracker config (same logic as `lisa-tracker-write`).
|
|
16
|
+
Then, when an installed stack plugin ships a `journey-guidance` skill (the Expo and Rails plugins do), invoke it and carry its guidance — how to satisfy prerequisites, run the steps (for example, once per viewport), and name the captured evidence — into the vendor skill below. It is tracker-neutral, so it applies to `jira`, `github`, and `linear` alike. When no stack plugin ships one, continue with the base behaviour; that is not an error.
|
|
16
17
|
2. Dispatch:
|
|
17
18
|
- Missing / empty → stop and report `"No tracker configured in .lisa.config.json. Run /lisa:setup:jira, /lisa:setup:github, or /lisa:setup:linear first."`
|
|
18
19
|
- `jira` → invoke `lisa-jira-journey` with `$ARGUMENTS` verbatim. Arg shape: `<TICKET_ID> [PR_NUMBER]`.
|
|
@@ -25,7 +25,7 @@ You are an operations specialist for an Expo + serverless backend application. Y
|
|
|
25
25
|
| Backend | NestJS (Serverless Framework on AWS Lambda) | TypeORM, PostgreSQL, Cognito, Redis, GraphQL |
|
|
26
26
|
| Auth | AWS Cognito | Phone + OTP flow |
|
|
27
27
|
| CI/CD | GitHub Actions | EAS Update (OTA), Serverless deploy |
|
|
28
|
-
| Monitoring | Sentry | Frontend + Backend projects |
|
|
28
|
+
| Monitoring | Configured error tracker (`observability.errorTracking.provider`; default Sentry) | Frontend + Backend projects |
|
|
29
29
|
|
|
30
30
|
## Repository Paths
|
|
31
31
|
|
|
@@ -66,7 +66,7 @@ On first invocation, discover project-specific values by reading these files:
|
|
|
66
66
|
| Lambda functions | Backend `package.json` | Scripts matching `logs:*` and `deploy:function:*` patterns |
|
|
67
67
|
| Deploy commands | Backend `package.json` | Scripts matching `deploy:*` pattern |
|
|
68
68
|
| Migration commands | Backend `package.json` | Scripts matching `migration:*` pattern |
|
|
69
|
-
|
|
|
69
|
+
| Error tracker | `<lisa-resolved-config>` → `observability.errorTracking.provider` | `sentry` (default): `@sentry/react-native` dependency; org/project from `.sentryclirc` or Sentry DSN in `.env.*`. `other`: whatever the project wires. `none`: no tracker — skip error monitoring and say so |
|
|
70
70
|
| Frontend scripts | Frontend `package.json` | All available `scripts` |
|
|
71
71
|
|
|
72
72
|
## App Routes
|
|
@@ -91,7 +91,7 @@ Read `app/` directory structure to discover all available routes.
|
|
|
91
91
|
| `ops-verify-health` | Health check all services across environments |
|
|
92
92
|
| `ops-browser-uat` | Browser-based UAT via Playwright MCP tools |
|
|
93
93
|
| `ops-db-ops` | Database migrations, reverts, schema generation, GraphQL codegen |
|
|
94
|
-
| `ops-monitor-errors` | Monitor
|
|
94
|
+
| `ops-monitor-errors` | Monitor the configured error tracker for unresolved errors |
|
|
95
95
|
| `ops-performance` | Lighthouse audits, bundle analysis, k6 load tests |
|
|
96
96
|
|
|
97
97
|
## Troubleshooting Quick Reference
|
|
@@ -104,7 +104,7 @@ h3. Assertions
|
|
|
104
104
|
1. **3-7 screenshot markers** — Enough to prove the feature, not so many that execution is slow
|
|
105
105
|
2. **Concrete steps** — "Click the 'Add action' button" not "Interact with the controls"
|
|
106
106
|
3. **Include auth if needed** — If the journey requires login, include credentials in Prerequisites
|
|
107
|
-
4. **Name feature flags explicitly** — If the feature is behind a PostHog
|
|
107
|
+
4. **Name feature flags explicitly** — If the feature is behind a feature flag (in PostHog when `observability.analytics.provider` is `posthog`, the default), name it
|
|
108
108
|
5. **Assertions must be testable** — "Buttons stacked vertically on mobile" not "Layout looks good"
|
|
109
109
|
6. **Screenshot names in kebab-case** — `confirm-step-disabled`, `modal-open`, `form-error`
|
|
110
110
|
|
|
@@ -88,7 +88,7 @@ h3. Assertions
|
|
|
88
88
|
3. **Include 3-7 screenshot markers** — Enough to prove the feature works, not so many that execution is slow
|
|
89
89
|
4. **Viewports match the change scope** — Always include Desktop (1512x768). Add Mobile (375x812) for responsive changes. Add Tablet (768x1024) only if relevant.
|
|
90
90
|
5. **Assertions are testable statements** — "Buttons stacked vertically on mobile" not "Layout looks good"
|
|
91
|
-
6. **Prerequisites include feature flags** — If the feature is behind a PostHog
|
|
91
|
+
6. **Prerequisites include feature flags** — If the feature is behind a feature flag (in PostHog when `observability.analytics.provider` is `posthog`, the default), name it explicitly
|
|
92
92
|
7. **Auth steps included when needed** — If the journey requires login, include the test credentials in Prerequisites
|
|
93
93
|
|
|
94
94
|
## Source Artifacts
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: journey-guidance
|
|
3
|
+
description: "Expo stack guidance for Validation Journeys on any tracker: when a ticket needs one, writing it with screenshot markers and viewports, running it in the browser, and naming screenshots. Read by the tracker journey, add-journey, create and evidence skills."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Expo Validation Journey Guidance
|
|
7
|
+
|
|
8
|
+
Stack-specific guidance for Validation Journeys in an Expo / React Native project. It applies the same way whichever tracker the project uses (`tracker` in `.lisa.config.json`: `jira`, `github`, or `linear`).
|
|
9
|
+
|
|
10
|
+
This skill adds the Expo parts only. The vendor skills still read the ticket, append the journey, and post the evidence; the tracker dispatchers (`lisa-tracker-journey`, `lisa-tracker-add-journey`, `lisa-tracker-create`, `lisa-tracker-evidence`) consult this skill before they dispatch. The Jira-only overlays in this plugin (`jira-journey`, `jira-add-journey`, `jira-create`, `jira-evidence`) carry the same guidance plus Jira mechanics; this skill is what a GitHub or Linear project reaches.
|
|
11
|
+
|
|
12
|
+
## When a ticket needs a journey
|
|
13
|
+
|
|
14
|
+
Every ticket that changes, adds, or fixes UI includes a `Validation Journey` section:
|
|
15
|
+
|
|
16
|
+
- New UI components or screens
|
|
17
|
+
- Layout or styling changes (responsive, spacing, colors)
|
|
18
|
+
- Modal, drawer, or popover behavior
|
|
19
|
+
- Form validation or user input flows
|
|
20
|
+
- Bug fixes that can be checked by looking at the screen
|
|
21
|
+
|
|
22
|
+
Skip it only for pure backend/API changes with no UI surface, config-only changes (env vars, feature flags), and test-only or documentation-only changes.
|
|
23
|
+
|
|
24
|
+
When the work touches an existing screen, walk the live product first (`lisa-product-walkthrough`) and carry the findings under `## Current Product`. A UI ticket without a current-product walkthrough is missing context the implementer needs.
|
|
25
|
+
|
|
26
|
+
## Writing the journey
|
|
27
|
+
|
|
28
|
+
Write it from the end user's point of view, in the tracker's own markup (Markdown for GitHub and Linear, wiki markup for Jira):
|
|
29
|
+
|
|
30
|
+
```markdown
|
|
31
|
+
## Validation Journey
|
|
32
|
+
|
|
33
|
+
### Prerequisites
|
|
34
|
+
- App running locally or on dev
|
|
35
|
+
- Authenticated as test user
|
|
36
|
+
- Required feature flags enabled (name each flag; in PostHog when `observability.analytics.provider` is `posthog`, the default)
|
|
37
|
+
|
|
38
|
+
### Steps
|
|
39
|
+
1. Navigate to the relevant page
|
|
40
|
+
2. Perform the first action
|
|
41
|
+
3. Verify the expected state [SCREENSHOT: state-name]
|
|
42
|
+
4. Perform the next action
|
|
43
|
+
5. Verify the final state [SCREENSHOT: final-state]
|
|
44
|
+
|
|
45
|
+
### Viewports
|
|
46
|
+
| Name | Width | Height |
|
|
47
|
+
|------|-------|--------|
|
|
48
|
+
| Desktop | 1512 | 768 |
|
|
49
|
+
| Mobile | 375 | 812 |
|
|
50
|
+
|
|
51
|
+
### Assertions
|
|
52
|
+
- What must be true on screen at each viewport
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
Rules:
|
|
56
|
+
|
|
57
|
+
1. **Concrete steps** — "Click the 'Add action' button", not "Interact with the controls".
|
|
58
|
+
2. **3–7 screenshot markers** at the states that prove the change works. `[SCREENSHOT: name]` is shorthand for the typed `[EVIDENCE: screenshot: name]` marker in the `verification` rule. Names are kebab-case (`modal-open`, `button-disabled`, `form-error`).
|
|
59
|
+
3. **Viewports match the change** — always Desktop (1512×768); add Mobile (375×812) for responsive changes; add Tablet (768×1024) only when relevant.
|
|
60
|
+
4. **Assertions are testable** — "Buttons stacked vertically on mobile", not "Layout looks good".
|
|
61
|
+
5. **Include sign-in** in Prerequisites when the journey needs it.
|
|
62
|
+
|
|
63
|
+
To find the flow, read the code: the components involved (search by ticket id, feature name, or paths named in the ticket), the `testID`s Playwright can target, and the Container/View structure, navigation, and modals.
|
|
64
|
+
|
|
65
|
+
## Running the journey
|
|
66
|
+
|
|
67
|
+
Requires the Playwright MCP server and a running dev server.
|
|
68
|
+
|
|
69
|
+
1. Satisfy prerequisites: check the dev server responds (`browser_navigate` to the app URL), sign in with test credentials from `.env.localhost` or `.env.local`, and go to the starting point.
|
|
70
|
+
2. Run the **full journey once per viewport**. Between viewports, `browser_resize` to the next size, navigate back to the start, and repeat every step — some modals close on resize, and each screenshot must reflect that viewport's state.
|
|
71
|
+
3. At each screenshot marker, `browser_take_screenshot`. For a conditional step, capture the state the step text describes.
|
|
72
|
+
|
|
73
|
+
## Naming the evidence
|
|
74
|
+
|
|
75
|
+
Screenshots are `NN-<marker-name>-<viewport>.png`: a zero-padded sequence number, the marker name, and the lowercase viewport name. Three markers over two viewports give `01-…-desktop.png` through `06-…-mobile.png`. What happens to them next depends on the tracker. On Jira, `lisa-jira-evidence` uploads them to the configured evidence release under a PR-scoped name, so same-named files on two pull requests never overwrite each other. The GitHub and Linear evidence skills upload text evidence only (`lisa-github-evidence` takes `NN-*.txt`/`.json`; `lisa-linear-evidence` takes text files from `evidence/files/`), so on those trackers attach image evidence to the pull request yourself, and record the text form of each check (for example the command output) under the same `NN-` name so the vendor skill carries it.
|
|
@@ -21,7 +21,7 @@ View and search logs across all platforms and environments.
|
|
|
21
21
|
|
|
22
22
|
1. Read backend `package.json` to discover `logs:*`, `logs:watch:*`, and `aws:signin:*` scripts
|
|
23
23
|
2. Extract function names from `logs:{env}` scripts (typically set via `FUNCTION_NAME` env var)
|
|
24
|
-
3.
|
|
24
|
+
3. When `observability.errorTracking.provider` is `sentry` (the default), read `.env.{environment}` to find the Sentry DSN for error correlation. With `other`, look for the tracker the project wires instead; with `none`, skip error correlation
|
|
25
25
|
|
|
26
26
|
## Local Process Logs
|
|
27
27
|
|
|
@@ -112,7 +112,7 @@ After any deployment:
|
|
|
112
112
|
|
|
113
113
|
1. **Health check** the deployed environment (use `ops-verify-health` skill)
|
|
114
114
|
2. **Check logs** for errors in the first 5 minutes (use `ops-check-logs` skill)
|
|
115
|
-
3. **Monitor
|
|
115
|
+
3. **Monitor the configured error tracker** for new issues (use `ops-monitor-errors` skill; when `observability.errorTracking.provider` is `none`, record "no error tracker configured" for this step instead)
|
|
116
116
|
4. **Run browser UAT smoke test** against the deployed environment (use `ops-browser-uat` skill)
|
|
117
117
|
|
|
118
118
|
Report deployment result as a table:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: ops-monitor-errors
|
|
3
|
-
description: Monitor Sentry for unresolved errors in frontend and backend projects. Supports filtering by project, environment, and time range.
|
|
3
|
+
description: Monitor the project's configured error tracker (Sentry by default) for unresolved errors in frontend and backend projects. Supports filtering by project, environment, and time range. Follows observability.errorTracking.provider — reports "no error tracker configured" when it is none.
|
|
4
4
|
allowed-tools:
|
|
5
5
|
- Bash
|
|
6
6
|
- Read
|
|
@@ -8,10 +8,22 @@ allowed-tools:
|
|
|
8
8
|
|
|
9
9
|
# Ops: Monitor Errors
|
|
10
10
|
|
|
11
|
-
Monitor
|
|
11
|
+
Monitor the project's error tracker for errors in the application.
|
|
12
12
|
|
|
13
13
|
**Argument**: `$ARGUMENTS` — project (`frontend`, `backend`, `all`; default: `all`) and optional time range (default: `1h`)
|
|
14
14
|
|
|
15
|
+
## Resolve the configured error tracker
|
|
16
|
+
|
|
17
|
+
Read `observability.errorTracking.provider` from the `<lisa-resolved-config>` block (the `config-resolution` rule documents the key). Absent means `sentry`, which is what this skill assumed before the key existed.
|
|
18
|
+
|
|
19
|
+
| Provider | What to do |
|
|
20
|
+
|----------|------------|
|
|
21
|
+
| `sentry` | Use the Sentry path below. |
|
|
22
|
+
| `none` | Do not query anything. Report `No error tracker is configured for this project (observability.errorTracking.provider: none), so error monitoring was skipped.` and stop. Never call the Sentry CLI, API, or MCP. |
|
|
23
|
+
| `other` | Do not use Sentry. Discover the tracker the project actually wires (read `package.json` dependencies, `.env.*` keys, and app bootstrap code), then query it through its own CLI or API with credentials from `lisa-secrets-access`. If nothing reachable is wired, report what is missing and stop. Produce the same output table and severity classification below. |
|
|
24
|
+
|
|
25
|
+
Everything from here to **Post-Deploy Workflow** is the `sentry` path.
|
|
26
|
+
|
|
15
27
|
## Discovery
|
|
16
28
|
|
|
17
29
|
Discover Sentry configuration from:
|
|
@@ -74,7 +86,7 @@ curl -sf "https://sentry.io/api/0/projects/{org}/{project}/issues/?query=is:unre
|
|
|
74
86
|
After any deployment:
|
|
75
87
|
|
|
76
88
|
1. Wait 5 minutes for errors to surface
|
|
77
|
-
2. Check for new unresolved issues in the deployed environment
|
|
89
|
+
2. Check for new unresolved issues in the deployed environment, using the configured provider (skip with the `none` message when no tracker is configured)
|
|
78
90
|
3. Assess severity: are these new regressions or pre-existing?
|
|
79
91
|
4. Report findings with severity assessment
|
|
80
92
|
|