@codyswann/lisa 8.7.1 → 8.9.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/README.md +21 -0
- package/all/copy-overwrite/scripts/lib/completion-authorization.mjs +54 -0
- package/all/copy-overwrite/scripts/lib/completion-proof-adapters.mjs +59 -0
- package/all/copy-overwrite/scripts/lib/completion-proof-markdown.mjs +1 -1
- package/all/copy-overwrite/scripts/lib/npm-update-helper-inventory.mjs +1 -0
- package/all/copy-overwrite/scripts/lib/release-switch.d.mts +91 -0
- package/all/copy-overwrite/scripts/lib/release-switch.mjs +1049 -0
- package/all/copy-overwrite/scripts/lisa-enforcement-fallback.sh +3 -3
- package/all/copy-overwrite/scripts/lisa-enforcement-freshness.mjs +1 -0
- package/all/copy-overwrite/scripts/lisa-gates.mjs +90 -5
- package/all/copy-overwrite/scripts/lisa-hooks/task-readiness-guard.sh +54 -0
- package/all/copy-overwrite/scripts/lisa-release-switch.mjs +203 -0
- package/all/copy-overwrite/scripts/npm-updater-helper-graph.json +18 -5
- package/dist/cli/doctor-release-setting.d.ts +8 -0
- package/dist/cli/doctor-release-setting.d.ts.map +1 -0
- package/dist/cli/doctor-release-setting.js +71 -0
- package/dist/cli/doctor-release-setting.js.map +1 -0
- package/dist/cli/doctor.d.ts.map +1 -1
- package/dist/cli/doctor.js +2 -0
- package/dist/cli/doctor.js.map +1 -1
- package/dist/controls/before-enforce-observe.d.ts +1 -1
- package/dist/controls/before-enforce-observe.d.ts.map +1 -1
- package/dist/controls/before-enforce-observe.js +3 -7
- package/dist/controls/before-enforce-observe.js.map +1 -1
- package/dist/controls/before-enforce-workspace.d.ts.map +1 -1
- package/dist/controls/before-enforce-workspace.js +16 -1
- package/dist/controls/before-enforce-workspace.js.map +1 -1
- package/dist/controls/commands/proof-check.d.ts +1 -1
- package/dist/controls/commands/proof-check.d.ts.map +1 -1
- package/dist/controls/commands/proof-check.js +11 -11
- package/dist/controls/commands/seed.d.ts.map +1 -1
- package/dist/controls/commands/seed.js +14 -30
- package/dist/controls/commands/seed.js.map +1 -1
- package/dist/controls/proof-check-plan.d.ts +5 -6
- package/dist/controls/proof-check-plan.d.ts.map +1 -1
- package/dist/controls/proof-check-plan.js +11 -10
- package/dist/controls/proof-check-plan.js.map +1 -1
- package/dist/controls/proof-check-report.d.ts.map +1 -1
- package/dist/controls/proof-check-report.js +2 -4
- package/dist/controls/proof-check-report.js.map +1 -1
- package/dist/controls/proof-copy-source.d.ts +24 -0
- package/dist/controls/proof-copy-source.d.ts.map +1 -0
- package/dist/controls/proof-copy-source.js +60 -0
- package/dist/controls/proof-copy-source.js.map +1 -0
- package/dist/controls/proof-copy-wording.d.ts +10 -1
- package/dist/controls/proof-copy-wording.d.ts.map +1 -1
- package/dist/controls/proof-copy-wording.js +23 -2
- package/dist/controls/proof-copy-wording.js.map +1 -1
- package/dist/controls/proof-copy-workspace.d.ts +4 -3
- package/dist/controls/proof-copy-workspace.d.ts.map +1 -1
- package/dist/controls/proof-copy-workspace.js +39 -23
- package/dist/controls/proof-copy-workspace.js.map +1 -1
- package/dist/controls/proof-copy.d.ts +1 -9
- package/dist/controls/proof-copy.d.ts.map +1 -1
- package/dist/controls/proof-copy.js +3 -45
- package/dist/controls/proof-copy.js.map +1 -1
- package/dist/controls/proof-half-run.d.ts +1 -1
- package/dist/controls/proof-half-run.d.ts.map +1 -1
- package/dist/controls/proof-half-run.js +6 -9
- package/dist/controls/proof-half-run.js.map +1 -1
- package/dist/controls/proof-plan.d.ts +17 -2
- package/dist/controls/proof-plan.d.ts.map +1 -1
- package/dist/controls/proof-plan.js +47 -3
- package/dist/controls/proof-plan.js.map +1 -1
- package/dist/controls/proof-push-fixture.d.ts +16 -0
- package/dist/controls/proof-push-fixture.d.ts.map +1 -0
- package/dist/controls/proof-push-fixture.js +137 -0
- package/dist/controls/proof-push-fixture.js.map +1 -0
- package/dist/controls/proof-types.d.ts +4 -0
- package/dist/controls/proof-types.d.ts.map +1 -1
- package/dist/controls/register-entries.d.ts.map +1 -1
- package/dist/controls/register-entries.js +23 -2
- package/dist/controls/register-entries.js.map +1 -1
- package/dist/controls/register-types.d.ts +4 -0
- package/dist/controls/register-types.d.ts.map +1 -1
- package/dist/controls/register-types.js.map +1 -1
- package/dist/controls/shipped-parts.d.ts +8 -6
- package/dist/controls/shipped-parts.d.ts.map +1 -1
- package/dist/controls/shipped-parts.js +19 -1
- package/dist/controls/shipped-parts.js.map +1 -1
- package/dist/controls/shipped-task-proofs.d.ts +24 -0
- package/dist/controls/shipped-task-proofs.d.ts.map +1 -0
- package/dist/controls/shipped-task-proofs.js +191 -0
- package/dist/controls/shipped-task-proofs.js.map +1 -0
- package/dist/core/lisa-owned-hash-ledger.json +148 -4
- package/dist/core/nightly-e2e-guard-behavior-certificate.js +2 -2
- package/dist/core/upstream-evidence-manifest.json +391 -66
- package/dist/migrations/ensure-seeded-gates.d.ts.map +1 -1
- package/dist/migrations/ensure-seeded-gates.js +4 -1
- package/dist/migrations/ensure-seeded-gates.js.map +1 -1
- package/dist/opencode/hooks-installer.d.ts.map +1 -1
- package/dist/opencode/hooks-installer.js +2 -0
- package/dist/opencode/hooks-installer.js.map +1 -1
- package/dist/opencode/plugin-catalog.d.ts.map +1 -1
- package/dist/opencode/plugin-catalog.js +5 -0
- package/dist/opencode/plugin-catalog.js.map +1 -1
- package/dist/opencode/plugin-templates/lisa-task-readiness.ts +47 -0
- package/dist/opencode/plugin-templates/task-readiness-guard.mjs +99 -0
- package/dist/opencode/plugin-templates/task-readiness-guard.sh +54 -0
- package/package.json +5 -4
- package/plugins/lisa/.claude-plugin/plugin.json +49 -2
- package/plugins/lisa/.codex-plugin/hooks.json +48 -1
- package/plugins/lisa/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-atlassian-access/SKILL.md +13 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-configure/SKILL.md +19 -7
- package/plugins/lisa/.codex-plugin/skills/lisa-doctor/SKILL.md +10 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-drive-pr-to-merge/SKILL.md +9 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-git-submit-pr/SKILL.md +1 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-github-build-intake/SKILL.md +2 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-github-claim/SKILL.md +2 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-github-read-issue/SKILL.md +29 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-github-read-issue/read-contract.mjs +70 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-github-validate-issue/SKILL.md +27 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-github-write-issue/SKILL.md +23 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-implement/SKILL.md +15 -2
- package/plugins/lisa/.codex-plugin/skills/lisa-jira-build-intake/SKILL.md +2 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-jira-claim/SKILL.md +2 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-jira-read-ticket/SKILL.md +9 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-jira-validate-ticket/SKILL.md +27 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-jira-write-ticket/SKILL.md +23 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-linear-access/SKILL.md +102 -103
- package/plugins/lisa/.codex-plugin/skills/lisa-linear-access/scripts/linear-graphql.sh +428 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-linear-build-intake/SKILL.md +2 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-linear-claim/SKILL.md +3 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-linear-read-issue/SKILL.md +13 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-linear-validate-issue/SKILL.md +26 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-linear-write-issue/SKILL.md +27 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-notion-access/SKILL.md +37 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-notion-access/scripts/readiness-probe.mjs +83 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/SKILL.md +8 -26
- package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/aws-bootstrap.mjs +89 -117
- package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/config-files.mjs +42 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/config-layers.mjs +139 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/materialize-secrets.mjs +138 -125
- package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/preflight-secrets.mjs +98 -10
- package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/providers.mjs +24 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/routing-floor.mjs +21 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/surfaces.mjs +111 -36
- package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/task-access.mjs +205 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/task-action.mjs +218 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/task-atlassian-native.mjs +181 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/task-context-data.mjs +75 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/task-context-write.mjs +158 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/task-github.mjs +92 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/task-intake-read.mjs +171 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/task-intake.mjs +155 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/task-native-context.mjs +71 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/task-native-contract.mjs +156 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/task-native-flow.mjs +253 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/task-native-lifecycle.mjs +106 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/task-native-state.mjs +171 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/task-readiness.mjs +347 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/task-requirements.mjs +279 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/task-tracker-intake.mjs +463 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/validate-config.mjs +2 -21
- package/plugins/lisa/.codex-plugin/skills/lisa-setup-linear/SKILL.md +2 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-setup-remote-aws/SKILL.md +8 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-task-decomposition/SKILL.md +1 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-track/SKILL.md +13 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-tracker-claim/SKILL.md +2 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-verify/SKILL.md +4 -1
- package/plugins/lisa/hooks/inject-resolved-config.mjs +235 -3
- package/plugins/lisa/hooks/secrets-preflight.agy.sh +19 -0
- package/plugins/lisa/hooks/secrets-preflight.sh +42 -0
- package/plugins/lisa/hooks/task-readiness-guard.mjs +96 -0
- package/plugins/lisa/hooks/task-readiness-guard.sh +54 -0
- package/plugins/lisa/rules/eager/coding-philosophy.md +7 -6
- package/plugins/lisa/rules/reference/coding-philosophy.md +48 -0
- package/plugins/lisa/rules/reference/config-resolution.md +4 -1
- package/plugins/lisa/rules/reference/intent-routing.md +2 -2
- package/plugins/lisa/rules/reference/tool-access-gate.md +160 -0
- package/plugins/lisa/rules/reference/tracked-work.md +2 -0
- package/plugins/lisa/rules/reference/work-item-definition-of-ready.md +31 -0
- package/plugins/lisa/scripts/install-remote-agent-aws.mjs +3 -2
- package/plugins/lisa/scripts/remote-agent-aws-setup.sh +123 -10
- package/plugins/lisa/skills/lisa-atlassian-access/SKILL.md +13 -0
- package/plugins/lisa/skills/lisa-configure/SKILL.md +19 -7
- package/plugins/lisa/skills/lisa-doctor/SKILL.md +10 -0
- package/plugins/lisa/skills/lisa-drive-pr-to-merge/SKILL.md +9 -0
- package/plugins/lisa/skills/lisa-git-submit-pr/SKILL.md +1 -0
- package/plugins/lisa/skills/lisa-github-build-intake/SKILL.md +2 -0
- package/plugins/lisa/skills/lisa-github-claim/SKILL.md +2 -0
- package/plugins/lisa/skills/lisa-github-read-issue/SKILL.md +29 -0
- package/plugins/lisa/skills/lisa-github-read-issue/read-contract.mjs +70 -0
- package/plugins/lisa/skills/lisa-github-validate-issue/SKILL.md +27 -1
- package/plugins/lisa/skills/lisa-github-write-issue/SKILL.md +23 -0
- package/plugins/lisa/skills/lisa-implement/SKILL.md +15 -2
- package/plugins/lisa/skills/lisa-jira-build-intake/SKILL.md +2 -0
- package/plugins/lisa/skills/lisa-jira-claim/SKILL.md +2 -0
- package/plugins/lisa/skills/lisa-jira-read-ticket/SKILL.md +9 -0
- package/plugins/lisa/skills/lisa-jira-validate-ticket/SKILL.md +27 -1
- package/plugins/lisa/skills/lisa-jira-write-ticket/SKILL.md +23 -0
- package/plugins/lisa/skills/lisa-linear-access/SKILL.md +102 -103
- package/plugins/lisa/skills/lisa-linear-access/scripts/linear-graphql.sh +428 -0
- package/plugins/lisa/skills/lisa-linear-build-intake/SKILL.md +2 -0
- package/plugins/lisa/skills/lisa-linear-claim/SKILL.md +3 -1
- package/plugins/lisa/skills/lisa-linear-read-issue/SKILL.md +13 -0
- package/plugins/lisa/skills/lisa-linear-validate-issue/SKILL.md +26 -0
- package/plugins/lisa/skills/lisa-linear-write-issue/SKILL.md +27 -0
- package/plugins/lisa/skills/lisa-notion-access/SKILL.md +37 -0
- package/plugins/lisa/skills/lisa-notion-access/scripts/readiness-probe.mjs +83 -0
- package/plugins/lisa/skills/lisa-secrets-access/SKILL.md +8 -26
- package/plugins/lisa/skills/lisa-secrets-access/scripts/aws-bootstrap.mjs +89 -117
- package/plugins/lisa/skills/lisa-secrets-access/scripts/config-files.mjs +42 -0
- package/plugins/lisa/skills/lisa-secrets-access/scripts/config-layers.mjs +139 -0
- package/plugins/lisa/skills/lisa-secrets-access/scripts/materialize-secrets.mjs +138 -125
- package/plugins/lisa/skills/lisa-secrets-access/scripts/preflight-secrets.mjs +98 -10
- package/plugins/lisa/skills/lisa-secrets-access/scripts/providers.mjs +24 -1
- package/plugins/lisa/skills/lisa-secrets-access/scripts/routing-floor.mjs +21 -0
- package/plugins/lisa/skills/lisa-secrets-access/scripts/surfaces.mjs +111 -36
- package/plugins/lisa/skills/lisa-secrets-access/scripts/task-access.mjs +205 -0
- package/plugins/lisa/skills/lisa-secrets-access/scripts/task-action.mjs +218 -0
- package/plugins/lisa/skills/lisa-secrets-access/scripts/task-atlassian-native.mjs +181 -0
- package/plugins/lisa/skills/lisa-secrets-access/scripts/task-context-data.mjs +75 -0
- package/plugins/lisa/skills/lisa-secrets-access/scripts/task-context-write.mjs +158 -0
- package/plugins/lisa/skills/lisa-secrets-access/scripts/task-github.mjs +92 -0
- package/plugins/lisa/skills/lisa-secrets-access/scripts/task-intake-read.mjs +171 -0
- package/plugins/lisa/skills/lisa-secrets-access/scripts/task-intake.mjs +155 -0
- package/plugins/lisa/skills/lisa-secrets-access/scripts/task-native-context.mjs +71 -0
- package/plugins/lisa/skills/lisa-secrets-access/scripts/task-native-contract.mjs +156 -0
- package/plugins/lisa/skills/lisa-secrets-access/scripts/task-native-flow.mjs +253 -0
- package/plugins/lisa/skills/lisa-secrets-access/scripts/task-native-lifecycle.mjs +106 -0
- package/plugins/lisa/skills/lisa-secrets-access/scripts/task-native-state.mjs +171 -0
- package/plugins/lisa/skills/lisa-secrets-access/scripts/task-readiness.mjs +347 -0
- package/plugins/lisa/skills/lisa-secrets-access/scripts/task-requirements.mjs +279 -0
- package/plugins/lisa/skills/lisa-secrets-access/scripts/task-tracker-intake.mjs +463 -0
- package/plugins/lisa/skills/lisa-secrets-access/scripts/validate-config.mjs +2 -21
- package/plugins/lisa/skills/lisa-setup-linear/SKILL.md +2 -0
- package/plugins/lisa/skills/lisa-setup-remote-aws/SKILL.md +8 -0
- package/plugins/lisa/skills/lisa-task-decomposition/SKILL.md +1 -0
- package/plugins/lisa/skills/lisa-track/SKILL.md +13 -1
- package/plugins/lisa/skills/lisa-tracker-claim/SKILL.md +2 -0
- package/plugins/lisa/skills/lisa-verify/SKILL.md +4 -1
- package/plugins/lisa-agy/hooks/secrets-preflight.agy.sh +19 -0
- package/plugins/lisa-agy/hooks/secrets-preflight.sh +114 -0
- package/plugins/lisa-agy/hooks.json +13 -0
- package/plugins/lisa-agy/plugin.json +1 -1
- package/plugins/lisa-agy/scripts/install-remote-agent-aws.mjs +3 -2
- package/plugins/lisa-agy/scripts/remote-agent-aws-setup.sh +123 -10
- package/plugins/lisa-agy/skills/lisa-atlassian-access/SKILL.md +13 -0
- package/plugins/lisa-agy/skills/lisa-configure/SKILL.md +19 -7
- package/plugins/lisa-agy/skills/lisa-doctor/SKILL.md +10 -0
- package/plugins/lisa-agy/skills/lisa-drive-pr-to-merge/SKILL.md +9 -0
- package/plugins/lisa-agy/skills/lisa-git-submit-pr/SKILL.md +1 -0
- package/plugins/lisa-agy/skills/lisa-github-build-intake/SKILL.md +2 -0
- package/plugins/lisa-agy/skills/lisa-github-claim/SKILL.md +2 -0
- package/plugins/lisa-agy/skills/lisa-github-read-issue/SKILL.md +29 -0
- package/plugins/lisa-agy/skills/lisa-github-read-issue/read-contract.mjs +70 -0
- package/plugins/lisa-agy/skills/lisa-github-validate-issue/SKILL.md +27 -1
- package/plugins/lisa-agy/skills/lisa-github-write-issue/SKILL.md +23 -0
- package/plugins/lisa-agy/skills/lisa-implement/SKILL.md +15 -2
- package/plugins/lisa-agy/skills/lisa-jira-build-intake/SKILL.md +2 -0
- package/plugins/lisa-agy/skills/lisa-jira-claim/SKILL.md +2 -0
- package/plugins/lisa-agy/skills/lisa-jira-read-ticket/SKILL.md +9 -0
- package/plugins/lisa-agy/skills/lisa-jira-validate-ticket/SKILL.md +27 -1
- package/plugins/lisa-agy/skills/lisa-jira-write-ticket/SKILL.md +23 -0
- package/plugins/lisa-agy/skills/lisa-linear-access/SKILL.md +102 -103
- package/plugins/lisa-agy/skills/lisa-linear-access/scripts/linear-graphql.sh +428 -0
- package/plugins/lisa-agy/skills/lisa-linear-build-intake/SKILL.md +2 -0
- package/plugins/lisa-agy/skills/lisa-linear-claim/SKILL.md +3 -1
- package/plugins/lisa-agy/skills/lisa-linear-read-issue/SKILL.md +13 -0
- package/plugins/lisa-agy/skills/lisa-linear-validate-issue/SKILL.md +26 -0
- package/plugins/lisa-agy/skills/lisa-linear-write-issue/SKILL.md +27 -0
- package/plugins/lisa-agy/skills/lisa-notion-access/SKILL.md +37 -0
- package/plugins/lisa-agy/skills/lisa-notion-access/scripts/readiness-probe.mjs +83 -0
- package/plugins/lisa-agy/skills/lisa-secrets-access/SKILL.md +8 -26
- package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/aws-bootstrap.mjs +89 -117
- package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/config-files.mjs +42 -0
- package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/config-layers.mjs +139 -0
- package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/materialize-secrets.mjs +138 -125
- package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/preflight-secrets.mjs +98 -10
- package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/providers.mjs +24 -1
- package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/routing-floor.mjs +21 -0
- package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/surfaces.mjs +111 -36
- package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/task-access.mjs +205 -0
- package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/task-action.mjs +218 -0
- package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/task-atlassian-native.mjs +181 -0
- package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/task-context-data.mjs +75 -0
- package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/task-context-write.mjs +158 -0
- package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/task-github.mjs +92 -0
- package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/task-intake-read.mjs +171 -0
- package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/task-intake.mjs +155 -0
- package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/task-native-context.mjs +71 -0
- package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/task-native-contract.mjs +156 -0
- package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/task-native-flow.mjs +253 -0
- package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/task-native-lifecycle.mjs +106 -0
- package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/task-native-state.mjs +171 -0
- package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/task-readiness.mjs +347 -0
- package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/task-requirements.mjs +279 -0
- package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/task-tracker-intake.mjs +463 -0
- package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/validate-config.mjs +2 -21
- package/plugins/lisa-agy/skills/lisa-setup-linear/SKILL.md +2 -0
- package/plugins/lisa-agy/skills/lisa-setup-remote-aws/SKILL.md +8 -0
- package/plugins/lisa-agy/skills/lisa-task-decomposition/SKILL.md +1 -0
- package/plugins/lisa-agy/skills/lisa-track/SKILL.md +13 -1
- package/plugins/lisa-agy/skills/lisa-tracker-claim/SKILL.md +2 -0
- package/plugins/lisa-agy/skills/lisa-verify/SKILL.md +4 -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-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 +49 -2
- package/plugins/lisa-copilot/hooks/inject-resolved-config.mjs +235 -3
- package/plugins/lisa-copilot/hooks/secrets-preflight.sh +42 -0
- package/plugins/lisa-copilot/hooks/task-readiness-guard.mjs +96 -0
- package/plugins/lisa-copilot/hooks/task-readiness-guard.sh +54 -0
- package/plugins/lisa-copilot/rules/eager/coding-philosophy.md +7 -6
- package/plugins/lisa-copilot/rules/reference/coding-philosophy.md +48 -0
- package/plugins/lisa-copilot/rules/reference/config-resolution.md +4 -1
- package/plugins/lisa-copilot/rules/reference/intent-routing.md +2 -2
- package/plugins/lisa-copilot/rules/reference/tool-access-gate.md +160 -0
- package/plugins/lisa-copilot/rules/reference/tracked-work.md +2 -0
- package/plugins/lisa-copilot/rules/reference/work-item-definition-of-ready.md +31 -0
- package/plugins/lisa-copilot/scripts/install-remote-agent-aws.mjs +3 -2
- package/plugins/lisa-copilot/scripts/remote-agent-aws-setup.sh +123 -10
- package/plugins/lisa-copilot/skills/lisa-atlassian-access/SKILL.md +13 -0
- package/plugins/lisa-copilot/skills/lisa-configure/SKILL.md +19 -7
- package/plugins/lisa-copilot/skills/lisa-doctor/SKILL.md +10 -0
- package/plugins/lisa-copilot/skills/lisa-drive-pr-to-merge/SKILL.md +9 -0
- package/plugins/lisa-copilot/skills/lisa-git-submit-pr/SKILL.md +1 -0
- package/plugins/lisa-copilot/skills/lisa-github-build-intake/SKILL.md +2 -0
- package/plugins/lisa-copilot/skills/lisa-github-claim/SKILL.md +2 -0
- package/plugins/lisa-copilot/skills/lisa-github-read-issue/SKILL.md +29 -0
- package/plugins/lisa-copilot/skills/lisa-github-read-issue/read-contract.mjs +70 -0
- package/plugins/lisa-copilot/skills/lisa-github-validate-issue/SKILL.md +27 -1
- package/plugins/lisa-copilot/skills/lisa-github-write-issue/SKILL.md +23 -0
- package/plugins/lisa-copilot/skills/lisa-implement/SKILL.md +15 -2
- package/plugins/lisa-copilot/skills/lisa-jira-build-intake/SKILL.md +2 -0
- package/plugins/lisa-copilot/skills/lisa-jira-claim/SKILL.md +2 -0
- package/plugins/lisa-copilot/skills/lisa-jira-read-ticket/SKILL.md +9 -0
- package/plugins/lisa-copilot/skills/lisa-jira-validate-ticket/SKILL.md +27 -1
- package/plugins/lisa-copilot/skills/lisa-jira-write-ticket/SKILL.md +23 -0
- package/plugins/lisa-copilot/skills/lisa-linear-access/SKILL.md +102 -103
- package/plugins/lisa-copilot/skills/lisa-linear-access/scripts/linear-graphql.sh +428 -0
- package/plugins/lisa-copilot/skills/lisa-linear-build-intake/SKILL.md +2 -0
- package/plugins/lisa-copilot/skills/lisa-linear-claim/SKILL.md +3 -1
- package/plugins/lisa-copilot/skills/lisa-linear-read-issue/SKILL.md +13 -0
- package/plugins/lisa-copilot/skills/lisa-linear-validate-issue/SKILL.md +26 -0
- package/plugins/lisa-copilot/skills/lisa-linear-write-issue/SKILL.md +27 -0
- package/plugins/lisa-copilot/skills/lisa-notion-access/SKILL.md +37 -0
- package/plugins/lisa-copilot/skills/lisa-notion-access/scripts/readiness-probe.mjs +83 -0
- package/plugins/lisa-copilot/skills/lisa-secrets-access/SKILL.md +8 -26
- package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/aws-bootstrap.mjs +89 -117
- package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/config-files.mjs +42 -0
- package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/config-layers.mjs +139 -0
- package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/materialize-secrets.mjs +138 -125
- package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/preflight-secrets.mjs +98 -10
- package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/providers.mjs +24 -1
- package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/routing-floor.mjs +21 -0
- package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/surfaces.mjs +111 -36
- package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/task-access.mjs +205 -0
- package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/task-action.mjs +218 -0
- package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/task-atlassian-native.mjs +181 -0
- package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/task-context-data.mjs +75 -0
- package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/task-context-write.mjs +158 -0
- package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/task-github.mjs +92 -0
- package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/task-intake-read.mjs +171 -0
- package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/task-intake.mjs +155 -0
- package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/task-native-context.mjs +71 -0
- package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/task-native-contract.mjs +156 -0
- package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/task-native-flow.mjs +253 -0
- package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/task-native-lifecycle.mjs +106 -0
- package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/task-native-state.mjs +171 -0
- package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/task-readiness.mjs +347 -0
- package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/task-requirements.mjs +279 -0
- package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/task-tracker-intake.mjs +463 -0
- package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/validate-config.mjs +2 -21
- package/plugins/lisa-copilot/skills/lisa-setup-linear/SKILL.md +2 -0
- package/plugins/lisa-copilot/skills/lisa-setup-remote-aws/SKILL.md +8 -0
- package/plugins/lisa-copilot/skills/lisa-task-decomposition/SKILL.md +1 -0
- package/plugins/lisa-copilot/skills/lisa-track/SKILL.md +13 -1
- package/plugins/lisa-copilot/skills/lisa-tracker-claim/SKILL.md +2 -0
- package/plugins/lisa-copilot/skills/lisa-verify/SKILL.md +4 -1
- package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cursor/hooks/hooks.json +18 -1
- package/plugins/lisa-cursor/hooks/inject-resolved-config.mjs +235 -3
- package/plugins/lisa-cursor/hooks/secrets-preflight.sh +42 -0
- package/plugins/lisa-cursor/hooks/task-readiness-guard.mjs +96 -0
- package/plugins/lisa-cursor/hooks/task-readiness-guard.sh +54 -0
- package/plugins/lisa-cursor/rules/coding-philosophy-reference.mdc +48 -0
- package/plugins/lisa-cursor/rules/coding-philosophy.mdc +7 -6
- package/plugins/lisa-cursor/rules/config-resolution-reference.mdc +4 -1
- package/plugins/lisa-cursor/rules/intent-routing-reference.mdc +2 -2
- package/plugins/lisa-cursor/rules/tool-access-gate-reference.mdc +160 -0
- package/plugins/lisa-cursor/rules/tracked-work-reference.mdc +2 -0
- package/plugins/lisa-cursor/rules/work-item-definition-of-ready-reference.mdc +31 -0
- package/plugins/lisa-cursor/scripts/install-remote-agent-aws.mjs +3 -2
- package/plugins/lisa-cursor/scripts/remote-agent-aws-setup.sh +123 -10
- package/plugins/lisa-cursor/skills/lisa-atlassian-access/SKILL.md +13 -0
- package/plugins/lisa-cursor/skills/lisa-configure/SKILL.md +19 -7
- package/plugins/lisa-cursor/skills/lisa-doctor/SKILL.md +10 -0
- package/plugins/lisa-cursor/skills/lisa-drive-pr-to-merge/SKILL.md +9 -0
- package/plugins/lisa-cursor/skills/lisa-git-submit-pr/SKILL.md +1 -0
- package/plugins/lisa-cursor/skills/lisa-github-build-intake/SKILL.md +2 -0
- package/plugins/lisa-cursor/skills/lisa-github-claim/SKILL.md +2 -0
- package/plugins/lisa-cursor/skills/lisa-github-read-issue/SKILL.md +29 -0
- package/plugins/lisa-cursor/skills/lisa-github-read-issue/read-contract.mjs +70 -0
- package/plugins/lisa-cursor/skills/lisa-github-validate-issue/SKILL.md +27 -1
- package/plugins/lisa-cursor/skills/lisa-github-write-issue/SKILL.md +23 -0
- package/plugins/lisa-cursor/skills/lisa-implement/SKILL.md +15 -2
- package/plugins/lisa-cursor/skills/lisa-jira-build-intake/SKILL.md +2 -0
- package/plugins/lisa-cursor/skills/lisa-jira-claim/SKILL.md +2 -0
- package/plugins/lisa-cursor/skills/lisa-jira-read-ticket/SKILL.md +9 -0
- package/plugins/lisa-cursor/skills/lisa-jira-validate-ticket/SKILL.md +27 -1
- package/plugins/lisa-cursor/skills/lisa-jira-write-ticket/SKILL.md +23 -0
- package/plugins/lisa-cursor/skills/lisa-linear-access/SKILL.md +102 -103
- package/plugins/lisa-cursor/skills/lisa-linear-access/scripts/linear-graphql.sh +428 -0
- package/plugins/lisa-cursor/skills/lisa-linear-build-intake/SKILL.md +2 -0
- package/plugins/lisa-cursor/skills/lisa-linear-claim/SKILL.md +3 -1
- package/plugins/lisa-cursor/skills/lisa-linear-read-issue/SKILL.md +13 -0
- package/plugins/lisa-cursor/skills/lisa-linear-validate-issue/SKILL.md +26 -0
- package/plugins/lisa-cursor/skills/lisa-linear-write-issue/SKILL.md +27 -0
- package/plugins/lisa-cursor/skills/lisa-notion-access/SKILL.md +37 -0
- package/plugins/lisa-cursor/skills/lisa-notion-access/scripts/readiness-probe.mjs +83 -0
- package/plugins/lisa-cursor/skills/lisa-secrets-access/SKILL.md +8 -26
- package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/aws-bootstrap.mjs +89 -117
- package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/config-files.mjs +42 -0
- package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/config-layers.mjs +139 -0
- package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/materialize-secrets.mjs +138 -125
- package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/preflight-secrets.mjs +98 -10
- package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/providers.mjs +24 -1
- package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/routing-floor.mjs +21 -0
- package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/surfaces.mjs +111 -36
- package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/task-access.mjs +205 -0
- package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/task-action.mjs +218 -0
- package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/task-atlassian-native.mjs +181 -0
- package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/task-context-data.mjs +75 -0
- package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/task-context-write.mjs +158 -0
- package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/task-github.mjs +92 -0
- package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/task-intake-read.mjs +171 -0
- package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/task-intake.mjs +155 -0
- package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/task-native-context.mjs +71 -0
- package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/task-native-contract.mjs +156 -0
- package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/task-native-flow.mjs +253 -0
- package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/task-native-lifecycle.mjs +106 -0
- package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/task-native-state.mjs +171 -0
- package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/task-readiness.mjs +347 -0
- package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/task-requirements.mjs +279 -0
- package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/task-tracker-intake.mjs +463 -0
- package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/validate-config.mjs +2 -21
- package/plugins/lisa-cursor/skills/lisa-setup-linear/SKILL.md +2 -0
- package/plugins/lisa-cursor/skills/lisa-setup-remote-aws/SKILL.md +8 -0
- package/plugins/lisa-cursor/skills/lisa-task-decomposition/SKILL.md +1 -0
- package/plugins/lisa-cursor/skills/lisa-track/SKILL.md +13 -1
- package/plugins/lisa-cursor/skills/lisa-tracker-claim/SKILL.md +2 -0
- package/plugins/lisa-cursor/skills/lisa-verify/SKILL.md +4 -1
- 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/inject-resolved-config.mjs +235 -3
- package/plugins/lisa-devin/hooks/secrets-preflight.sh +42 -0
- package/plugins/lisa-devin/hooks/task-readiness-guard.mjs +96 -0
- package/plugins/lisa-devin/hooks/task-readiness-guard.sh +54 -0
- package/plugins/lisa-devin/hooks.json +43 -1
- package/plugins/lisa-devin/rules/eager/coding-philosophy.md +7 -6
- package/plugins/lisa-devin/rules/reference/coding-philosophy.md +48 -0
- package/plugins/lisa-devin/rules/reference/config-resolution.md +4 -1
- package/plugins/lisa-devin/rules/reference/intent-routing.md +2 -2
- package/plugins/lisa-devin/rules/reference/tool-access-gate.md +160 -0
- package/plugins/lisa-devin/rules/reference/tracked-work.md +2 -0
- package/plugins/lisa-devin/rules/reference/work-item-definition-of-ready.md +31 -0
- package/plugins/lisa-devin/scripts/install-remote-agent-aws.mjs +3 -2
- package/plugins/lisa-devin/scripts/remote-agent-aws-setup.sh +123 -10
- package/plugins/lisa-devin/skills/lisa-atlassian-access/SKILL.md +13 -0
- package/plugins/lisa-devin/skills/lisa-configure/SKILL.md +19 -7
- package/plugins/lisa-devin/skills/lisa-doctor/SKILL.md +10 -0
- package/plugins/lisa-devin/skills/lisa-drive-pr-to-merge/SKILL.md +9 -0
- package/plugins/lisa-devin/skills/lisa-git-submit-pr/SKILL.md +1 -0
- package/plugins/lisa-devin/skills/lisa-github-build-intake/SKILL.md +2 -0
- package/plugins/lisa-devin/skills/lisa-github-claim/SKILL.md +2 -0
- package/plugins/lisa-devin/skills/lisa-github-read-issue/SKILL.md +29 -0
- package/plugins/lisa-devin/skills/lisa-github-read-issue/read-contract.mjs +70 -0
- package/plugins/lisa-devin/skills/lisa-github-validate-issue/SKILL.md +27 -1
- package/plugins/lisa-devin/skills/lisa-github-write-issue/SKILL.md +23 -0
- package/plugins/lisa-devin/skills/lisa-implement/SKILL.md +15 -2
- package/plugins/lisa-devin/skills/lisa-jira-build-intake/SKILL.md +2 -0
- package/plugins/lisa-devin/skills/lisa-jira-claim/SKILL.md +2 -0
- package/plugins/lisa-devin/skills/lisa-jira-read-ticket/SKILL.md +9 -0
- package/plugins/lisa-devin/skills/lisa-jira-validate-ticket/SKILL.md +27 -1
- package/plugins/lisa-devin/skills/lisa-jira-write-ticket/SKILL.md +23 -0
- package/plugins/lisa-devin/skills/lisa-linear-access/SKILL.md +102 -103
- package/plugins/lisa-devin/skills/lisa-linear-access/scripts/linear-graphql.sh +428 -0
- package/plugins/lisa-devin/skills/lisa-linear-build-intake/SKILL.md +2 -0
- package/plugins/lisa-devin/skills/lisa-linear-claim/SKILL.md +3 -1
- package/plugins/lisa-devin/skills/lisa-linear-read-issue/SKILL.md +13 -0
- package/plugins/lisa-devin/skills/lisa-linear-validate-issue/SKILL.md +26 -0
- package/plugins/lisa-devin/skills/lisa-linear-write-issue/SKILL.md +27 -0
- package/plugins/lisa-devin/skills/lisa-notion-access/SKILL.md +37 -0
- package/plugins/lisa-devin/skills/lisa-notion-access/scripts/readiness-probe.mjs +83 -0
- package/plugins/lisa-devin/skills/lisa-secrets-access/SKILL.md +8 -26
- package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/aws-bootstrap.mjs +89 -117
- package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/config-files.mjs +42 -0
- package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/config-layers.mjs +139 -0
- package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/materialize-secrets.mjs +138 -125
- package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/preflight-secrets.mjs +98 -10
- package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/providers.mjs +24 -1
- package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/routing-floor.mjs +21 -0
- package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/surfaces.mjs +111 -36
- package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/task-access.mjs +205 -0
- package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/task-action.mjs +218 -0
- package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/task-atlassian-native.mjs +181 -0
- package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/task-context-data.mjs +75 -0
- package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/task-context-write.mjs +158 -0
- package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/task-github.mjs +92 -0
- package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/task-intake-read.mjs +171 -0
- package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/task-intake.mjs +155 -0
- package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/task-native-context.mjs +71 -0
- package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/task-native-contract.mjs +156 -0
- package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/task-native-flow.mjs +253 -0
- package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/task-native-lifecycle.mjs +106 -0
- package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/task-native-state.mjs +171 -0
- package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/task-readiness.mjs +347 -0
- package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/task-requirements.mjs +279 -0
- package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/task-tracker-intake.mjs +463 -0
- package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/validate-config.mjs +2 -21
- package/plugins/lisa-devin/skills/lisa-setup-linear/SKILL.md +2 -0
- package/plugins/lisa-devin/skills/lisa-setup-remote-aws/SKILL.md +8 -0
- package/plugins/lisa-devin/skills/lisa-task-decomposition/SKILL.md +1 -0
- package/plugins/lisa-devin/skills/lisa-track/SKILL.md +13 -1
- package/plugins/lisa-devin/skills/lisa-tracker-claim/SKILL.md +2 -0
- package/plugins/lisa-devin/skills/lisa-verify/SKILL.md +4 -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-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-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/materialized-artifacts.json +2 -0
- package/plugins/src/base/.claude-plugin/plugin.json +25 -1
- package/plugins/src/base/hooks/inject-resolved-config.mjs +235 -3
- package/plugins/src/base/hooks/secrets-preflight.agy.sh +19 -0
- package/plugins/src/base/hooks/secrets-preflight.sh +42 -0
- package/plugins/src/base/hooks/task-readiness-guard.mjs +96 -0
- package/plugins/src/base/hooks/task-readiness-guard.sh +51 -0
- package/plugins/src/base/rules/eager/coding-philosophy.md +7 -6
- package/plugins/src/base/rules/reference/coding-philosophy.md +48 -0
- package/plugins/src/base/rules/reference/config-resolution.md +4 -1
- package/plugins/src/base/rules/reference/intent-routing.md +2 -2
- package/plugins/src/base/rules/reference/tool-access-gate.md +160 -0
- package/plugins/src/base/rules/reference/tracked-work.md +2 -0
- package/plugins/src/base/rules/reference/work-item-definition-of-ready.md +31 -0
- package/plugins/src/base/scripts/install-remote-agent-aws.mjs +3 -2
- package/plugins/src/base/scripts/remote-agent-aws-setup.sh +123 -10
- package/plugins/src/base/skills/lisa-atlassian-access/SKILL.md +13 -0
- package/plugins/src/base/skills/lisa-configure/SKILL.md +19 -7
- package/plugins/src/base/skills/lisa-doctor/SKILL.md +10 -0
- package/plugins/src/base/skills/lisa-drive-pr-to-merge/SKILL.md +9 -0
- package/plugins/src/base/skills/lisa-git-submit-pr/SKILL.md +1 -0
- package/plugins/src/base/skills/lisa-github-build-intake/SKILL.md +2 -0
- package/plugins/src/base/skills/lisa-github-claim/SKILL.md +2 -0
- package/plugins/src/base/skills/lisa-github-read-issue/SKILL.md +29 -0
- package/plugins/src/base/skills/lisa-github-read-issue/read-contract.mjs +70 -0
- package/plugins/src/base/skills/lisa-github-validate-issue/SKILL.md +27 -1
- package/plugins/src/base/skills/lisa-github-write-issue/SKILL.md +23 -0
- package/plugins/src/base/skills/lisa-implement/SKILL.md +15 -2
- package/plugins/src/base/skills/lisa-jira-build-intake/SKILL.md +2 -0
- package/plugins/src/base/skills/lisa-jira-claim/SKILL.md +2 -0
- package/plugins/src/base/skills/lisa-jira-read-ticket/SKILL.md +9 -0
- package/plugins/src/base/skills/lisa-jira-validate-ticket/SKILL.md +27 -1
- package/plugins/src/base/skills/lisa-jira-write-ticket/SKILL.md +23 -0
- package/plugins/src/base/skills/lisa-linear-access/SKILL.md +102 -103
- package/plugins/src/base/skills/lisa-linear-access/scripts/linear-graphql.sh +428 -0
- package/plugins/src/base/skills/lisa-linear-build-intake/SKILL.md +2 -0
- package/plugins/src/base/skills/lisa-linear-claim/SKILL.md +3 -1
- package/plugins/src/base/skills/lisa-linear-read-issue/SKILL.md +13 -0
- package/plugins/src/base/skills/lisa-linear-validate-issue/SKILL.md +26 -0
- package/plugins/src/base/skills/lisa-linear-write-issue/SKILL.md +27 -0
- package/plugins/src/base/skills/lisa-notion-access/SKILL.md +37 -0
- package/plugins/src/base/skills/lisa-notion-access/scripts/readiness-probe.mjs +83 -0
- package/plugins/src/base/skills/lisa-secrets-access/SKILL.md +8 -26
- package/plugins/src/base/skills/lisa-secrets-access/scripts/aws-bootstrap.mjs +89 -117
- package/plugins/src/base/skills/lisa-secrets-access/scripts/config-files.mjs +42 -0
- package/plugins/src/base/skills/lisa-secrets-access/scripts/config-layers.mjs +139 -0
- package/plugins/src/base/skills/lisa-secrets-access/scripts/materialize-secrets.mjs +138 -125
- package/plugins/src/base/skills/lisa-secrets-access/scripts/preflight-secrets.mjs +98 -10
- package/plugins/src/base/skills/lisa-secrets-access/scripts/providers.mjs +24 -1
- package/plugins/src/base/skills/lisa-secrets-access/scripts/routing-floor.mjs +21 -0
- package/plugins/src/base/skills/lisa-secrets-access/scripts/surfaces.mjs +111 -36
- package/plugins/src/base/skills/lisa-secrets-access/scripts/task-access.mjs +205 -0
- package/plugins/src/base/skills/lisa-secrets-access/scripts/task-action.mjs +218 -0
- package/plugins/src/base/skills/lisa-secrets-access/scripts/task-atlassian-native.mjs +181 -0
- package/plugins/src/base/skills/lisa-secrets-access/scripts/task-context-data.mjs +75 -0
- package/plugins/src/base/skills/lisa-secrets-access/scripts/task-context-write.mjs +158 -0
- package/plugins/src/base/skills/lisa-secrets-access/scripts/task-github.mjs +92 -0
- package/plugins/src/base/skills/lisa-secrets-access/scripts/task-intake-read.mjs +171 -0
- package/plugins/src/base/skills/lisa-secrets-access/scripts/task-intake.mjs +155 -0
- package/plugins/src/base/skills/lisa-secrets-access/scripts/task-native-context.mjs +71 -0
- package/plugins/src/base/skills/lisa-secrets-access/scripts/task-native-contract.mjs +156 -0
- package/plugins/src/base/skills/lisa-secrets-access/scripts/task-native-flow.mjs +253 -0
- package/plugins/src/base/skills/lisa-secrets-access/scripts/task-native-lifecycle.mjs +106 -0
- package/plugins/src/base/skills/lisa-secrets-access/scripts/task-native-state.mjs +171 -0
- package/plugins/src/base/skills/lisa-secrets-access/scripts/task-readiness.mjs +347 -0
- package/plugins/src/base/skills/lisa-secrets-access/scripts/task-requirements.mjs +279 -0
- package/plugins/src/base/skills/lisa-secrets-access/scripts/task-tracker-intake.mjs +463 -0
- package/plugins/src/base/skills/lisa-secrets-access/scripts/validate-config.mjs +2 -21
- package/plugins/src/base/skills/lisa-setup-linear/SKILL.md +2 -0
- package/plugins/src/base/skills/lisa-setup-remote-aws/SKILL.md +8 -0
- package/plugins/src/base/skills/lisa-task-decomposition/SKILL.md +1 -0
- package/plugins/src/base/skills/lisa-track/SKILL.md +13 -1
- package/plugins/src/base/skills/lisa-tracker-claim/SKILL.md +2 -0
- package/plugins/src/base/skills/lisa-verify/SKILL.md +4 -1
- package/scripts/build-plugins.sh +1 -1
- package/scripts/copy-opencode-plugin-templates.mjs +2 -0
- package/scripts/generate-agy-plugin-artifacts.mjs +8 -0
- package/scripts/lib/per-agent-hook-filter.mjs +1 -1
- package/scripts/lisa-enforcement-fallback.sh +3 -3
- package/scripts/lisa-enforcement-freshness.mjs +1 -0
- package/scripts/lisa-release-switch.mjs +9 -0
- package/scripts/two-channel-couplings.json +2 -2
- package/typescript/copy-overwrite/.prettierignore +2 -0
- package/typescript/create-only/.lisa/controls/proofs/lisa-typescript-code-style-slow.clean.patch +25 -0
- package/typescript/create-only/.lisa/controls/proofs/lisa-typescript-code-style-slow.violation.patch +28 -0
- package/typescript/create-only/.lisa/controls/proofs/lisa-typescript-code-style.clean.patch +13 -0
- package/typescript/create-only/.lisa/controls/proofs/lisa-typescript-code-style.violation.patch +13 -0
- package/typescript/create-only/.lisa/controls/proofs/lisa-typescript-coverage-adequacy.clean.patch +6 -0
- package/typescript/create-only/.lisa/controls/proofs/lisa-typescript-coverage-adequacy.violation.patch +7 -0
- package/typescript/create-only/.lisa/controls/proofs/lisa-typescript-dead-code.clean.patch +7 -0
- package/typescript/create-only/.lisa/controls/proofs/lisa-typescript-dead-code.violation.patch +7 -0
- package/typescript/create-only/.lisa/controls/proofs/lisa-typescript-dependency-vulnerability.clean.patch +6 -0
- package/typescript/create-only/.lisa/controls/proofs/lisa-typescript-dependency-vulnerability.violation.patch +6 -0
- package/typescript/create-only/.lisa/controls/proofs/lisa-typescript-format-conformance.clean.patch +8 -0
- package/typescript/create-only/.lisa/controls/proofs/lisa-typescript-format-conformance.violation.patch +7 -0
- package/typescript/create-only/.lisa/controls/proofs/lisa-typescript-structural-rules.clean.patch +14 -0
- package/typescript/create-only/.lisa/controls/proofs/lisa-typescript-structural-rules.violation.patch +14 -0
- package/typescript/create-only/.lisa/controls/proofs/lisa-typescript-test-correctness.clean.patch +10 -0
- package/typescript/create-only/.lisa/controls/proofs/lisa-typescript-test-correctness.violation.patch +10 -0
- package/typescript/create-only/.lisa/controls/proofs/lisa-typescript-test-integration.clean.patch +10 -0
- package/typescript/create-only/.lisa/controls/proofs/lisa-typescript-test-integration.violation.patch +10 -0
- package/typescript/create-only/.lisa/controls/proofs/lisa-typescript-traceability.clean.patch +6 -0
- package/typescript/create-only/.lisa/controls/proofs/lisa-typescript-traceability.violation.patch +6 -0
- package/typescript/create-only/.lisa/controls/proofs/lisa-typescript-type-correctness.clean.patch +10 -0
- package/typescript/create-only/.lisa/controls/proofs/lisa-typescript-type-correctness.violation.patch +10 -0
- package/typescript/package-lisa/package.lisa.json +2 -3
|
@@ -381,6 +381,8 @@ This gate never blocks a legitimate flat Task/Bug: those have no open children a
|
|
|
381
381
|
|
|
382
382
|
#### 3b. Claim
|
|
383
383
|
|
|
384
|
+
**Required-access preclaim gate.** Before this claim mutation, follow `tool-access-gate` → Task readiness. Enumerate the live body, all comments, proof and delivery requirements into the leading requirements-only header in the ignored context; run the existing secrets preflight `--task --ref <canonical-ref>`. `ESTABLISHED` proves only its exercised scope. `DENIED` stops affected work. `NATIVE_OWNER_REQUIRED` (CLI exit3, not PASS) hands the remaining route to its documented native access owner: that owner must perform the actual immediate identity/resource probe before claim or the affected continuation, retaining write/readback duties. Do not repeat an unobservable shell probe forever or accept a stored passed field. Report the exact shell/native enforcement gap. Only the bounded local intake metadata write may precede this gate. Held/leaf/scope/idempotency and failed tracker-read/write stops remain independent.
|
|
385
|
+
|
|
384
386
|
Before the claim mutation, apply `claim-time-guards` — **Value before claim**, or **Worth doing** in `lisa-track` on runtimes without the rule tree (Antigravity). A ready label establishes neither value nor permission to expand scope. Respect the preceding human-hold gate; a declined incidental item consumes this cycle's one processed disposition.
|
|
385
387
|
|
|
386
388
|
|
|
@@ -8,7 +8,9 @@ Idempotently claims one live Linear leaf issue for direct Lisa work. Reuses line
|
|
|
8
8
|
|
|
9
9
|
# Claim Linear Issue: $ARGUMENTS
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
**Required-access preclaim gate.** Before this claim mutation, follow `tool-access-gate` → Task readiness. Enumerate the live body, all comments, proof and delivery requirements into the leading requirements-only header in the ignored context; run the existing secrets preflight `--task --ref <canonical-ref>`. `ESTABLISHED` proves only its exercised scope. `DENIED` stops affected work. `NATIVE_OWNER_REQUIRED` (CLI exit3, not PASS) hands the remaining route to its documented native access owner: that owner must perform the actual immediate identity/resource probe before claim or the affected continuation, retaining write/readback duties. Do not repeat an unobservable shell probe forever or accept a stored passed field. Report the exact shell/native enforcement gap. Only the bounded local intake metadata write may precede this gate. Held/leaf/scope/idempotency and failed tracker-read/write stops remain independent.
|
|
12
|
+
|
|
13
|
+
Claim exactly one canonical Linear identifier such as `ENG-123`. All Linear access goes through `lisa-linear-access`. On the token tier, `lisa-linear-access` runs its bundled `scripts/linear-graphql.sh` by absolute path. Never capture `LINEAR_API_KEY` and curl Linear in one inline command: Claude Code stops that shape at an approval prompt even with permissions skipped, and a background worker stalls on it until a human attaches. This is the reusable direct-session counterpart of `lisa-linear-build-intake` Phase 3b.
|
|
12
14
|
|
|
13
15
|
1. Resolve merged `linear.workspace`, `linear.teamKey`, and the Linear build-lifecycle roles from local-over-global config. Require the identifier's team key to equal the configured team. Resolve the `ready` and `claimed` roles through `scripts/resolve-lifecycle-role.mjs` (`--vendor linear`). Both are REQUIRED roles with **no built-in default** — an unset one is a setup defect to report, never a name to substitute. Do not hardcode lifecycle decisions.
|
|
14
16
|
2. Invoke `lisa-linear-read-issue <identifier>` immediately before mutation. Reject a completed/canceled issue, active blocker, `repo:<other>` issue, any issue with open sub-Issues, or an Epic per `repo-scope-split` and `leaf-only-lifecycle`.
|
|
@@ -18,6 +18,19 @@ Repository name for scoped comments and logs: `basename $(git rev-parse --show-t
|
|
|
18
18
|
|
|
19
19
|
Reads `linear.workspace`, `linear.teamKey` from `.lisa.config.json` (with `.local` override).
|
|
20
20
|
|
|
21
|
+
Every read below goes through `lisa-linear-access`. On the token tier, `lisa-linear-access` runs its bundled `scripts/linear-graphql.sh` by absolute path. Never capture `LINEAR_API_KEY` and curl Linear in one inline command: Claude Code stops that shape at an approval prompt even with permissions skipped, and a background worker stalls on it until a human attaches.
|
|
22
|
+
|
|
23
|
+
When preparing the first task context for a configured Linear issue, use the scoped intake command from the installed `lisa-secrets-access` skill. Use the literal absolute path to its script and the configured team's issue key.
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
node /absolute/lisa-secrets-access/scripts/preflight-secrets.mjs --tracker-intake-read --ref ENG-123 --read issue
|
|
27
|
+
node /absolute/lisa-secrets-access/scripts/preflight-secrets.mjs --tracker-intake-read --ref ENG-123 --read comments
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
The issue response includes the primary body, team, and related graph fields. The comments command returns the entire paginated comment list or fails. Fetch related issues in the configured team with the same command and their issue keys. If a graph field reports another page, record the context as incomplete until those related records can be read through the access owner.
|
|
31
|
+
|
|
32
|
+
If the token route is unavailable, load `lisa-linear-access` and use its native Linear MCP fallback. List teams with the configured team key as `query`, verify the configured workspace and team, then read the issue by its key. Use the resulting issue identifier or UUID for the comment pages. This read-only path leaves the requirements header and access check to the normal task flow.
|
|
33
|
+
|
|
21
34
|
## Phase 1 — Resolve Context
|
|
22
35
|
|
|
23
36
|
1. If `$ARGUMENTS` matches `<TEAM>-<n>` → Issue mode.
|
|
@@ -126,6 +126,7 @@ Per-type content requirements are defined once in the vendor-neutral `work-item-
|
|
|
126
126
|
| S19 Branch Plan derivation | `technical` | false |
|
|
127
127
|
| S20 Named-control reachability | `acceptance-criteria` | true |
|
|
128
128
|
| S21 Token estimate (ready time) | `technical` | false |
|
|
129
|
+
| S22 Release switch declaration | `technical` | false |
|
|
129
130
|
| F1 Issue type valid in team | `structural` | false |
|
|
130
131
|
| F2 Project parent exists and is in same team | `structural` | false |
|
|
131
132
|
| F3 Linked items exist | `structural` | false |
|
|
@@ -403,6 +404,30 @@ Remediation: re-render the section with `node scripts/lisa-estimate.mjs render -
|
|
|
403
404
|
|
|
404
405
|
`product_relevant: false` — the estimate is produced by agents, not by whoever wrote the item.
|
|
405
406
|
|
|
407
|
+
#### S22 — Release switch declaration
|
|
408
|
+
|
|
409
|
+
Enforces the always-promotable rule (`coding-philosophy`, "Always Promotable"): whatever is on a shared branch can be promoted to the next environment as it stands, so every issue that changes runtime behavior says how it is safe to promote.
|
|
410
|
+
|
|
411
|
+
**When the gate applies.** On a leaf whose `## Target Backend Environment` names an environment (`runtime_behavior_change = true`, derived from the stored declaration exactly as S8 derives it), in a project with live users (`release.liveUsers` absent or `true`). `N/A` when that declaration is a `None —` form (no runtime behavior change, or a container), and whenever the project sets `release.liveUsers: false`; then nothing about release switches blocks.
|
|
412
|
+
|
|
413
|
+
**How to run it.** Write the body to a file and run `node scripts/lisa-release-switch.mjs check --body-file <file>` for a proposed spec, adding `--existing true` when the issue already exists in the tracker. Report its verdict line and reasons verbatim: exit 0 is PASS or N/A, exit 1 is FAIL, exit 2 means the config or the call is broken, which fails the gate with the error.
|
|
414
|
+
|
|
415
|
+
**What it checks.** The body carries a `## Release Switch` section whose entire content is one line, in one of these forms:
|
|
416
|
+
|
|
417
|
+
```text
|
|
418
|
+
Live — complete and proven at merge
|
|
419
|
+
Switched off — <switch-name>; removed by this item
|
|
420
|
+
Switched off — <switch-name>; removed by <work-item ref>
|
|
421
|
+
```
|
|
422
|
+
|
|
423
|
+
A **proposed spec** with no section FAILs: `lisa-linear-write-issue` renders it before the write. A **live legacy issue** with no section is `N/A` with a repair note routed to claim time, the same asymmetry S8 and S19 use, because failing every existing issue would turn a legacy queue red for a section nobody had a way to add. A section that **is** present FAILs, on a proposed spec and on a live issue alike, when it is neither form: no switch name, no work item that removes the switch, a second line, or free text.
|
|
424
|
+
|
|
425
|
+
**Which form.** One question decides: if this were promoted to production right now, would a user see something unfinished or unproven? If no, the work is live. Bug fixes, small tweaks, copy changes, refactors and dependency updates almost always are, and this gate never asks for a switch on work that is complete and proven when it merges. If yes (a feature or a fix that lands across several merges, or new behavior that merges before its verification has passed), the work is switched off, and the declaration names the switch and the work item that removes it. The question decides, not the kind of work.
|
|
426
|
+
|
|
427
|
+
Remediation: render the section with `node scripts/lisa-release-switch.mjs render --mode live --body-file <file>`, or `--mode off --switch <name> --removed-by "this item"` (or a work-item ref), and write the result back. Decide the form from the item; never ask a person for it.
|
|
428
|
+
|
|
429
|
+
`product_relevant: false` — how work is made safe to promote is an engineering decision the agent makes, not a product question.
|
|
430
|
+
|
|
406
431
|
### Feasibility Gates (require Linear lookups; skip in dry-run if requested)
|
|
407
432
|
|
|
408
433
|
#### F1 — Issue type valid in team
|
|
@@ -497,6 +522,7 @@ Output is a single fenced text block. Callers parse it; do not add free-form pro
|
|
|
497
522
|
- [PASS|FAIL|N/A] S19 Branch Plan derivation — <one-line reason>
|
|
498
523
|
- [PASS|FAIL|N/A] S20 Named-control reachability — <one-line reason>
|
|
499
524
|
- [PASS|FAIL|N/A] S21 Token estimate (ready time) — <one-line reason>
|
|
525
|
+
- [PASS|FAIL|N/A] S22 Release switch declaration — <one-line reason>
|
|
500
526
|
|
|
501
527
|
### Feasibility Gates (omit when --spec-only)
|
|
502
528
|
- [PASS|FAIL|N/A] F1 Issue type valid in team — <one-line reason>
|
|
@@ -82,6 +82,7 @@ Required fields. Derive a missing one from config, the caller's spec and the evi
|
|
|
82
82
|
| Acceptance criteria | Story, Task, Bug, Sub-task, Improvement | Gherkin — see Phase 3 |
|
|
83
83
|
| Validation Journey | Runtime-behavior changes | Delegate to `/linear-add-journey` |
|
|
84
84
|
| Target backend environment | Runtime-behavior changes | For every work type, use an exact `deploy.branches` key when an environment is known. Human: bare key or `Confirmed: <env>`. Automation: `Inferred: <env> — evidence: <title\|body\|reproduction\|hostname>`, `Assumption: <env> — remote default branch <branch>` for a unique reverse-map, or `Assumption: remote default branch <branch>` otherwise. Human confirmation replaces an automated annotation with the bare key or `Confirmed: <env>`. |
|
|
85
|
+
| Release switch | Runtime-behavior changes, in a project with live users | `Live — complete and proven at merge`, or `Switched off — <switch-name>; removed by this item` (or a work-item ref). Rendered under `## Release Switch` by `scripts/lisa-release-switch.mjs render`; see Phase 3 and validator gate S22. |
|
|
85
86
|
| Sign-in account / credentials | Items that touch authenticated surfaces | Name the account (or source — 1Password item, env var, seeded fixture) and role; recorded in description. Omit when sign-in is not required. |
|
|
86
87
|
| Single-repo scope | Bug, Task, Sub-task | These types MUST cover one repo only. If the work crosses repos, split it before creating. Epic / Spike / Story may span repos. |
|
|
87
88
|
| Source Requirement | PRD-sourced Issues (`prd_source` provided) | `## Source Requirement` with PRD link + verbatim requirement quote(s) — see Phase 3; enforced at every level, sub-issues included. |
|
|
@@ -168,6 +169,28 @@ Linear descriptions are markdown (NOT Jira wiki markup — no `h2.` headings, us
|
|
|
168
169
|
non-unique mapping, or a branch absent from the remote, STOPS the write —
|
|
169
170
|
never default to `main` or the remote default to keep the write alive.]
|
|
170
171
|
|
|
172
|
+
## Release Switch
|
|
173
|
+
[GENERATED by `node scripts/lisa-release-switch.mjs render`, exactly one line.
|
|
174
|
+
Render it on every leaf that has a Target Backend Environment, in a project
|
|
175
|
+
with live users (`release.liveUsers` absent or `true`); omit it entirely when
|
|
176
|
+
`runtime_behavior_change = false`, for an Epic/container, or when the project
|
|
177
|
+
sets `release.liveUsers: false`. It says how the work is safe to promote
|
|
178
|
+
(`coding-philosophy`, "Always Promotable"; validator gate S22):
|
|
179
|
+
Live — complete and proven at merge
|
|
180
|
+
Switched off — <switch-name>; removed by this item
|
|
181
|
+
Switched off — <switch-name>; removed by <work-item ref>
|
|
182
|
+
Decide it with one question: if this were promoted to production right now,
|
|
183
|
+
would a user see something unfinished or unproven? If no, it is live: bug
|
|
184
|
+
fixes, small tweaks, copy changes, refactors and dependency updates almost
|
|
185
|
+
always are, and work that is complete and proven when it merges never gets a
|
|
186
|
+
switch. If yes (a feature or a fix that lands across several merges, or
|
|
187
|
+
new behavior that merges before its verification has passed), it is switched
|
|
188
|
+
off: name the switch, and name the work item that removes it. Every item of a
|
|
189
|
+
multi-item feature names the same switch and the same removing item. Pick a
|
|
190
|
+
switch name that appears nowhere else in the repository and is not the start
|
|
191
|
+
of another switch's name: the done gate searches tracked source for it as a
|
|
192
|
+
whole token. Never ask a person which form applies.]
|
|
193
|
+
|
|
171
194
|
## Sign-in Required
|
|
172
195
|
[Include this section ONLY if the work touches authenticated surfaces.
|
|
173
196
|
Specify: the account/role to sign in as, where to get the credentials
|
|
@@ -416,6 +439,10 @@ Skip this step only on UPDATE when no material change was made.
|
|
|
416
439
|
|
|
417
440
|
Nothing here stops a consumer from writing to Linear through the Linear GraphQL API directly, a direct API call, or your own script, and nothing should
|
|
418
441
|
try to — a script that owns the credential plumbing is often the only practical transport.
|
|
442
|
+
Let that script be `lisa-linear-access/scripts/linear-graphql.sh`: run it by absolute path, or
|
|
443
|
+
source it on the first line of your own script file. It resolves the key, identity-matches it,
|
|
444
|
+
and never prints it, so the key never appears in an inline command (a shape that stalls a
|
|
445
|
+
background worker on an approval prompt).
|
|
419
446
|
**The transport is not the gate.** A bespoke write path still owes both halves of the quality
|
|
420
447
|
gate this skill runs, and owes them explicitly, because no phase of this flow will ever run
|
|
421
448
|
for it.
|
|
@@ -10,6 +10,43 @@ The one way Lisa skills reach Notion: (1) the internal-integration token over RE
|
|
|
10
10
|
|
|
11
11
|
Single chokepoint for all Notion operations. Routes each op to a substrate, enforces connection match, returns structured result. Caller skills (`notion-*`) MUST go through this — they MUST NOT call the Notion REST API or any `mcp__*notion*` tools directly.
|
|
12
12
|
|
|
13
|
+
For the represented `database-read` task capability, the shared before owner
|
|
14
|
+
uses this skill's fixed `scripts/readiness-probe.mjs`: supported candidate from
|
|
15
|
+
the existing secrets chokepoint, authenticated `/v1/users/me`, then the configured
|
|
16
|
+
`/v1/databases/<id>`, pinned version `2022-06-28`. Credentials enter curl config
|
|
17
|
+
stdin only. Self workspace and returned database identity must match before the
|
|
18
|
+
ordinary action runs. Every affected action performs a fresh read. Wrong identity
|
|
19
|
+
refuses; genuine unavailable primary can proceed to the documented native pair.
|
|
20
|
+
Token presence alone grants nothing, and primary API failure is not a vault outage.
|
|
21
|
+
|
|
22
|
+
When shared task readiness returns `NATIVE_OWNER_REQUIRED`, the native before
|
|
23
|
+
adapter withholds the original ordinary action. Resolve the supported primary
|
|
24
|
+
first; use the connector only when that primary is genuinely unavailable. Load
|
|
25
|
+
this owner, call the fixed `notion-get-self` with `{}`, then `notion-fetch` with
|
|
26
|
+
only the configured database `id`. The registered after observer must match the
|
|
27
|
+
same native call/session/input and approved connection provenance. Self verifies
|
|
28
|
+
the configured workspace; the exact fetch verifies resource reachability.
|
|
29
|
+
|
|
30
|
+
The bounded bridge accepts the documented stable self object and a positive MCP
|
|
31
|
+
embedded-resource fetch (`resource.uri`, typed textual content), checking returned
|
|
32
|
+
resource identity. It does not scrape page text or invent REST database fields.
|
|
33
|
+
An installed standard response without that recognized positive contract is
|
|
34
|
+
`native-response-unrepresented`. ChatGPT's `{id,title,text,url,metadata}` fetch
|
|
35
|
+
variant is distinct from Codex/standard Notion and is not accepted on this route.
|
|
36
|
+
Missing trusted provenance or native fields also remains an explicit adapter gap.
|
|
37
|
+
|
|
38
|
+
After every required scope is proved, the next identical original action consumes
|
|
39
|
+
the ephemeral observation once, before release. Replay, changed scope, wrong or
|
|
40
|
+
missing identity, failed/error/unknown response, or an intervening action refuses.
|
|
41
|
+
There is no durable PASS, header attestation, or permission from a warning string.
|
|
42
|
+
Keep the ambient write/readback duties below. `notionOwnerContinuation` remains a
|
|
43
|
+
trusted in-process primary/connector component boundary; callback tests are not
|
|
44
|
+
native-agent execution or a substitute for the registered before decision.
|
|
45
|
+
|
|
46
|
+
Producer references: [Notion tools](https://developers.notion.com/guides/mcp/mcp-supported-tools),
|
|
47
|
+
[MCP tool results](https://modelcontextprotocol.io/specification/2025-06-18/server/tools),
|
|
48
|
+
[Claude native events](https://code.claude.com/docs/en/hooks).
|
|
49
|
+
|
|
13
50
|
## Invocation contract
|
|
14
51
|
|
|
15
52
|
```text
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/** Fixed existing Notion owner's read-only token path, pinned to its API version. */
|
|
2
|
+
import { execFileSync } from "node:child_process";
|
|
3
|
+
import { notionId } from "../../lisa-secrets-access/scripts/task-native-contract.mjs";
|
|
4
|
+
const denied = code => ({
|
|
5
|
+
outcome: "DENIED",
|
|
6
|
+
established: false,
|
|
7
|
+
code,
|
|
8
|
+
tool: "curl",
|
|
9
|
+
});
|
|
10
|
+
function read(token, path) {
|
|
11
|
+
const input = `url = ${JSON.stringify(`https://api.notion.com/v1/${path}`)}\nheader = ${JSON.stringify(`Authorization: Bearer ${token}`)}\nheader = "Notion-Version: 2022-06-28"\nfail\nsilent\nmax-time = 5\nmax-filesize = 1048576\n`;
|
|
12
|
+
return JSON.parse(
|
|
13
|
+
execFileSync("curl", ["-q", "--config", "-"], {
|
|
14
|
+
input,
|
|
15
|
+
encoding: "utf8",
|
|
16
|
+
stdio: ["pipe", "pipe", "pipe"],
|
|
17
|
+
timeout: 6000,
|
|
18
|
+
maxBuffer: 1048576,
|
|
19
|
+
})
|
|
20
|
+
);
|
|
21
|
+
}
|
|
22
|
+
/** Values enter only the fixed child stdin, never its argv, diagnostics or state. */
|
|
23
|
+
export function notionPrimary(cfg, requirement, candidate) {
|
|
24
|
+
if (!candidate?.available) return null;
|
|
25
|
+
const token = candidate.value,
|
|
26
|
+
anchor = cfg.effective?.notion?.workspaceId;
|
|
27
|
+
if (
|
|
28
|
+
typeof token !== "string" ||
|
|
29
|
+
[...token].some(c => c.charCodeAt(0) < 32) ||
|
|
30
|
+
!anchor ||
|
|
31
|
+
!notionId(requirement.resource)
|
|
32
|
+
)
|
|
33
|
+
return denied("config-invalid");
|
|
34
|
+
let me, database;
|
|
35
|
+
try {
|
|
36
|
+
me = read(token, "users/me");
|
|
37
|
+
} catch (error) {
|
|
38
|
+
return {
|
|
39
|
+
primary_unavailable: true,
|
|
40
|
+
primary_available: false,
|
|
41
|
+
primary_code:
|
|
42
|
+
error.code === "ENOENT" ? "tool-missing" : "capability-unreachable",
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
if (!me || typeof me !== "object") return denied("identity-mismatch");
|
|
46
|
+
const identity = notionId(anchor)
|
|
47
|
+
? me.bot?.workspace_id
|
|
48
|
+
: me.bot?.workspace_name;
|
|
49
|
+
if (
|
|
50
|
+
me.object !== "user" ||
|
|
51
|
+
me.type !== "bot" ||
|
|
52
|
+
typeof me.id !== "string" ||
|
|
53
|
+
!me.id ||
|
|
54
|
+
(notionId(anchor)
|
|
55
|
+
? notionId(identity) !== notionId(anchor)
|
|
56
|
+
: identity !== anchor)
|
|
57
|
+
)
|
|
58
|
+
return denied("identity-mismatch");
|
|
59
|
+
try {
|
|
60
|
+
database = read(token, `databases/${requirement.resource}`);
|
|
61
|
+
} catch (error) {
|
|
62
|
+
return {
|
|
63
|
+
primary_unavailable: true,
|
|
64
|
+
primary_available: false,
|
|
65
|
+
primary_code:
|
|
66
|
+
error.code === "ENOENT" ? "tool-missing" : "capability-unreachable",
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
if (
|
|
70
|
+
!database ||
|
|
71
|
+
database.object !== "database" ||
|
|
72
|
+
notionId(database.id) !== notionId(requirement.resource)
|
|
73
|
+
)
|
|
74
|
+
return denied("identity-mismatch");
|
|
75
|
+
return {
|
|
76
|
+
outcome: "ESTABLISHED",
|
|
77
|
+
established: true,
|
|
78
|
+
code: "ok",
|
|
79
|
+
source: "notion-api",
|
|
80
|
+
credential_source: candidate.source,
|
|
81
|
+
provider_health: candidate.provider_health,
|
|
82
|
+
};
|
|
83
|
+
}
|
|
@@ -105,7 +105,7 @@ Nothing about the surviving profile is malformed — it is a real, working profi
|
|
|
105
105
|
|
|
106
106
|
| Identifier | How it is protected |
|
|
107
107
|
| --- | --- |
|
|
108
|
-
| `~/.aws` profile names |
|
|
108
|
+
| `~/.aws` profile names | Canonical: `<namespace>-agent-<stage>`, assuming from `<namespace>-agent-bootstrap`. Identical to what `lisa-setup-remote-aws` writes, so one tenant has one set of names whichever writer ran. Distinct names make a wrong resolution impossible. |
|
|
109
109
|
| `~/.aws` managed block | Tagged `owner=<namespace>`. Only this owner's block is replaced; another project's is left untouched. |
|
|
110
110
|
| Shell profile block | Tagged the same way, but it **cannot** be namespaced — it exports into every shell and there is no name a consumer selects. So it is claimed only when unowned or already ours; a block held by another project stops the run and names it. `LISA_SECRETS_CLAIM_SHELL_PROFILE=1` takes it over deliberately. |
|
|
111
111
|
|
|
@@ -116,39 +116,21 @@ Nothing about the surviving profile is malformed — it is a real, working profi
|
|
|
116
116
|
|
|
117
117
|
A stage may declare `expectedAccountId`. This writer never contacts AWS, so it cannot compare against a live `sts:GetCallerIdentity` the way `lisa-setup-remote-aws` does — but a declaration contradicting the account in its own role ARN is caught before anything is written.
|
|
118
118
|
|
|
119
|
-
###
|
|
120
|
-
|
|
121
|
-
Two different guarantees, with two different expiry conditions. Conflating them is how a temporary shim becomes permanent by accident.
|
|
122
|
-
|
|
123
|
-
| | Guarantee | Shape | Expires |
|
|
124
|
-
| --- | --- | --- | --- |
|
|
125
|
-
| **Emit** | what this writer produces as canonical output | `<namespace>-<stage>`, assuming from `<namespace>-lisa-bootstrap` | never |
|
|
126
|
-
| **Resolve** | names that must keep working for *readers* mid-migration | the above, **plus** the deprecated bare `<stage>` family | when no caller resolves the bare names |
|
|
127
|
-
|
|
128
|
-
Generators outside this repository emit the bare `<stage>` family and the bare `lisa-bootstrap` source profile independently, and scripts and documentation in caller repositories name them directly. Nothing co-ordinates a rename across those repositories, so emitting only the owned names would leave writer and reader disagreeing: a bare `[profile <stage>]` whose `source_profile = lisa-bootstrap` would point at a section that no longer exists, and every call through it would fail to resolve.
|
|
129
|
-
|
|
130
|
-
So the bare names are written as **deprecated aliases beside** the canonical output — never as canonical output — from one bundle in one pass, inside the same owner-tagged block:
|
|
119
|
+
### One canonical naming scheme, no bare aliases
|
|
131
120
|
|
|
132
121
|
```ini
|
|
133
|
-
[profile <namespace
|
|
134
|
-
source_profile = <namespace>-
|
|
122
|
+
[profile <namespace>-agent-<stage>] # ~/.aws/config
|
|
123
|
+
source_profile = <namespace>-agent-bootstrap
|
|
135
124
|
|
|
136
|
-
[
|
|
137
|
-
source_profile = lisa-bootstrap # same role, external id and region
|
|
125
|
+
[<namespace>-agent-bootstrap] # ~/.aws/credentials — the key pair
|
|
138
126
|
```
|
|
139
127
|
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
**The resolve window is not a fix.** The bare family is a *single shared slot* on a machine that may serve several projects — the exact collision the owned names remove. On the resolve path that collision is unfixed:
|
|
128
|
+
`<stage>` is the bundle key with at most one leading `agent-` removed, so `agent-dev` and `dev` both become `<namespace>-agent-dev` — never `<namespace>-agent-agent-dev`. Two keys that name the same stage, or a stage named `bootstrap` (it would shadow the source profile), are refused before anything is written. `lisa-setup-remote-aws` applies the same rule, so both writers produce the same names for the same bundle and namespace.
|
|
143
129
|
|
|
144
|
-
-
|
|
145
|
-
- refused **as a set** when another project or an operator's own section holds any part of them — a half-written family whose source profile belongs to someone else resolves into that project's account;
|
|
146
|
-
- reported by name on every run when refused, because a caller that has not migrated still uses those names and would otherwise get another project's account while reporting success;
|
|
147
|
-
- `LISA_SECRETS_CLAIM_LEGACY_PROFILES=1` takes them deliberately.
|
|
130
|
+
**Select profiles by their owned names only:** `aws --profile <namespace>-agent-dev`, `AWS_PROFILE=<namespace>-agent-staging`. Bare names (`agent-dev`, `dev`, source `lisa-bootstrap`) are never written. An earlier version wrote them as a deprecation window; a bare name is one slot per machine, so on a multi-tenant workstation it silently resolved into whichever tenant claimed it first. `LISA_SECRETS_NO_LEGACY_PROFILES` and `LISA_SECRETS_CLAIM_LEGACY_PROFILES` are now ignored. A bundle with bare keys (`dev`) previously produced `<namespace>-dev` and now produces `<namespace>-agent-dev`; update any `AWS_PROFILE` or `--profile` that still names the old spelling.
|
|
148
131
|
|
|
149
|
-
|
|
132
|
+
**Cleanup on the next run is automatic and owner-scoped.** This owner's managed block is regenerated whole, so the bare aliases and the retired `<namespace>-lisa-bootstrap` source a previous version wrote inside it disappear. Sections this owner's remote-agent writer left outside any managed block — `[profile <namespace>-agent-…]` assuming from `<namespace>-agent-bootstrap`, including the retired doubled spelling, and `[<namespace>-agent-bootstrap]` — are adopted into the block rather than refused as collisions. Another owner's block and every operator-authored section are left byte-for-byte.
|
|
150
133
|
|
|
151
|
-
**Removal condition, stated against the resolve path** — the only half that expires. Delete the resolve-only half once nothing outside this repository *resolves* the bare family, i.e. no caller names `<stage>` or `lisa-bootstrap` when selecting a profile. A caller proves it by selecting only `<namespace>-<stage>`; `LISA_SECRETS_NO_LEGACY_PROFILES=1` opts one out ahead of the removal and takes the isolation immediately. The emit path is unaffected by that deletion, because it never used the deprecated name.
|
|
152
134
|
|
|
153
135
|
## Configuration
|
|
154
136
|
|
|
@@ -42,92 +42,67 @@ const PROFILE = "AWS_PROFILE";
|
|
|
42
42
|
export const BOOTSTRAP_KEY = "LISA_AWS_BOOTSTRAP_JSON";
|
|
43
43
|
|
|
44
44
|
/**
|
|
45
|
-
*
|
|
45
|
+
* THE canonical AWS profile naming scheme — one tenant, one set of names.
|
|
46
46
|
*
|
|
47
|
-
*
|
|
48
|
-
*
|
|
47
|
+
* profile: <namespace>-agent-<stage>
|
|
48
|
+
* source profile: <namespace>-agent-bootstrap
|
|
49
49
|
*
|
|
50
|
-
*
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
-
*
|
|
50
|
+
* Two Lisa writers put profiles into the shared, untenanted `~/.aws` files:
|
|
51
|
+
* this module (via `materialize-secrets.mjs`) and the remote-agent setup script
|
|
52
|
+
* (`scripts/remote-agent-aws-setup.sh`). They must emit the SAME names for the
|
|
53
|
+
* same bundle and namespace, or a tenant's profile names depend on which
|
|
54
|
+
* writer ran last. The shell script cannot import this module, so it carries a
|
|
55
|
+
* byte-for-byte equivalent of `stageOf` and the two are pinned together by a
|
|
56
|
+
* test that runs both writers against one bundle.
|
|
54
57
|
*
|
|
55
|
-
*
|
|
56
|
-
*
|
|
57
|
-
*
|
|
58
|
-
*
|
|
58
|
+
* `<stage>` is the bundle key with at most ONE leading `agent-` removed. Infra
|
|
59
|
+
* kits publish keys that already say `agent-` (`agent-dev`), and others publish
|
|
60
|
+
* bare stages (`dev`); both must land on `<namespace>-agent-dev`. Prefixing
|
|
61
|
+
* without normalizing is what produced `acme-agent-agent-production`.
|
|
59
62
|
*
|
|
60
|
-
*
|
|
61
|
-
*
|
|
62
|
-
*
|
|
63
|
-
*
|
|
63
|
+
* There are no bare aliases. An earlier version also wrote the bundle's keys
|
|
64
|
+
* unprefixed (`agent-dev`, assuming from a bare `lisa-bootstrap`) as a
|
|
65
|
+
* deprecation window. A bare name is one slot per machine, so the first tenant
|
|
66
|
+
* claimed it and every other tenant's `--profile agent-dev` silently reached
|
|
67
|
+
* the first tenant's accounts (CodySwannGT/lisa#4768). That window is closed:
|
|
68
|
+
* nothing here emits a name that is not owned.
|
|
64
69
|
*/
|
|
70
|
+
const STAGE_PREFIX = "agent-";
|
|
71
|
+
|
|
72
|
+
/** The tail of the emitted source profile, after `<namespace>-`. */
|
|
73
|
+
const SOURCE_PROFILE_SUFFIX = "agent-bootstrap";
|
|
65
74
|
|
|
66
75
|
/**
|
|
67
|
-
* The
|
|
68
|
-
*
|
|
69
|
-
*
|
|
70
|
-
* identity can assume roles and do nothing else, so a call that silently ran as
|
|
71
|
-
* it would fail with a permissions error far from its cause.
|
|
72
|
-
*
|
|
73
|
-
* A SUFFIX rather than the whole name, because one fixed name is one shared
|
|
74
|
-
* slot. Two tenants on a workstation both wrote `[lisa-bootstrap]`, so the
|
|
75
|
-
* second run's key pair replaced the first's and the first tenant's profiles
|
|
76
|
-
* then assumed their roles from the second tenant's identity — which either
|
|
77
|
-
* fails confusingly or, where a trust policy is permissive, succeeds.
|
|
76
|
+
* The stage a bundle key names, with one leading `agent-` removed.
|
|
77
|
+
* @param {string} key A bundle profile key such as `agent-dev` or `dev`.
|
|
78
|
+
* @returns {string} The stage, e.g. `dev`.
|
|
78
79
|
*/
|
|
79
|
-
export
|
|
80
|
+
export function stageOf(key) {
|
|
81
|
+
return key.startsWith(STAGE_PREFIX) ? key.slice(STAGE_PREFIX.length) : key;
|
|
82
|
+
}
|
|
80
83
|
|
|
81
84
|
/**
|
|
82
|
-
*
|
|
83
|
-
*
|
|
84
|
-
*
|
|
85
|
-
*
|
|
86
|
-
* this bare source profile independently, and scripts and documentation in
|
|
87
|
-
* caller repositories name them directly. Nothing co-ordinates a rename across
|
|
88
|
-
* those repositories, so switching this writer to the owned names alone would
|
|
89
|
-
* leave writer and reader disagreeing: a bare `[profile <stage>]` whose
|
|
90
|
-
* `source_profile = lisa-bootstrap` would point at a section that no longer
|
|
91
|
-
* exists, and every call through it would fail to resolve.
|
|
92
|
-
*
|
|
93
|
-
* So the owned names are EMITTED as canonical and these bare names are kept
|
|
94
|
-
* RESOLVING beside them, both generated from one bundle in one pass. This
|
|
95
|
-
* constant is never used to decide what canonical output looks like, and it is
|
|
96
|
-
* not used to attribute a block either — ownership is read from the `owner=`
|
|
97
|
-
* marker tag, and a pre-ownership block is attributed by the accounts in its
|
|
98
|
-
* role ARNs. Its only job is the resolve path.
|
|
99
|
-
*
|
|
100
|
-
* **The window is not a fix, and this comment must not read like one.** The
|
|
101
|
-
* bare family is a single shared slot on a machine that may serve several
|
|
102
|
-
* projects — which is precisely the collision the owned names remove. During
|
|
103
|
-
* the window that collision is unfixed ON THE RESOLVE PATH ONLY: these names
|
|
104
|
-
* are claimed when unclaimed or already ours, and refused by name when another
|
|
105
|
-
* project holds them, so the failure is loud rather than silent, but two
|
|
106
|
-
* projects still cannot both have them. The emitted names are always correct;
|
|
107
|
-
* these are correct for at most one project per machine.
|
|
108
|
-
*
|
|
109
|
-
* **Removal condition — stated against the RESOLVE path, because that is the
|
|
110
|
-
* only thing that expires.** Delete this constant and every use of it once no
|
|
111
|
-
* caller repository *resolves* the bare family: that is, once nothing outside
|
|
112
|
-
* this repository names `<stage>` or `lisa-bootstrap` when selecting a profile.
|
|
113
|
-
* A caller proves it no longer resolves them by selecting only
|
|
114
|
-
* `<namespace>-<stage>`; `LISA_SECRETS_NO_LEGACY_PROFILES=1` lets one opt out
|
|
115
|
-
* ahead of the removal and take the isolation immediately. Nothing about the
|
|
116
|
-
* emit path changes when this is deleted, because the emit path never used it.
|
|
85
|
+
* The profile name a bundle key is emitted under for one namespace.
|
|
86
|
+
* @param {string} namespace Validated owner / namespace.
|
|
87
|
+
* @param {string} key The bundle profile key.
|
|
88
|
+
* @returns {string} `<namespace>-agent-<stage>`.
|
|
117
89
|
*/
|
|
118
|
-
export
|
|
90
|
+
export function canonicalProfileName(namespace, key) {
|
|
91
|
+
return `${namespace}-${STAGE_PREFIX}${stageOf(key)}`;
|
|
92
|
+
}
|
|
119
93
|
|
|
120
94
|
/**
|
|
121
|
-
* The source profile this writer
|
|
95
|
+
* The source profile this writer emits for one owner — the only name that
|
|
96
|
+
* holds the key pair and is assumed FROM.
|
|
122
97
|
*
|
|
123
|
-
*
|
|
124
|
-
*
|
|
125
|
-
*
|
|
98
|
+
* Owned rather than one fixed name, because one fixed name is one shared slot:
|
|
99
|
+
* two tenants both writing `[lisa-bootstrap]` meant the second key pair replaced
|
|
100
|
+
* the first.
|
|
126
101
|
* @param {string} owner Validated owner.
|
|
127
|
-
* @returns {string}
|
|
102
|
+
* @returns {string} `<owner>-agent-bootstrap`.
|
|
128
103
|
*/
|
|
129
104
|
export function emitSourceProfileFor(owner) {
|
|
130
|
-
return `${owner}-${
|
|
105
|
+
return `${owner}-${SOURCE_PROFILE_SUFFIX}`;
|
|
131
106
|
}
|
|
132
107
|
|
|
133
108
|
/**
|
|
@@ -169,24 +144,17 @@ export function readProfiles(bundle) {
|
|
|
169
144
|
* ignores whichever profile it selects — the profiles would exist and never be
|
|
170
145
|
* used.
|
|
171
146
|
*
|
|
172
|
-
* Every name is
|
|
173
|
-
* nothing else, and the kit deliberately keeps role names identical
|
|
174
|
-
* accounts so profiles differ only by account id — correct within one
|
|
175
|
-
* and the removal of the only distinguishing feature across two.
|
|
176
|
-
* makes the wrong resolution impossible rather than merely
|
|
177
|
-
*
|
|
178
|
-
*
|
|
179
|
-
*
|
|
180
|
-
* The `resolveOnly` half is rendered SEPARATELY, and returned rather than merged,
|
|
181
|
-
* so
|
|
182
|
-
* the installer can drop it as a unit after looking at the filesystem — which
|
|
183
|
-
* this function deliberately cannot see. See `RESOLVE_ONLY_LEGACY_SOURCE_PROFILE` for why
|
|
184
|
-
* that half exists at all and when it goes away.
|
|
185
|
-
* @param {object | null | undefined} bundle Parsed bootstrap bundle; absent renders nothing (null).
|
|
147
|
+
* Every name is owned, per the canonical scheme above. The bundle's keys name a
|
|
148
|
+
* stage and nothing else, and the kit deliberately keeps role names identical
|
|
149
|
+
* across accounts so profiles differ only by account id — correct within one
|
|
150
|
+
* tenant, and the removal of the only distinguishing feature across two.
|
|
151
|
+
* Prefixing makes the wrong resolution impossible rather than merely
|
|
152
|
+
* detectable, and it is the same scheme the remote-agent writer emits.
|
|
153
|
+
* @param {object | null | undefined} bundle Parsed bootstrap bundle.
|
|
186
154
|
* @param {string} owner Tenant these profiles belong to.
|
|
187
|
-
* @returns {{credentials: string, config: string, profiles: string[],
|
|
188
|
-
* Rendered file contents, the
|
|
189
|
-
*
|
|
155
|
+
* @returns {{credentials: string, config: string, profiles: string[], profileSettings: Map<string,{roleArn: string, region: string, externalId: string}>, sourceProfile: string}|null}
|
|
156
|
+
* Rendered file contents, the profiles and their settings, and the source profile; or null
|
|
157
|
+
* when the bundle is unusable.
|
|
190
158
|
*/
|
|
191
159
|
export function renderAwsProfiles(bundle, owner) {
|
|
192
160
|
if (!bundle) return null;
|
|
@@ -212,15 +180,26 @@ export function renderAwsProfiles(bundle, owner) {
|
|
|
212
180
|
|
|
213
181
|
const sections = [];
|
|
214
182
|
const names = [];
|
|
215
|
-
const
|
|
216
|
-
const
|
|
217
|
-
for (const [
|
|
183
|
+
const profileSettings = new Map();
|
|
184
|
+
const keyFor = new Map();
|
|
185
|
+
for (const [key, entry] of Object.entries(profiles)) {
|
|
218
186
|
const roleArn = entry?.roleArn ?? entry?.role_arn;
|
|
219
187
|
if (!roleArn) continue;
|
|
188
|
+
// `agent-` alone names no stage; writing `<owner>-agent-` would be a
|
|
189
|
+
// profile nobody can mean.
|
|
190
|
+
if (stageOf(key) === "") continue;
|
|
191
|
+
// `<owner>-agent-bootstrap` is the source profile; a stage of that name
|
|
192
|
+
// would overwrite the key pair's section name with a role profile.
|
|
193
|
+
if (stageOf(key) === "bootstrap") {
|
|
194
|
+
throw new Error(
|
|
195
|
+
`bootstrap key "${key}" names the stage "bootstrap", which is ` +
|
|
196
|
+
`reserved for the source profile. Rename it; nothing was changed.`
|
|
197
|
+
);
|
|
198
|
+
}
|
|
220
199
|
|
|
221
|
-
assertDeclaredAccount(
|
|
200
|
+
assertDeclaredAccount(key, entry, roleArn);
|
|
222
201
|
|
|
223
|
-
const name =
|
|
202
|
+
const name = canonicalProfileName(scope, key);
|
|
224
203
|
// A name is only usable if it can be written as an ini section header and
|
|
225
204
|
// read back as the same string. Anything with a bracket or newline would
|
|
226
205
|
// either truncate or inject extra lines into ~/.aws/config, and a config
|
|
@@ -228,6 +207,17 @@ export function renderAwsProfiles(bundle, owner) {
|
|
|
228
207
|
// name, since that is the string that becomes the header.
|
|
229
208
|
if (!/^[\w.@-]+$/.test(name)) continue;
|
|
230
209
|
|
|
210
|
+
// `dev` and `agent-dev` are one stage. Writing both would be a duplicate
|
|
211
|
+
// section, and AWS resolves only one of a duplicated name — silently.
|
|
212
|
+
const clash = keyFor.get(name);
|
|
213
|
+
if (clash !== undefined) {
|
|
214
|
+
throw new Error(
|
|
215
|
+
`bootstrap keys "${clash}" and "${key}" both name the profile ` +
|
|
216
|
+
`"${name}". Remove one from the bundle; nothing was changed.`
|
|
217
|
+
);
|
|
218
|
+
}
|
|
219
|
+
keyFor.set(name, key);
|
|
220
|
+
|
|
231
221
|
sections.push(
|
|
232
222
|
`${profileSection(name, roleArn, sourceProfile, bundle, entry)}\n`
|
|
233
223
|
);
|
|
@@ -235,42 +225,24 @@ export function renderAwsProfiles(bundle, owner) {
|
|
|
235
225
|
// re-parsing the rendered text made the header format load-bearing: a
|
|
236
226
|
// change to it would silently corrupt every returned name.
|
|
237
227
|
names.push(name);
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
resolveOnlySections.push(
|
|
244
|
-
`${profileSection(stage, roleArn, RESOLVE_ONLY_LEGACY_SOURCE_PROFILE, bundle, entry)}\n`
|
|
245
|
-
);
|
|
246
|
-
resolveOnlyNames.push(stage);
|
|
228
|
+
profileSettings.set(name, {
|
|
229
|
+
roleArn: String(roleArn),
|
|
230
|
+
region: String(entry.region ?? ""),
|
|
231
|
+
externalId: String(bundle.externalId ?? ""),
|
|
232
|
+
});
|
|
247
233
|
}
|
|
248
234
|
|
|
249
235
|
return {
|
|
250
236
|
credentials,
|
|
251
237
|
config: sections.join("\n"),
|
|
252
238
|
profiles: names,
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
`[${RESOLVE_ONLY_LEGACY_SOURCE_PROFILE}]`,
|
|
256
|
-
`aws_access_key_id = ${accessKeyId}`,
|
|
257
|
-
`aws_secret_access_key = ${secretAccessKey}`,
|
|
258
|
-
"",
|
|
259
|
-
].join("\n"),
|
|
260
|
-
config: resolveOnlySections.join("\n"),
|
|
261
|
-
profiles: resolveOnlyNames,
|
|
262
|
-
sourceProfile: RESOLVE_ONLY_LEGACY_SOURCE_PROFILE,
|
|
263
|
-
},
|
|
239
|
+
profileSettings,
|
|
240
|
+
sourceProfile,
|
|
264
241
|
};
|
|
265
242
|
}
|
|
266
243
|
|
|
267
244
|
/**
|
|
268
245
|
* One `[profile …]` section.
|
|
269
|
-
*
|
|
270
|
-
* Shared by the canonical and the deprecated renderer so the two cannot differ
|
|
271
|
-
* in anything but their names — the resolve-only profile must reach the same
|
|
272
|
-
* role, with the same external id and region, or it is not a shim but a
|
|
273
|
-
* second, subtly different credential.
|
|
274
246
|
* @param {string} name Section name.
|
|
275
247
|
* @param {string} roleArn The role to assume.
|
|
276
248
|
* @param {string} sourceProfile The profile holding the key pair.
|
|
@@ -375,7 +347,7 @@ export function deriveAwsEnvironment(selected, owner) {
|
|
|
375
347
|
// The pair now lives in ~/.aws/credentials as the source profile, and the
|
|
376
348
|
// session selects an environment instead. The ambient pair is unset by the
|
|
377
349
|
// shell profile rather than overridden — removing the poison beats out-
|
|
378
|
-
// shouting it, and it is what makes `--profile agent-staging` behave exactly
|
|
350
|
+
// shouting it, and it is what makes `--profile <owner>-agent-staging` behave exactly
|
|
379
351
|
// as it does on a developer's machine.
|
|
380
352
|
// Only profiles that actually get WRITTEN are candidates. Selecting a name
|
|
381
353
|
// that ~/.aws/config never contains — an entry with no roleArn, or a name too
|