diff --git a/.devcontainer/01-echoes-lost-in-orbit_beginner/post-create.sh b/.devcontainer/01-echoes-lost-in-orbit_beginner/post-create.sh index be345edd..e9348077 100644 --- a/.devcontainer/01-echoes-lost-in-orbit_beginner/post-create.sh +++ b/.devcontainer/01-echoes-lost-in-orbit_beginner/post-create.sh @@ -1,6 +1,12 @@ #!/usr/bin/env bash set -e +REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)" +# shellcheck disable=SC1091 +source "$REPO_ROOT/lib/scripts/tracker.sh" +set_tracking_context "echoes-lost-in-orbit" "beginner" "01" "12" "2025" +track_container_created + lib/shared/init.sh --version v0.17.0 # https://github.com/charmbracelet/gum/releases # kind: https://github.com/kubernetes-sigs/kind/releases | kubectl: https://dl.k8s.io | kubens: https://github.com/ahmetb/kubectx/releases | k9s: https://github.com/derailed/k9s/releases | helm: https://github.com/helm/helm/releases lib/kubernetes/init.sh \ diff --git a/.devcontainer/01-echoes-lost-in-orbit_beginner/post-start.sh b/.devcontainer/01-echoes-lost-in-orbit_beginner/post-start.sh index d2d68db4..eca2e289 100644 --- a/.devcontainer/01-echoes-lost-in-orbit_beginner/post-start.sh +++ b/.devcontainer/01-echoes-lost-in-orbit_beginner/post-start.sh @@ -6,4 +6,11 @@ echo "✨ Starting level 1 - Beginner" REPO_URL="https://github.com/${GITHUB_REPOSITORY}.git" sed -i "s|__REPO_URL__|${REPO_URL}|g" adventures/01-echoes-lost-in-orbit/beginner/manifests/appset.yaml -kubectl apply -n argocd -f adventures/01-echoes-lost-in-orbit/beginner/manifests/appset.yaml \ No newline at end of file +kubectl apply -n argocd -f adventures/01-echoes-lost-in-orbit/beginner/manifests/appset.yaml + +# Track that the environment is ready +REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)" +# shellcheck disable=SC1091 +source "$REPO_ROOT/lib/scripts/tracker.sh" +set_tracking_context "echoes-lost-in-orbit" "beginner" "01" "12" "2025" +track_container_initialized \ No newline at end of file diff --git a/.devcontainer/01-echoes-lost-in-orbit_expert/post-create.sh b/.devcontainer/01-echoes-lost-in-orbit_expert/post-create.sh index f8c8bcc3..fc33585d 100644 --- a/.devcontainer/01-echoes-lost-in-orbit_expert/post-create.sh +++ b/.devcontainer/01-echoes-lost-in-orbit_expert/post-create.sh @@ -1,6 +1,12 @@ #!/usr/bin/env bash set -e +REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)" +# shellcheck disable=SC1091 +source "$REPO_ROOT/lib/scripts/tracker.sh" +set_tracking_context "echoes-lost-in-orbit" "expert" "01" "12" "2025" +track_container_created + lib/shared/init.sh --version v0.17.0 # https://github.com/charmbracelet/gum/releases # kind: https://github.com/kubernetes-sigs/kind/releases | kubectl: https://dl.k8s.io | kubens: https://github.com/ahmetb/kubectx/releases | k9s: https://github.com/derailed/k9s/releases | helm: https://github.com/helm/helm/releases lib/kubernetes/init.sh \ diff --git a/.devcontainer/01-echoes-lost-in-orbit_expert/post-start.sh b/.devcontainer/01-echoes-lost-in-orbit_expert/post-start.sh index e9964868..aec51e57 100755 --- a/.devcontainer/01-echoes-lost-in-orbit_expert/post-start.sh +++ b/.devcontainer/01-echoes-lost-in-orbit_expert/post-start.sh @@ -20,4 +20,11 @@ git push # Refresh ArgoCD to pick up the new commit argocd app get hotrod --refresh +# Track that the environment is ready +REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)" +# shellcheck disable=SC1091 +source "$REPO_ROOT/lib/scripts/tracker.sh" +set_tracking_context "echoes-lost-in-orbit" "expert" "01" "12" "2025" +track_container_initialized + lib/argo-rollouts/connect.sh \ No newline at end of file diff --git a/.devcontainer/01-echoes-lost-in-orbit_intermediate/post-create.sh b/.devcontainer/01-echoes-lost-in-orbit_intermediate/post-create.sh index 8103d440..89c6eb3a 100644 --- a/.devcontainer/01-echoes-lost-in-orbit_intermediate/post-create.sh +++ b/.devcontainer/01-echoes-lost-in-orbit_intermediate/post-create.sh @@ -1,6 +1,12 @@ #!/usr/bin/env bash set -e +REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)" +# shellcheck disable=SC1091 +source "$REPO_ROOT/lib/scripts/tracker.sh" +set_tracking_context "echoes-lost-in-orbit" "intermediate" "01" "12" "2025" +track_container_created + lib/shared/init.sh --version v0.17.0 # https://github.com/charmbracelet/gum/releases # kind: https://github.com/kubernetes-sigs/kind/releases | kubectl: https://dl.k8s.io | kubens: https://github.com/ahmetb/kubectx/releases | k9s: https://github.com/derailed/k9s/releases | helm: https://github.com/helm/helm/releases lib/kubernetes/init.sh \ diff --git a/.devcontainer/01-echoes-lost-in-orbit_intermediate/post-start.sh b/.devcontainer/01-echoes-lost-in-orbit_intermediate/post-start.sh index 05a1120b..e6cca432 100644 --- a/.devcontainer/01-echoes-lost-in-orbit_intermediate/post-start.sh +++ b/.devcontainer/01-echoes-lost-in-orbit_intermediate/post-start.sh @@ -21,4 +21,11 @@ git push argocd app get echo-server-staging --refresh argocd app get echo-server-prod --refresh +# Track that the environment is ready +REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)" +# shellcheck disable=SC1091 +source "$REPO_ROOT/lib/scripts/tracker.sh" +set_tracking_context "echoes-lost-in-orbit" "intermediate" "01" "12" "2025" +track_container_initialized + lib/argo-rollouts/connect.sh \ No newline at end of file diff --git a/.devcontainer/02-building-cloudhaven_01-beginner/post-create.sh b/.devcontainer/02-building-cloudhaven_01-beginner/post-create.sh index fc580ed2..2b4f8610 100644 --- a/.devcontainer/02-building-cloudhaven_01-beginner/post-create.sh +++ b/.devcontainer/02-building-cloudhaven_01-beginner/post-create.sh @@ -4,9 +4,9 @@ set -e REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)" # shellcheck disable=SC1091 -source "$REPO_ROOT/lib/scripts/tracker-legacy.sh" -set_tracking_context "02-building-cloudhaven" "beginner" -track_codespace_created +source "$REPO_ROOT/lib/scripts/tracker.sh" +set_tracking_context "building-cloudhaven" "beginner" "02" "01" "2026" +track_container_created "$REPO_ROOT/lib/shared/init.sh" --version v0.17.0 # https://github.com/charmbracelet/gum/releases diff --git a/.devcontainer/02-building-cloudhaven_01-beginner/post-start.sh b/.devcontainer/02-building-cloudhaven_01-beginner/post-start.sh index 63e40169..26f1fd1f 100644 --- a/.devcontainer/02-building-cloudhaven_01-beginner/post-start.sh +++ b/.devcontainer/02-building-cloudhaven_01-beginner/post-start.sh @@ -11,6 +11,7 @@ tofu init # Track that the environment is ready # shellcheck disable=SC1091 -source "$REPO_ROOT/lib/scripts/tracker-legacy.sh" -track_codespace_initialized +source "$REPO_ROOT/lib/scripts/tracker.sh" +set_tracking_context "building-cloudhaven" "beginner" "02" "01" "2026" +track_container_initialized diff --git a/.devcontainer/02-building-cloudhaven_02-intermediate/post-create.sh b/.devcontainer/02-building-cloudhaven_02-intermediate/post-create.sh index 92fc7f57..15a63e8e 100644 --- a/.devcontainer/02-building-cloudhaven_02-intermediate/post-create.sh +++ b/.devcontainer/02-building-cloudhaven_02-intermediate/post-create.sh @@ -4,9 +4,9 @@ set -e REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)" # shellcheck disable=SC1091 -source "$REPO_ROOT/lib/scripts/tracker-legacy.sh" -set_tracking_context "02-building-cloudhaven" "intermediate" -track_codespace_created +source "$REPO_ROOT/lib/scripts/tracker.sh" +set_tracking_context "building-cloudhaven" "intermediate" "02" "01" "2026" +track_container_created "$REPO_ROOT/lib/shared/init.sh" --version v0.17.0 # https://github.com/charmbracelet/gum/releases diff --git a/.devcontainer/02-building-cloudhaven_02-intermediate/post-start.sh b/.devcontainer/02-building-cloudhaven_02-intermediate/post-start.sh index e60611ba..f9ed29f0 100644 --- a/.devcontainer/02-building-cloudhaven_02-intermediate/post-start.sh +++ b/.devcontainer/02-building-cloudhaven_02-intermediate/post-start.sh @@ -25,8 +25,9 @@ cd "$CHALLENGE_DIR/modules/district" echo "📦 Initializing district module for testing..." tofu init cd "$CHALLENGE_DIR" + # Track that the environment is ready # shellcheck disable=SC1091 -source "$REPO_ROOT/lib/scripts/tracker-legacy.sh" -set_tracking_context "02-building-cloudhaven" "intermediate" -track_codespace_initialized \ No newline at end of file +source "$REPO_ROOT/lib/scripts/tracker.sh" +set_tracking_context "building-cloudhaven" "intermediate" "02" "01" "2026" +track_container_initialized \ No newline at end of file diff --git a/.devcontainer/02-building-cloudhaven_03-expert/post-create.sh b/.devcontainer/02-building-cloudhaven_03-expert/post-create.sh index 0f997393..51c57588 100644 --- a/.devcontainer/02-building-cloudhaven_03-expert/post-create.sh +++ b/.devcontainer/02-building-cloudhaven_03-expert/post-create.sh @@ -4,9 +4,9 @@ set -e REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)" # shellcheck disable=SC1091 -source "$REPO_ROOT/lib/scripts/tracker-legacy.sh" -set_tracking_context "02-building-cloudhaven" "expert" -track_codespace_created +source "$REPO_ROOT/lib/scripts/tracker.sh" +set_tracking_context "building-cloudhaven" "expert" "02" "01" "2026" +track_container_created "$REPO_ROOT/lib/shared/init.sh" --version v0.17.0 # https://github.com/charmbracelet/gum/releases diff --git a/.devcontainer/02-building-cloudhaven_03-expert/post-start.sh b/.devcontainer/02-building-cloudhaven_03-expert/post-start.sh index 8e8dd67f..460b92ce 100644 --- a/.devcontainer/02-building-cloudhaven_03-expert/post-start.sh +++ b/.devcontainer/02-building-cloudhaven_03-expert/post-start.sh @@ -66,6 +66,6 @@ cd "$CHALLENGE_DIR" # Track that the environment is ready # shellcheck disable=SC1091 -source "$REPO_ROOT/lib/scripts/tracker-legacy.sh" -set_tracking_context "02-building-cloudhaven" "expert" -track_codespace_initialized \ No newline at end of file +source "$REPO_ROOT/lib/scripts/tracker.sh" +set_tracking_context "building-cloudhaven" "expert" "02" "01" "2026" +track_container_initialized \ No newline at end of file diff --git a/.devcontainer/03-the-ai-observatory_01-beginner/post-create.sh b/.devcontainer/03-the-ai-observatory_01-beginner/post-create.sh index 78e5fa9c..98277fed 100644 --- a/.devcontainer/03-the-ai-observatory_01-beginner/post-create.sh +++ b/.devcontainer/03-the-ai-observatory_01-beginner/post-create.sh @@ -4,9 +4,9 @@ set -e REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)" # shellcheck disable=SC1091 -source "$REPO_ROOT/lib/scripts/tracker-legacy.sh" -set_tracking_context "03-the-ai-observatory" "beginner" -track_codespace_created +source "$REPO_ROOT/lib/scripts/tracker.sh" +set_tracking_context "the-ai-observatory" "beginner" "03" "02" "2026" +track_container_created "$REPO_ROOT/lib/shared/init.sh" --version v0.17.0 # https://github.com/charmbracelet/gum/releases # kind: https://github.com/kubernetes-sigs/kind/releases | kubectl: https://dl.k8s.io | kubens: https://github.com/ahmetb/kubectx/releases | k9s: https://github.com/derailed/k9s/releases | helm: https://github.com/helm/helm/releases diff --git a/.devcontainer/03-the-ai-observatory_01-beginner/post-start.sh b/.devcontainer/03-the-ai-observatory_01-beginner/post-start.sh index 57e6b722..f14b60c8 100644 --- a/.devcontainer/03-the-ai-observatory_01-beginner/post-start.sh +++ b/.devcontainer/03-the-ai-observatory_01-beginner/post-start.sh @@ -12,6 +12,6 @@ pip install -r "$CHALLENGE_DIR/requirements.txt" --quiet # Track that the environment is ready # shellcheck disable=SC1091 -source "$REPO_ROOT/lib/scripts/tracker-legacy.sh" -set_tracking_context "03-the-ai-observatory" "beginner" -track_codespace_initialized \ No newline at end of file +source "$REPO_ROOT/lib/scripts/tracker.sh" +set_tracking_context "the-ai-observatory" "beginner" "03" "02" "2026" +track_container_initialized \ No newline at end of file diff --git a/.devcontainer/03-the-ai-observatory_02-intermediate/post-create.sh b/.devcontainer/03-the-ai-observatory_02-intermediate/post-create.sh index 5e19d19a..f2deafa9 100644 --- a/.devcontainer/03-the-ai-observatory_02-intermediate/post-create.sh +++ b/.devcontainer/03-the-ai-observatory_02-intermediate/post-create.sh @@ -4,9 +4,9 @@ set -e REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)" # shellcheck disable=SC1091 -source "$REPO_ROOT/lib/scripts/tracker-legacy.sh" -set_tracking_context "03-the-ai-observatory" "intermediate" -track_codespace_created +source "$REPO_ROOT/lib/scripts/tracker.sh" +set_tracking_context "the-ai-observatory" "intermediate" "03" "02" "2026" +track_container_created "$REPO_ROOT/lib/shared/init.sh" --version v0.17.0 # https://github.com/charmbracelet/gum/releases # kind: https://github.com/kubernetes-sigs/kind/releases | kubectl: https://dl.k8s.io | kubens: https://github.com/ahmetb/kubectx/releases | k9s: https://github.com/derailed/k9s/releases | helm: https://github.com/helm/helm/releases diff --git a/.devcontainer/03-the-ai-observatory_02-intermediate/post-start.sh b/.devcontainer/03-the-ai-observatory_02-intermediate/post-start.sh index e3ff3ef4..c6bb24af 100644 --- a/.devcontainer/03-the-ai-observatory_02-intermediate/post-start.sh +++ b/.devcontainer/03-the-ai-observatory_02-intermediate/post-start.sh @@ -16,6 +16,6 @@ python "$CHALLENGE_DIR/init_db.py" # Track that the environment is ready # shellcheck disable=SC1091 -source "$REPO_ROOT/lib/scripts/tracker-legacy.sh" -set_tracking_context "03-the-ai-observatory" "intermediate" -track_codespace_initialized \ No newline at end of file +source "$REPO_ROOT/lib/scripts/tracker.sh" +set_tracking_context "the-ai-observatory" "intermediate" "03" "02" "2026" +track_container_initialized \ No newline at end of file diff --git a/.devcontainer/03-the-ai-observatory_03-expert/post-create.sh b/.devcontainer/03-the-ai-observatory_03-expert/post-create.sh index 516d2279..d8e82671 100644 --- a/.devcontainer/03-the-ai-observatory_03-expert/post-create.sh +++ b/.devcontainer/03-the-ai-observatory_03-expert/post-create.sh @@ -4,9 +4,9 @@ set -e REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)" # shellcheck disable=SC1091 -source "$REPO_ROOT/lib/scripts/tracker-legacy.sh" -set_tracking_context "03-the-ai-observatory" "expert" -track_codespace_created +source "$REPO_ROOT/lib/scripts/tracker.sh" +set_tracking_context "the-ai-observatory" "expert" "03" "02" "2026" +track_container_created "$REPO_ROOT/lib/shared/init.sh" --version v0.17.0 # https://github.com/charmbracelet/gum/releases # kind: https://github.com/kubernetes-sigs/kind/releases | kubectl: https://dl.k8s.io | kubens: https://github.com/ahmetb/kubectx/releases | k9s: https://github.com/derailed/k9s/releases | helm: https://github.com/helm/helm/releases diff --git a/.devcontainer/03-the-ai-observatory_03-expert/post-start.sh b/.devcontainer/03-the-ai-observatory_03-expert/post-start.sh index bea41058..cdd0af44 100644 --- a/.devcontainer/03-the-ai-observatory_03-expert/post-start.sh +++ b/.devcontainer/03-the-ai-observatory_03-expert/post-start.sh @@ -16,6 +16,6 @@ python "$CHALLENGE_DIR/init_db.py" # Track that the environment is ready # shellcheck disable=SC1091 -source "$REPO_ROOT/lib/scripts/tracker-legacy.sh" -set_tracking_context "03-the-ai-observatory" "expert" -track_codespace_initialized +source "$REPO_ROOT/lib/scripts/tracker.sh" +set_tracking_context "the-ai-observatory" "expert" "03" "02" "2026" +track_container_initialized diff --git a/.devcontainer/04-blind-by-design_01-beginner/post-create.sh b/.devcontainer/04-blind-by-design_01-beginner/post-create.sh index 5e18c664..fd3a9cc7 100755 --- a/.devcontainer/04-blind-by-design_01-beginner/post-create.sh +++ b/.devcontainer/04-blind-by-design_01-beginner/post-create.sh @@ -5,9 +5,9 @@ REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)" CHALLENGE_DIR="$REPO_ROOT/adventures/04-blind-by-design/beginner" # shellcheck disable=SC1091 -source "$REPO_ROOT/lib/scripts/tracker-legacy.sh" -set_tracking_context "04-blind-by-design" "beginner" -track_codespace_created +source "$REPO_ROOT/lib/scripts/tracker.sh" +set_tracking_context "blind-by-design" "beginner" "04" "05" "2026" +track_container_created # Install gum (used by the verify.sh output helpers). "$REPO_ROOT/lib/shared/init.sh" --version v0.17.0 # https://github.com/charmbracelet/gum/releases diff --git a/.devcontainer/04-blind-by-design_01-beginner/post-start.sh b/.devcontainer/04-blind-by-design_01-beginner/post-start.sh index 31fb2a33..b4e3e564 100755 --- a/.devcontainer/04-blind-by-design_01-beginner/post-start.sh +++ b/.devcontainer/04-blind-by-design_01-beginner/post-start.sh @@ -37,8 +37,9 @@ EOF # Track that the environment is ready. # shellcheck disable=SC1091 -source "$REPO_ROOT/lib/scripts/tracker-legacy.sh" -track_codespace_initialized +source "$REPO_ROOT/lib/scripts/tracker.sh" +set_tracking_context "blind-by-design" "beginner" "04" "05" "2026" +track_container_initialized # Open the relevant files in the connected editor. customizations.codespaces.openFiles # is unreliable for dockerComposeFile-based devcontainers (the orchestrator merges diff --git a/.devcontainer/04-blind-by-design_02-intermediate/post-create.sh b/.devcontainer/04-blind-by-design_02-intermediate/post-create.sh index cdc37e47..079b7f66 100755 --- a/.devcontainer/04-blind-by-design_02-intermediate/post-create.sh +++ b/.devcontainer/04-blind-by-design_02-intermediate/post-create.sh @@ -4,9 +4,9 @@ set -e REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)" # shellcheck disable=SC1091 -source "$REPO_ROOT/lib/scripts/tracker-legacy.sh" -set_tracking_context "04-blind-by-design" "intermediate" -track_codespace_created +source "$REPO_ROOT/lib/scripts/tracker.sh" +set_tracking_context "blind-by-design" "intermediate" "04" "05" "2026" +track_container_created "$REPO_ROOT/lib/shared/init.sh" --version v0.17.0 # https://github.com/charmbracelet/gum/releases diff --git a/.devcontainer/04-blind-by-design_02-intermediate/post-start.sh b/.devcontainer/04-blind-by-design_02-intermediate/post-start.sh index 146684f9..4b7972af 100755 --- a/.devcontainer/04-blind-by-design_02-intermediate/post-start.sh +++ b/.devcontainer/04-blind-by-design_02-intermediate/post-start.sh @@ -37,9 +37,9 @@ EOF # Track that the environment is ready # shellcheck disable=SC1091 -source "$REPO_ROOT/lib/scripts/tracker-legacy.sh" -set_tracking_context "blind-by-design" "intermediate" -track_codespace_initialized +source "$REPO_ROOT/lib/scripts/tracker.sh" +set_tracking_context "blind-by-design" "intermediate" "04" "05" "2026" +track_container_initialized # Open the relevant files in the connected editor. customizations.codespaces.openFiles # is unreliable for dockerComposeFile-based devcontainers (the orchestrator merges diff --git a/.devcontainer/04-blind-by-design_03-expert/post-create.sh b/.devcontainer/04-blind-by-design_03-expert/post-create.sh index 49eae459..8bb04530 100755 --- a/.devcontainer/04-blind-by-design_03-expert/post-create.sh +++ b/.devcontainer/04-blind-by-design_03-expert/post-create.sh @@ -4,9 +4,9 @@ set -e REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)" # shellcheck disable=SC1091 -source "$REPO_ROOT/lib/scripts/tracker-legacy.sh" -set_tracking_context "04-blind-by-design" "expert" -track_codespace_created +source "$REPO_ROOT/lib/scripts/tracker.sh" +set_tracking_context "blind-by-design" "expert" "04" "05" "2026" +track_container_created # gum is used by the verify.sh / output.sh helpers "$REPO_ROOT/lib/shared/init.sh" --version v0.17.0 # https://github.com/charmbracelet/gum/releases diff --git a/.devcontainer/04-blind-by-design_03-expert/post-start.sh b/.devcontainer/04-blind-by-design_03-expert/post-start.sh index 37800b2b..8731e46b 100755 --- a/.devcontainer/04-blind-by-design_03-expert/post-start.sh +++ b/.devcontainer/04-blind-by-design_03-expert/post-start.sh @@ -35,9 +35,9 @@ EOF # Track that the environment is ready # shellcheck disable=SC1091 -source "$REPO_ROOT/lib/scripts/tracker-legacy.sh" -set_tracking_context "04-blind-by-design" "expert" -track_codespace_initialized +source "$REPO_ROOT/lib/scripts/tracker.sh" +set_tracking_context "blind-by-design" "expert" "04" "05" "2026" +track_container_initialized # Open the relevant files in the connected editor. customizations.codespaces.openFiles # is unreliable for dockerComposeFile-based devcontainers (the orchestrator merges diff --git a/.github/workflows/reuse.yml b/.github/workflows/reuse.yml new file mode 100644 index 00000000..f1ce54f5 --- /dev/null +++ b/.github/workflows/reuse.yml @@ -0,0 +1,14 @@ +name: REUSE Compliance + +on: + push: + branches: [main] + pull_request: + +jobs: + reuse: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: REUSE lint + uses: fsfe/reuse-action@v5 diff --git a/LICENSES/CC-BY-4.0.txt b/LICENSES/CC-BY-4.0.txt new file mode 100644 index 00000000..46c1f694 --- /dev/null +++ b/LICENSES/CC-BY-4.0.txt @@ -0,0 +1,118 @@ +Creative Commons Attribution 4.0 International +Full name +Creative Commons Attribution 4.0 International + +Short identifier +CC-BY-4.0 + +Other web pages for this license +https://creativecommons.org/licenses/by/4.0/legalcode +Notes +None + +Text +Text in italicized blue is omittable (see Matching Guidelines B.3.5). License or exception text will match to the text for the specified identifier if it either includes or excludes this omittable text. + +Text in red is replaceable (see Matching Guidelines B.3.4). License or exception text will match to the text for the specified identifier if it includes a permitted variant of this replaceable text. The permitted variants can be found in the corresponding regular expression as shown in title text visible by hovering over the red text. +Creative Commons Attribution 4.0 International + +Creative Commons Corporation ("Creative Commons") is not a law firm and does not provide legal services or legal advice. Distribution of Creative Commons public licenses does not create a lawyer-client or other relationship. Creative Commons makes its licenses and related information available on an "as-is" basis. Creative Commons gives no warranties regarding its licenses, any material licensed under their terms and conditions, or any related information. Creative Commons disclaims all liability for damages resulting from their use to the fullest extent possible. + +Using Creative Commons Public Licenses + +Creative Commons public licenses provide a standard set of terms and conditions that creators and other rights holders may use to share original works of authorship and other material subject to copyright and certain other rights specified in the public license below. The following considerations are for informational purposes only, are not exhaustive, and do not form part of our licenses. + +Considerations for licensors: Our public licenses are intended for use by those authorized to give the public permission to use material in ways otherwise restricted by copyright and certain other rights. Our licenses are irrevocable. Licensors should read and understand the terms and conditions of the license they choose before applying it. Licensors should also secure all rights necessary before applying our licenses so that the public can reuse the material as expected. Licensors should clearly mark any material not subject to the license. This includes other material, or material used under an exception or limitation to copyright. More considerations for licensors : wiki.creativecommons.org/Considerations_for_licensors + +Considerations for the public: By using one of our public licenses, a licensor grants the public permission to use the licensed material under specified terms and conditions. If the licensor's permission is not necessary for any reason–for example, because of any applicable exception or limitation to copyright–then that use is not regulated by the license. Our licenses grant only permissions under copyright and certain other rights that a licensor has authority to grant. Use of the licensed material may still be restricted for other reasons, including because others have copyright or other rights in the material. A licensor may make special requests, such as asking that all changes be marked or described. Although not required by our licenses, you are encouraged to respect those requests where reasonable. More considerations for the public : wiki.creativecommons.org/Considerations_for_licensees + +Creative Commons Attribution 4.0 International Public License + +By exercising the Licensed Rights (defined below), You accept and agree to be bound by the terms and conditions of this Creative Commons Attribution 4.0 International Public License ("Public License"). To the extent this Public License may be interpreted as a contract, You are granted the Licensed Rights in consideration of Your acceptance of these terms and conditions, and the Licensor grants You such rights in consideration of benefits the Licensor receives from making the Licensed Material available under these terms and conditions. + +Section 1 Definitions. + +a. Adapted Material means material subject to Copyright and Similar Rights that is derived from or based upon the Licensed Material and in which the Licensed Material is translated, altered, arranged, transformed, or otherwise modified in a manner requiring permission under the Copyright and Similar Rights held by the Licensor. For purposes of this Public License, where the Licensed Material is a musical work, performance, or sound recording, Adapted Material is always produced where the Licensed Material is synched in timed relation with a moving image. +b. Adapter's License means the license You apply to Your Copyright and Similar Rights in Your contributions to Adapted Material in accordance with the terms and conditions of this Public License. +c. Copyright and Similar Rights means copyright and/or similar rights closely related to copyright including, without limitation, performance, broadcast, sound recording, and Sui Generis Database Rights, without regard to how the rights are labeled or categorized. For purposes of this Public License, the rights specified in Section 2(b)(1)-(2) are not Copyright and Similar Rights. +d. Effective Technological Measures means those measures that, in the absence of proper authority, may not be circumvented under laws fulfilling obligations under Article 11 of the WIPO Copyright Treaty adopted on December 20, 1996, and/or similar international agreements. +e. Exceptions and Limitations means fair use, fair dealing, and/or any other exception or limitation to Copyright and Similar Rights that applies to Your use of the Licensed Material. +f. Licensed Material means the artistic or literary work, database, or other material to which the Licensor applied this Public License. +g. Licensed Rights means the rights granted to You subject to the terms and conditions of this Public License, which are limited to all Copyright and Similar Rights that apply to Your use of the Licensed Material and that the Licensor has authority to license. +h. Licensor means the individual(s) or entity(ies) granting rights under this Public License. +i. Share means to provide material to the public by any means or process that requires permission under the Licensed Rights, such as reproduction, public display, public performance, distribution, dissemination, communication, or importation, and to make material available to the public including in ways that members of the public may access the material from a place and at a time individually chosen by them. +j. Sui Generis Database Rights means rights other than copyright resulting from Directive 96/9/EC of the European Parliament and of the Council of 11 March 1996 on the legal protection of databases, as amended and/or succeeded, as well as other essentially equivalent rights anywhere in the world. +k. You means the individual or entity exercising the Licensed Rights under this Public License. Your has a corresponding meaning. +Section 2 Scope. + +a. License grant. +1. Subject to the terms and conditions of this Public License, the Licensor hereby grants You a worldwide, royalty-free, non-sublicensable, non-exclusive, irrevocable license to exercise the Licensed Rights in the Licensed Material to: +A. reproduce and Share the Licensed Material, in whole or in part; and +B. produce, reproduce, and Share Adapted Material. +2. Exceptions and Limitations. For the avoidance of doubt, where Exceptions and Limitations apply to Your use, this Public License does not apply, and You do not need to comply with its terms and conditions. +3. Term. The term of this Public License is specified in Section 6(a). +4. Media and formats; technical modifications allowed. The Licensor authorizes You to exercise the Licensed Rights in all media and formats whether now known or hereafter created, and to make technical modifications necessary to do so. The Licensor waives and/or agrees not to assert any right or authority to forbid You from making technical modifications necessary to exercise the Licensed Rights, including technical modifications necessary to circumvent Effective Technological Measures. For purposes of this Public License, simply making modifications authorized by this Section 2(a)(4) never produces Adapted Material. +5. Downstream recipients. +A. Offer from the Licensor – Licensed Material. Every recipient of the Licensed Material automatically receives an offer from the Licensor to exercise the Licensed Rights under the terms and conditions of this Public License. +B. No downstream restrictions. You may not offer or impose any additional or different terms or conditions on, or apply any Effective Technological Measures to, the Licensed Material if doing so restricts exercise of the Licensed Rights by any recipient of the Licensed Material. +6. No endorsement. Nothing in this Public License constitutes or may be construed as permission to assert or imply that You are, or that Your use of the Licensed Material is, connected with, or sponsored, endorsed, or granted official status by, the Licensor or others designated to receive attribution as provided in Section 3(a)(1)(A)(i). +b. Other rights. +1. Moral rights, such as the right of integrity, are not licensed under this Public License, nor are publicity, privacy, and/or other similar personality rights; however, to the extent possible, the Licensor waives and/or agrees not to assert any such rights held by the Licensor to the limited extent necessary to allow You to exercise the Licensed Rights, but not otherwise. +2. Patent and trademark rights are not licensed under this Public License. +3. To the extent possible, the Licensor waives any right to collect royalties from You for the exercise of the Licensed Rights, whether directly or through a collecting society under any voluntary or waivable statutory or compulsory licensing scheme. In all other cases the Licensor expressly reserves any right to collect such royalties. +Section 3 License Conditions. + +Your exercise of the Licensed Rights is expressly made subject to the following conditions. + +a. Attribution. +1. If You Share the Licensed Material (including in modified form), You must: +A. retain the following if it is supplied by the Licensor with the Licensed Material: +i. identification of the creator(s) of the Licensed Material and any others designated to receive attribution, in any reasonable manner requested by the Licensor (including by pseudonym if designated); +ii. a copyright notice; +iii. a notice that refers to this Public License; +iv. a notice that refers to the disclaimer of warranties; +v. a URI or hyperlink to the Licensed Material to the extent reasonably practicable; +B. indicate if You modified the Licensed Material and retain an indication of any previous modifications; and +C. indicate the Licensed Material is licensed under this Public License, and include the text of, or the URI or hyperlink to, this Public License. +2. You may satisfy the conditions in Section 3(a)(1) in any reasonable manner based on the medium, means, and context in which You Share the Licensed Material. For example, it may be reasonable to satisfy the conditions by providing a URI or hyperlink to a resource that includes the required information. +3. If requested by the Licensor, You must remove any of the information required by Section 3(a)(1)(A) to the extent reasonably practicable. +4. If You Share Adapted Material You produce, the Adapter's License You apply must not prevent recipients of the Adapted Material from complying with this Public License. +Section 4 Sui Generis Database Rights. + +Where the Licensed Rights include Sui Generis Database Rights that apply to Your use of the Licensed Material: + +a. for the avoidance of doubt, Section 2(a)(1) grants You the right to extract, reuse, reproduce, and Share all or a substantial portion of the contents of the database; +b. if You include all or a substantial portion of the database contents in a database in which You have Sui Generis Database Rights, then the database in which You have Sui Generis Database Rights (but not its individual contents) is Adapted Material; and +c. You must comply with the conditions in Section 3(a) if You Share all or a substantial portion of the contents of the database. +For the avoidance of doubt, this Section 4 supplements and does not replace Your obligations under this Public License where the Licensed Rights include other Copyright and Similar Rights. + +Section 5 Disclaimer of Warranties and Limitation of Liability. + +a. Unless otherwise separately undertaken by the Licensor, to the extent possible, the Licensor offers the Licensed Material as-is and as-available, and makes no representations or warranties of any kind concerning the Licensed Material, whether express, implied, statutory, or other. This includes, without limitation, warranties of title, merchantability, fitness for a particular purpose, non-infringement, absence of latent or other defects, accuracy, or the presence or absence of errors, whether or not known or discoverable. Where disclaimers of warranties are not allowed in full or in part, this disclaimer may not apply to You. +b. To the extent possible, in no event will the Licensor be liable to You on any legal theory (including, without limitation, negligence) or otherwise for any direct, special, indirect, incidental, consequential, punitive, exemplary, or other losses, costs, expenses, or damages arising out of this Public License or use of the Licensed Material, even if the Licensor has been advised of the possibility of such losses, costs, expenses, or damages. Where a limitation of liability is not allowed in full or in part, this limitation may not apply to You. +c. The disclaimer of warranties and limitation of liability provided above shall be interpreted in a manner that, to the extent possible, most closely approximates an absolute disclaimer and waiver of all liability. +Section 6 Term and Termination. + +a. This Public License applies for the term of the Copyright and Similar Rights licensed here. However, if You fail to comply with this Public License, then Your rights under this Public License terminate automatically. +b. Where Your right to use the Licensed Material has terminated under Section 6(a), it reinstates: +1. automatically as of the date the violation is cured, provided it is cured within 30 days of Your discovery of the violation; or +2. upon express reinstatement by the Licensor. +c. For the avoidance of doubt, this Section 6(b) does not affect any right the Licensor may have to seek remedies for Your violations of this Public License. +d. For the avoidance of doubt, the Licensor may also offer the Licensed Material under separate terms or conditions or stop distributing the Licensed Material at any time; however, doing so will not terminate this Public License. +e. Sections 1, 5, 6, 7, and 8 survive termination of this Public License. +Section 7 Other Terms and Conditions. + +a. The Licensor shall not be bound by any additional or different terms or conditions communicated by You unless expressly agreed. +b. Any arrangements, understandings, or agreements regarding the Licensed Material not stated herein are separate from and independent of the terms and conditions of this Public License. +Section 8 Interpretation. + +a. For the avoidance of doubt, this Public License does not, and shall not be interpreted to, reduce, limit, restrict, or impose conditions on any use of the Licensed Material that could lawfully be made without permission under this Public License. +b. To the extent possible, if any provision of this Public License is deemed unenforceable, it shall be automatically reformed to the minimum extent necessary to make it enforceable. If the provision cannot be reformed, it shall be severed from this Public License without affecting the enforceability of the remaining terms and conditions. +c. No term or condition of this Public License will be waived and no failure to comply consented to unless expressly agreed to by the Licensor. +d. Nothing in this Public License constitutes or may be interpreted as a limitation upon, or waiver of, any privileges and immunities that apply to the Licensor or You, including from the legal processes of any jurisdiction or authority. +Creative Commons is not a party to its public licenses. Notwithstanding, Creative Commons may elect to apply one of its public licenses to material it publishes and in those instances will be considered the "Licensor." The text of the Creative Commons public licenses is dedicated to the public domain under the CC0 Public Domain Dedication. Except for the limited purpose of indicating that material is shared under a Creative Commons public license or as otherwise permitted by the Creative Commons policies published at creativecommons.org/policies, Creative Commons does not authorize the use of the trademark "Creative Commons" or any other trademark or logo of Creative Commons without its prior written consent including, without limitation, in connection with any unauthorized modifications to any of its public licenses or any other arrangements, understandings, or agreements concerning use of licensed material. For the avoidance of doubt, this paragraph does not form part of the public licenses. + +Creative Commons may be contacted at creativecommons.org. + +Standard License Header +There is no standard license header for the license diff --git a/LICENSES/MIT.txt b/LICENSES/MIT.txt new file mode 100644 index 00000000..3a9fd8e1 --- /dev/null +++ b/LICENSES/MIT.txt @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2026 OffOn + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md index a57e40f7..5ec53a11 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -# Open Ecosystem Challenges +# OffOn Challenges -Welcome to Open Ecosystem Challenges! 🚀 +Welcome to OffOn Challenges! 🚀 These are **hands-on, recurring prompts** designed to help you practice **Cloud Native, OpenTelemetry, AI/ML**, and other **open source skills**. diff --git a/REUSE.toml b/REUSE.toml new file mode 100644 index 00000000..73ad411f --- /dev/null +++ b/REUSE.toml @@ -0,0 +1,49 @@ +# REUSE.toml for off-on-dev/open-source-challenges. +# Code = MIT, written/curriculum content = CC BY 4.0. No bundled fonts. +# The existing root LICENSE (MIT) stays as-is; this only adds per-file clarity. +# The OffOn name/logo are reserved separately — see TRADEMARK.md. +# +# License texts live in ./LICENSES/ (MIT.txt, CC-BY-4.0.txt). +# The reuse.yml Action runs `reuse lint` on every push/PR; if it flags a file, +# add that path to the closest block below. + +version = 1 + +# --- Source code: MIT --- +[[annotations]] +path = [ + "**/*.sh", "**/*.bash", "**/*.py", "**/*.go", "**/*.java", + "**/*.ts", "**/*.tsx", "**/*.js", "**/*.mjs", "**/*.cjs", + "**/*.tf", "**/*.tfvars", "**/*.hcl", + "Makefile", "**/Makefile", "**/*.mk", + "lib/**", "scripts/**", "infra/**", +] +SPDX-FileCopyrightText = "OffOn.dev contributors" +SPDX-License-Identifier = "MIT" + +# --- Config, tooling, lockfiles, metadata: MIT --- +[[annotations]] +path = [ + "**/*.json", "**/*.yml", "**/*.yaml", "**/*.toml", + "**/*.cfg", "**/*.ini", "**/*.xml", "**/*.ico", + ".gitignore", ".gitattributes", ".npmrc", ".nvmrc", + ".editorconfig", ".dockerignore", "**/Dockerfile", "**/*.env.example", + ".devcontainer/**", ".github/**", +] +SPDX-FileCopyrightText = "OffOn.dev contributors" +SPDX-License-Identifier = "MIT" + +# --- Written content, docs, curriculum text: CC BY 4.0 --- +[[annotations]] +path = [ + "**/*.md", "**/*.mdx", "**/*.txt", + "adventures/**", "ideas/**", +] +SPDX-FileCopyrightText = "OffOn.dev contributors" +SPDX-License-Identifier = "CC-BY-4.0" + +# --- Images / static assets: MIT --- +[[annotations]] +path = ["**/*.png", "**/*.svg", "**/*.jpg", "**/*.jpeg", "**/*.webp", "**/*.gif"] +SPDX-FileCopyrightText = "OffOn.dev contributors" +SPDX-License-Identifier = "MIT" diff --git a/TRADEMARK.md b/TRADEMARK.md new file mode 100644 index 00000000..1792de27 --- /dev/null +++ b/TRADEMARK.md @@ -0,0 +1,28 @@ +# Trademark Policy + +"OffOn", "OffOn.dev", and the OffOn logo (the "Marks") are unregistered +trademarks of the OffOn.dev project and its maintainers. + +The license(s) applied to this repository cover **copyright**, not trademarks. +They do not grant any right to use the Marks. + +## You may + +- Use the Marks nominatively to refer to the OffOn.dev project (e.g. "compatible + with OffOn", "based on OffOn challenges") in a truthful, non-misleading way. +- Fork this repository under its license, provided the fork does not use the + Marks in a way that suggests it is the official OffOn.dev project or endorsed + by it. + +## You may not + +- Use the Marks (or confusingly similar names/logos) as the name of your own + product, service, site, or organization. +- Imply sponsorship, affiliation, or endorsement by OffOn.dev without prior + written permission. +- Alter the logo or use the Marks in a misleading manner. + +If you rebrand a fork, please remove the OffOn name and logo and choose a +distinct identity. + +Permission requests: offondev@gmail.com diff --git a/adventures/01-echoes-lost-in-orbit/beginner/smoke-test.sh b/adventures/01-echoes-lost-in-orbit/beginner/smoke-test.sh index f8361408..4158c0ff 100755 --- a/adventures/01-echoes-lost-in-orbit/beginner/smoke-test.sh +++ b/adventures/01-echoes-lost-in-orbit/beginner/smoke-test.sh @@ -5,8 +5,7 @@ set -euo pipefail SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" # shellcheck disable=SC1091 source "$SCRIPT_DIR/../../../lib/scripts/loader.sh" -# shellcheck disable=SC1091 -source "$SCRIPT_DIR/../../../lib/scripts/tracker-legacy.sh" +set_tracking_context "echoes-lost-in-orbit" "beginner" "01" "12" "2025" OBJECTIVE="By the end of this level, you should: diff --git a/adventures/01-echoes-lost-in-orbit/expert/smoke-test.sh b/adventures/01-echoes-lost-in-orbit/expert/smoke-test.sh index c10b166b..0781fc61 100755 --- a/adventures/01-echoes-lost-in-orbit/expert/smoke-test.sh +++ b/adventures/01-echoes-lost-in-orbit/expert/smoke-test.sh @@ -5,8 +5,7 @@ set -euo pipefail SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" # shellcheck disable=SC1091 source "$SCRIPT_DIR/../../../lib/scripts/loader.sh" -# shellcheck disable=SC1091 -source "$SCRIPT_DIR/../../../lib/scripts/tracker-legacy.sh" +set_tracking_context "echoes-lost-in-orbit" "expert" "01" "12" "2025" OBJECTIVE="By the end of this level, you should have: - Automated rollout progression to HotROD version 1.76.0 driven by observability signals diff --git a/adventures/01-echoes-lost-in-orbit/intermediate/smoke-test.sh b/adventures/01-echoes-lost-in-orbit/intermediate/smoke-test.sh index 4c9932db..437cadee 100755 --- a/adventures/01-echoes-lost-in-orbit/intermediate/smoke-test.sh +++ b/adventures/01-echoes-lost-in-orbit/intermediate/smoke-test.sh @@ -5,8 +5,7 @@ set -euo pipefail SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" # shellcheck disable=SC1091 source "$SCRIPT_DIR/../../../lib/scripts/loader.sh" -# shellcheck disable=SC1091 -source "$SCRIPT_DIR/../../../lib/scripts/tracker-legacy.sh" +set_tracking_context "echoes-lost-in-orbit" "intermediate" "01" "12" "2025" OBJECTIVE="By the end of this level, you should have: - Pod info version 6.9.3 deployed successfully in both staging and production environments diff --git a/adventures/02-building-cloudhaven/beginner/smoke-test.sh b/adventures/02-building-cloudhaven/beginner/smoke-test.sh index 8eab940f..0e131960 100755 --- a/adventures/02-building-cloudhaven/beginner/smoke-test.sh +++ b/adventures/02-building-cloudhaven/beginner/smoke-test.sh @@ -5,8 +5,7 @@ set -euo pipefail SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" # shellcheck disable=SC1091 source "$SCRIPT_DIR/../../../lib/scripts/loader.sh" -# shellcheck disable=SC1091 -source "$SCRIPT_DIR/../../../lib/scripts/tracker-legacy.sh" +set_tracking_context "building-cloudhaven" "beginner" "02" "01" "2026" OBJECTIVE="By the end of this level, you should: diff --git a/adventures/02-building-cloudhaven/expert/smoke-test.sh b/adventures/02-building-cloudhaven/expert/smoke-test.sh index 614b5b17..26ffcceb 100755 --- a/adventures/02-building-cloudhaven/expert/smoke-test.sh +++ b/adventures/02-building-cloudhaven/expert/smoke-test.sh @@ -5,8 +5,7 @@ set -euo pipefail SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" # shellcheck disable=SC1091 source "$SCRIPT_DIR/../../../lib/scripts/loader.sh" -# shellcheck disable=SC1091 -source "$SCRIPT_DIR/../../../lib/scripts/tracker-legacy.sh" +set_tracking_context "building-cloudhaven" "expert" "02" "01" "2026" OBJECTIVE="By the end of this level, your workflows should: diff --git a/adventures/02-building-cloudhaven/intermediate/smoke-test.sh b/adventures/02-building-cloudhaven/intermediate/smoke-test.sh index fc4697e1..11560124 100755 --- a/adventures/02-building-cloudhaven/intermediate/smoke-test.sh +++ b/adventures/02-building-cloudhaven/intermediate/smoke-test.sh @@ -5,8 +5,7 @@ set -euo pipefail SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" # shellcheck disable=SC1091 source "$SCRIPT_DIR/../../../lib/scripts/loader.sh" -# shellcheck disable=SC1091 -source "$SCRIPT_DIR/../../../lib/scripts/tracker-legacy.sh" +set_tracking_context "building-cloudhaven" "intermediate" "02" "01" "2026" OBJECTIVE="By the end of this level, you should have: diff --git a/adventures/03-the-ai-observatory/beginner/verify.sh b/adventures/03-the-ai-observatory/beginner/verify.sh index 489edc66..26568869 100755 --- a/adventures/03-the-ai-observatory/beginner/verify.sh +++ b/adventures/03-the-ai-observatory/beginner/verify.sh @@ -5,8 +5,7 @@ set -euo pipefail SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" # shellcheck disable=SC1091 source "$SCRIPT_DIR/../../../lib/scripts/loader.sh" -# shellcheck disable=SC1091 -source "$SCRIPT_DIR/../../../lib/scripts/tracker-legacy.sh" +set_tracking_context "the-ai-observatory" "beginner" "03" "02" "2026" OBJECTIVE="By the end of this level, you should: diff --git a/adventures/03-the-ai-observatory/expert/verify.sh b/adventures/03-the-ai-observatory/expert/verify.sh index e0419703..8a9bfcb9 100755 --- a/adventures/03-the-ai-observatory/expert/verify.sh +++ b/adventures/03-the-ai-observatory/expert/verify.sh @@ -5,8 +5,7 @@ set -euo pipefail SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" # shellcheck disable=SC1091 source "$SCRIPT_DIR/../../../lib/scripts/loader.sh" -# shellcheck disable=SC1091 -source "$SCRIPT_DIR/../../../lib/scripts/tracker-legacy.sh" +set_tracking_context "the-ai-observatory" "expert" "03" "02" "2026" OBJECTIVE="By the end of this level, you should: diff --git a/adventures/03-the-ai-observatory/intermediate/verify.sh b/adventures/03-the-ai-observatory/intermediate/verify.sh index 76ddcf74..4507214b 100755 --- a/adventures/03-the-ai-observatory/intermediate/verify.sh +++ b/adventures/03-the-ai-observatory/intermediate/verify.sh @@ -5,8 +5,7 @@ set -euo pipefail SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" # shellcheck disable=SC1091 source "$SCRIPT_DIR/../../../lib/scripts/loader.sh" -# shellcheck disable=SC1091 -source "$SCRIPT_DIR/../../../lib/scripts/tracker-legacy.sh" +set_tracking_context "the-ai-observatory" "intermediate" "03" "02" "2026" OBJECTIVE="By the end of this level, you should: diff --git a/adventures/04-blind-by-design/beginner/verify.sh b/adventures/04-blind-by-design/beginner/verify.sh index 5e7d126b..ab4d3def 100755 --- a/adventures/04-blind-by-design/beginner/verify.sh +++ b/adventures/04-blind-by-design/beginner/verify.sh @@ -5,8 +5,7 @@ set -euo pipefail SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" # shellcheck disable=SC1091 source "$SCRIPT_DIR/../../../lib/scripts/loader.sh" -# shellcheck disable=SC1091 -source "$SCRIPT_DIR/../../../lib/scripts/tracker-legacy.sh" +set_tracking_context "blind-by-design" "beginner" "04" "05" "2026" OBJECTIVE="By the end of this level, you should: diff --git a/adventures/04-blind-by-design/expert/verify.sh b/adventures/04-blind-by-design/expert/verify.sh index e44a1d6e..ca86c900 100755 --- a/adventures/04-blind-by-design/expert/verify.sh +++ b/adventures/04-blind-by-design/expert/verify.sh @@ -5,6 +5,7 @@ set -euo pipefail SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" # shellcheck disable=SC1091 source "$SCRIPT_DIR/../../../lib/scripts/loader.sh" +set_tracking_context "blind-by-design" "expert" "04" "05" "2026" OBJECTIVE="By the end of this level, the lab hits each of these observable outcomes: @@ -225,6 +226,18 @@ else fi print_new_line +# Build failed checks JSON array +failed_checks_json="[]" +if [[ -n "${FAILED_CHECKS[*]:-}" ]]; then + failed_checks_json=$(printf '%s\n' "${FAILED_CHECKS[@]}" | jq -R . | jq -s .) +fi + +if [[ $TESTS_FAILED -ne 0 ]]; then + track_verification_completed "failed" "$failed_checks_json" +else + track_verification_completed "success" "$failed_checks_json" +fi + check_submission_readiness "04-blind-by-design" "expert" if [[ $TESTS_FAILED -ne 0 ]]; then diff --git a/adventures/04-blind-by-design/intermediate/verify.sh b/adventures/04-blind-by-design/intermediate/verify.sh index 06207bc4..539de382 100755 --- a/adventures/04-blind-by-design/intermediate/verify.sh +++ b/adventures/04-blind-by-design/intermediate/verify.sh @@ -5,8 +5,7 @@ set -euo pipefail SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" # shellcheck disable=SC1091 source "$SCRIPT_DIR/../../../lib/scripts/loader.sh" -# shellcheck disable=SC1091 -source "$SCRIPT_DIR/../../../lib/scripts/tracker-legacy.sh" +set_tracking_context "blind-by-design" "intermediate" "04" "05" "2026" OBJECTIVE="By the end of this level, the lab hits each of these observable outcomes: diff --git a/adventures/dead-reckoning/beginner/backstage/yarn.lock b/adventures/dead-reckoning/beginner/backstage/yarn.lock index f6be1335..0cd216f0 100644 --- a/adventures/dead-reckoning/beginner/backstage/yarn.lock +++ b/adventures/dead-reckoning/beginner/backstage/yarn.lock @@ -5368,21 +5368,21 @@ __metadata: languageName: node linkType: hard -"@protobufjs/codegen@npm:^2.0.4, @protobufjs/codegen@npm:^2.0.5": +"@protobufjs/codegen@npm:^2.0.5": version: 2.0.5 resolution: "@protobufjs/codegen@npm:2.0.5" checksum: 10c0/1b8a2ae56ee60a56e9d205cd4b6072a1503c5069b8ebb905710f974ff0098a0d0700641c137e0a8d98dedf14423156a106a9433695cbf52574810f55000fdcab languageName: node linkType: hard -"@protobufjs/eventemitter@npm:^1.1.0, @protobufjs/eventemitter@npm:^1.1.1": +"@protobufjs/eventemitter@npm:^1.1.1": version: 1.1.1 resolution: "@protobufjs/eventemitter@npm:1.1.1" checksum: 10c0/8e06193d4629c5e7c09d4f8c2ddba8fc4dfa739f0149f33a1d901568d35bb7b8b5277a4e8452baf3bdd0b302fd599cf255d193267aa93a0a4747e23cd073c4ac languageName: node linkType: hard -"@protobufjs/fetch@npm:^1.1.0, @protobufjs/fetch@npm:^1.1.1": +"@protobufjs/fetch@npm:^1.1.1": version: 1.1.1 resolution: "@protobufjs/fetch@npm:1.1.1" dependencies: @@ -5398,13 +5398,6 @@ __metadata: languageName: node linkType: hard -"@protobufjs/inquire@npm:^1.1.0": - version: 1.1.0 - resolution: "@protobufjs/inquire@npm:1.1.0" - checksum: 10c0/64372482efcba1fb4d166a2664a6395fa978b557803857c9c03500e0ac1013eb4b1aacc9ed851dd5fc22f81583670b4f4431bae186f3373fedcfde863ef5921a - languageName: node - linkType: hard - "@protobufjs/path@npm:^1.1.2": version: 1.1.2 resolution: "@protobufjs/path@npm:1.1.2" @@ -5419,7 +5412,7 @@ __metadata: languageName: node linkType: hard -"@protobufjs/utf8@npm:^1.1.0, @protobufjs/utf8@npm:^1.1.1": +"@protobufjs/utf8@npm:^1.1.1": version: 1.1.1 resolution: "@protobufjs/utf8@npm:1.1.1" checksum: 10c0/641fc145f00626405e8984b6e90b9edcbcc072ffc82d0647ca3176e09c730b2d022f988e65f011a7a17e2e4d77cde7733643aa10d8ac2bfa30f134dbcad553fd @@ -18633,27 +18626,7 @@ __metadata: languageName: node linkType: hard -"protobufjs@npm:^7.0.0, protobufjs@npm:^7.2.5, protobufjs@npm:^7.2.6, protobufjs@npm:^7.3.2": - version: 7.5.5 - resolution: "protobufjs@npm:7.5.5" - dependencies: - "@protobufjs/aspromise": "npm:^1.1.2" - "@protobufjs/base64": "npm:^1.1.2" - "@protobufjs/codegen": "npm:^2.0.4" - "@protobufjs/eventemitter": "npm:^1.1.0" - "@protobufjs/fetch": "npm:^1.1.0" - "@protobufjs/float": "npm:^1.0.2" - "@protobufjs/inquire": "npm:^1.1.0" - "@protobufjs/path": "npm:^1.1.2" - "@protobufjs/pool": "npm:^1.1.0" - "@protobufjs/utf8": "npm:^1.1.0" - "@types/node": "npm:>=13.7.0" - long: "npm:^5.0.0" - checksum: 10c0/3d48896a916761e3e60b52f80027eb4fba3f5a6e3f8461e04939db18812db2cb0db4c73d03e1134a960e99525ae1d236f076a0bc01273016f573b76f33ffbd47 - languageName: node - linkType: hard - -"protobufjs@npm:^7.5.5": +"protobufjs@npm:^7.0.0, protobufjs@npm:^7.2.5, protobufjs@npm:^7.2.6, protobufjs@npm:^7.3.2, protobufjs@npm:^7.5.5": version: 7.6.4 resolution: "protobufjs@npm:7.6.4" dependencies: diff --git a/ideas/adventure-accessibility-nightmare.md b/ideas/adventure-accessibility-nightmare.md new file mode 100644 index 00000000..3c604521 --- /dev/null +++ b/ideas/adventure-accessibility-nightmare.md @@ -0,0 +1,122 @@ +# Adventure Idea: ♿ The Accessibility Nightmare + +## Overview + +**Theme:** ShopSmart's e-commerce expansion is blocked by ADA lawsuits and strict European Accessibility Act (EAA) fines. As the lead frontend engineer, your mission is to audit the broken site, build an accessible component library, and automate compliance to save the EU launch and protect the company from millions in fines. + +**Skills:** + +- Audit and remediate critical WCAG 2.2 violations using automated and manual testing tools +- Build and document an accessible component library with proper focus management and ARIA patterns +- Implement automated accessibility gates and performance budgets in CI/CD pipelines to ensure continuous compliance + +**Technologies:** axe-core, Lighthouse, Playwright, Pa11y, NVDA, VoiceOver, React, Storybook, GitHub Actions + +--- + +## Levels + +### 🟢 Beginner: The Initial Audit + +#### Description + +Audit the ShopSmart homepage and fix critical WCAG 2.2 violations to pass the initial legal compliance check. + +#### Story + +The legal notice just landed. The CEO is panicking over the ADA and EAA violations. Your first task is to look at the public-facing homepage, run the automated audits, and fix the glaring issues that are triggering the lawsuit before the regulators escalate. + +#### The Problem + +The homepage is riddled with basic accessibility failures. It currently scores a 45 on Lighthouse. Interactive elements can't be reached via keyboard, images lack alt text, color contrast fails WCAG standards, and focus states are completely hidden, making it impossible for motor-impaired users to navigate. + +#### Objective + +- Run Lighthouse and axe-core to identify and interpret the accessibility violations +- Fix color contrast and missing alt text on all homepage assets +- Ensure all interactive elements are keyboard accessible and have visible Focus Appearance (WCAG 2.4.11) +- Achieve a Lighthouse accessibility score of 95+ with zero critical axe-core violations + +#### What You'll Learn + +- How to interpret automated accessibility reports (Lighthouse, axe-core) +- The fundamentals of WCAG 2.2 perceivable and operable criteria +- How to test and fix basic keyboard navigation and focus states using screen readers + +#### Tools & Infrastructure + +- **Tools:** Lighthouse, axe DevTools, NVDA/VoiceOver, Browser DevTools +- **Infrastructure:** ShopSmart E-commerce Frontend (React/Next.js) + +--- + +### 🟡 Intermediate: The Component Forge + +#### Description + +Build and document an accessible component library in Storybook to ensure all future features are built correctly from the start. + +#### Story + +The homepage is fixed, but the rest of the checkout flow is a disaster. The design team keeps using broken, inaccessible patterns, and developers are reinventing the wheel—and breaking accessibility in the process. You need to build a standardized, accessible component library so the team can stop making the same mistakes. + +#### The Problem + +The current UI kit lacks focus management, uses incorrect ARIA roles, and has no automated testing. Modals trap focus incorrectly, dropdowns aren't navigable by screen readers, and forms lack proper error announcements. Every time a developer builds a new feature, they introduce new accessibility bugs. + +#### Objective + +- Build accessible Modal, Dropdown, and Form components in Storybook +- Implement strict focus trapping in modals and correct ARIA live regions for form errors +- Ensure 100% keyboard navigability and correct screen reader announcements for all components +- Write Playwright accessibility tests for each component to prevent future regressions + +#### What You'll Learn + +- How to implement complex ARIA patterns (dialogs, menus, live regions) +- How to manage focus programmatically and prevent keyboard traps +- How to write automated E2E accessibility tests using Playwright + +#### Tools & Infrastructure + +- **Tools:** Storybook, Playwright, axe-core, NVDA/VoiceOver +- **Infrastructure:** Component Library Repository, ShopSmart Frontend + +--- + +### 🔴 Expert: The Compliance Engine + +#### Description + +Integrate automated accessibility gates into the CI/CD pipeline and build a monitoring dashboard to uncover hidden regressions and ensure long-term EAA/ADA compliance. + +#### Story + +The components are ready, but developers are still bypassing them, and new PRs are introducing regressions. The legal team needs proof of continuous compliance for the EAA audit next week. You must build an automated compliance engine that blocks bad code before it merges, but when you turn it on, it's not catching the issues the lawyers are complaining about. Dig into the pipeline and the production telemetry to find out what's slipping through. + +#### The Problem + +Two things are broken before compliance can be proven. First, the CI pipeline's accessibility checks are running too early in the build process, before dynamic client-side content is rendered, so they miss critical violations in the checkout flow. Second, even when fixed to run post-render, the pipeline only checks static pages; it doesn't catch regressions in user-specific flows. + +With proper Playwright E2E accessibility tests finally integrated and running against the fully rendered app, the root cause of the legal complaint becomes clear: a third-party payment widget is injecting inaccessible iframes that break the keyboard flow, which static audits missed. You must implement Real User Monitoring (RUM) to catch these dynamic, third-party regressions in production. + +#### Objective + +- Fix the GitHub Actions pipeline so accessibility checks run against the fully rendered application, not just the static HTML +- Implement an accessibility performance budget that fails the build if the Lighthouse score drops below 95 or if new axe-core violations are introduced +- Configure Playwright to test complex, multi-step user flows (like checkout) for accessibility +- Set up Real User Monitoring (RUM) to track accessibility metrics and third-party widget failures in production +- Generate an automated compliance report for the legal team proving EAA/ADA adherence + +#### What You'll Learn + +- How to integrate accessibility testing into CI/CD pipelines as a hard, post-render gate +- How to set and enforce accessibility performance budgets +- How to test complex, multi-step user flows for accessibility using Playwright +- How to monitor accessibility in production using Real User Monitoring (RUM) to catch dynamic and third-party regressions +- How to translate technical accessibility metrics into legal compliance reports + +#### Tools & Infrastructure + +- **Tools:** GitHub Actions, Playwright, Pa11y, Lighthouse CI, OpenTelemetry, Grafana +- **Infrastructure:** CI/CD Pipeline, Production E-commerce Environment, Monitoring Stack diff --git a/lib/scripts/output.sh b/lib/scripts/output.sh index 223293b3..8709b36d 100644 --- a/lib/scripts/output.sh +++ b/lib/scripts/output.sh @@ -97,7 +97,7 @@ print_test_summary() { if [[ $TESTS_FAILED -eq 0 ]]; then # Track success - track_smoketest_completed "success" "$failed_checks_json" + track_verification_completed "success" "$failed_checks_json" # test succeeded print_success "✅ PASSED: All $TESTS_PASSED checks passed" @@ -115,7 +115,7 @@ print_test_summary() { fi # Track failure - track_smoketest_completed "failed" "$failed_checks_json" + track_verification_completed "failed" "$failed_checks_json" # test failed print_error "❌ FAILED: $TESTS_FAILED check(s) failed, $TESTS_PASSED passed" diff --git a/lib/scripts/tracker-legacy.sh b/lib/scripts/tracker-legacy.sh deleted file mode 100644 index 35513a0f..00000000 --- a/lib/scripts/tracker-legacy.sh +++ /dev/null @@ -1,107 +0,0 @@ -#!/usr/bin/env bash -# DEPRECATED - used by adventures 01-04 only. New adventures use tracker.sh. -# tracker-legacy.sh - Sends bizevents to the old AWS Lambda codespace-tracker - -# Load tracking context from rc file (set by set_tracking_context) -# shellcheck disable=SC1090 -[[ -f ~/.bashrc ]] && source ~/.bashrc - -TRACKER_URL="https://grzxx1q7wd.execute-api.us-east-1.amazonaws.com/default/codespace-tracker" -EVENT_TYPE="open-ecosystem-challenges" - -# ----------------------------------------------------------------------------- -# Set tracking context (persists to rc files for all scripts) -# Usage: set_tracking_context "02-building-cloudhaven" "beginner" -# ----------------------------------------------------------------------------- -set_tracking_context() { - local adventure=$1 - local level=$2 - - export ADVENTURE="$adventure" - export LEVEL="$level" - - echo "export ADVENTURE=\"$adventure\"" >> ~/.bashrc - echo "export ADVENTURE=\"$adventure\"" >> ~/.zshrc - echo "export LEVEL=\"$level\"" >> ~/.bashrc - echo "export LEVEL=\"$level\"" >> ~/.zshrc -} - -# ----------------------------------------------------------------------------- -# Send an event to Dynatrace -# Usage: send_event "event.action" '{"extra": "fields"}' -# ----------------------------------------------------------------------------- -send_event() { - local action=$1 - local extra_fields=${2:-"{}"} - - # Build the payload using jq for proper JSON handling - local payload - payload=$(jq -n \ - --arg event_type "$EVENT_TYPE" \ - --arg action "$action" \ - --arg adventure "${ADVENTURE:-unknown}" \ - --arg level "${LEVEL:-unknown}" \ - --arg github_user "${GITHUB_USER:-unknown}" \ - --arg github_repo "${GITHUB_REPOSITORY:-unknown}" \ - --arg codespace_id "${CODESPACE_NAME:-local}" \ - --argjson extra "$extra_fields" \ - '{ - "type": $event_type, - "action": $action, - "adventure": $adventure, - "level": $level, - "github.user": $github_user, - "github.repo": $github_repo, - "codespace.id": $codespace_id - } + $extra' - ) - - # Send to tracker API (silent, don't fail the script) - curl -sS -X POST "$TRACKER_URL" \ - -H "Content-Type: application/json" \ - -d "$payload" \ - >/dev/null 2>&1 || true -} - -# ----------------------------------------------------------------------------- -# Event: codespace.created -# Send when codespace starts provisioning (post-create.sh) -# ----------------------------------------------------------------------------- -track_codespace_created() { - send_event "codespace.created" -} - -# ----------------------------------------------------------------------------- -# Event: codespace.initialized -# Send when environment is ready (post-start.sh) -# ----------------------------------------------------------------------------- -track_codespace_initialized() { - send_event "codespace.initialized" -} - -# ----------------------------------------------------------------------------- -# Event: smoketest.completed -# Send when smoke test finishes -# Usage: track_smoketest_completed "success" '["check1","check2"]' -# ----------------------------------------------------------------------------- -track_smoketest_completed() { - local status=$1 - local failed_checks=${2:-"[]"} - - send_event "smoketest.completed" "$(jq -n \ - --arg status "$status" \ - --argjson failed_checks "$failed_checks" \ - '{status: $status, failed_checks: $failed_checks}' - )" -} - -track_verification_completed() { - local status=$1 - local failed_checks=${2:-"[]"} - - send_event "verification.completed" "$(jq -n \ - --arg status "$status" \ - --argjson failed_checks "$failed_checks" \ - '{status: $status, failed_checks: $failed_checks}' - )" -}