Skip to content

chore(governance): auto-seed org templates from Quantum-L9/.github - #177

Closed
cryptoxdog wants to merge 1 commit into
mainfrom
chore/auto-seed-governance
Closed

chore(governance): auto-seed org templates from Quantum-L9/.github#177
cryptoxdog wants to merge 1 commit into
mainfrom
chore/auto-seed-governance

Conversation

@cryptoxdog

Copy link
Copy Markdown
Collaborator

Automatically seeds org template files from Quantum-L9/.github/templates/ plus the l9-ci-pack/ Core hub.

Files in this PR

  • .github/workflows/governance.yml
  • .github/labels.yml
  • CODE_OF_CONDUCT.md
  • CONTRIBUTING.md
  • SECURITY.md
  • SUPPORT.md
  • .github/FUNDING.yml
  • .github/ISSUE_TEMPLATE/1-bug.yml
  • .github/ISSUE_TEMPLATE/2-feature.yml
  • .github/ISSUE_TEMPLATE/3-task.yml
  • .github/ISSUE_TEMPLATE/4-incident.yml
  • .github/ISSUE_TEMPLATE/ci-failure.yml
  • .github/ISSUE_TEMPLATE/config.yml
  • .github/ISSUE_TEMPLATE/gov-violation.yml
  • .github/pull_request_template.md
  • .github/workflows/on-org-update.yml
  • .github/workflows/l9-analysis.yml
  • .github/workflows/l9-lint-test-node.yml
  • .github/workflows/l9-lint-test.yml
  • .github/governance/execution-profiles.yaml
  • .github/governance/promotion-policy.yaml
  • .github/governance/provider-requiredness.yaml
  • .github/governance/quality-thresholds.yaml
  • .github/governance/rule-modes.yaml
  • .github/governance/waivers.yaml
  • biome.json
  • .biomeignore
  • .vscode/extensions.json

Existing files were left untouched (missing-only seed), except a stock ESLint l9-lint-test-node.yml which is replaced with the Biome SDK caller.
Governance caller is advisory (strict defaults false).
Core pack callers are distributed here; l9-ci-core executes CI.

Opened automatically by Quantum-L9/.github auto-seed.

@github-actions

Copy link
Copy Markdown

PR Size Report

Metric Value Limit
Lines changed 1693 1000
Files changed 28 50
Additions +1693 -
Deletions -0 -

BLOCKED: PR exceeds 1000 lines changed

Best Practices for Large Changes

  1. Refactoring + Features: Separate into 2 PRs
  2. Multiple Features: One PR per feature
  3. Database + Code: Separate migration from logic
  4. Generated Code: Separate from manual changes

This PR is blocked from merging until size limits are met.

workflow_dispatch:

permissions:
contents: write

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Acknowledged — not actioned this cycle

Ownership is CI_PIPELINE. l9-pr-remediation repairs codebase only and does not edit .github/workflows/**.

This PR remains unmerged until a human decides whether org-seeded workflows belong in this Python engine repo.

Tracking: Converge status for #177

uses: Quantum-L9/l9-ci-core/.github/workflows/publish-analysis.yml@f88116503430aa18992b70d8d31063e34ff97ef1
permissions:
actions: read
checks: write

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Acknowledged — not actioned this cycle

Ownership is CI_PIPELINE. l9-pr-remediation repairs codebase only and does not edit .github/workflows/**.

This PR remains unmerged until a human decides whether org-seeded workflows belong in this Python engine repo.

Tracking: Converge status for #177

@@ -0,0 +1,33 @@
# Managed by Quantum-L9/.github. Pinned to a tag so main can move safely.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Acknowledged — not actioned this cycle

Ownership is CI_PIPELINE. l9-pr-remediation repairs codebase only and does not edit .github/workflows/**.

This PR remains unmerged until a human decides whether org-seeded workflows belong in this Python engine repo.

Tracking: Converge status for #177

command -v pytest >/dev/null 2>&1 || pip install pytest
python -c "import pytest_cov" 2>/dev/null || pip install pytest-cov
python -c "import xdist" 2>/dev/null || pip install pytest-xdist
python -c "import pytest_timeout" 2>/dev/null || pip install pytest-timeout

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Acknowledged — not actioned this cycle

Ownership is CI_PIPELINE. l9-pr-remediation repairs codebase only and does not edit .github/workflows/**.

This PR remains unmerged until a human decides whether org-seeded workflows belong in this Python engine repo.

Tracking: Converge status for #177

echo "::notice::no local editable package to install"
command -v pytest >/dev/null 2>&1 || pip install pytest
python -c "import pytest_cov" 2>/dev/null || pip install pytest-cov
python -c "import xdist" 2>/dev/null || pip install pytest-xdist

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Acknowledged — not actioned this cycle

Ownership is CI_PIPELINE. l9-pr-remediation repairs codebase only and does not edit .github/workflows/**.

This PR remains unmerged until a human decides whether org-seeded workflows belong in this Python engine repo.

Tracking: Converge status for #177

run: |
set -euo pipefail
case "${PACKAGE_MANAGER}" in
npm) if [ -f package-lock.json ]; then npm ci; else npm install; fi ;;

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Acknowledged — not actioned this cycle

Ownership is CI_PIPELINE. l9-pr-remediation repairs codebase only and does not edit .github/workflows/**.

This PR remains unmerged until a human decides whether org-seeded workflows belong in this Python engine repo.

Tracking: Converge status for #177

run: |
set -euo pipefail
case "${PACKAGE_MANAGER}" in
npm) if [ -f package-lock.json ]; then npm ci; else npm install; fi ;;

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Acknowledged — not actioned this cycle

Ownership is CI_PIPELINE. l9-pr-remediation repairs codebase only and does not edit .github/workflows/**.

This PR remains unmerged until a human decides whether org-seeded workflows belong in this Python engine repo.

Tracking: Converge status for #177

jobs:
pr:
if: github.event_name == 'pull_request'
uses: Quantum-L9/.github/.github/workflows/governance-pr.yml@v1

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Acknowledged — not actioned this cycle

Ownership is CI_PIPELINE. l9-pr-remediation repairs codebase only and does not edit .github/workflows/**.

This PR remains unmerged until a human decides whether org-seeded workflows belong in this Python engine repo.

Tracking: Converge status for #177

if: steps.gov.outputs.enabled == 'true'
run: |
set -euo pipefail
python -m pip install --upgrade pip semgrep

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Acknowledged — not actioned this cycle

Ownership is CI_PIPELINE. l9-pr-remediation repairs codebase only and does not edit .github/workflows/**.

This PR remains unmerged until a human decides whether org-seeded workflows belong in this Python engine repo.

Tracking: Converge status for #177


issue:
if: github.event_name == 'issues'
uses: Quantum-L9/.github/.github/workflows/governance-issue.yml@v1

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Acknowledged — not actioned this cycle

Ownership is CI_PIPELINE. l9-pr-remediation repairs codebase only and does not edit .github/workflows/**.

This PR remains unmerged until a human decides whether org-seeded workflows belong in this Python engine repo.

Tracking: Converge status for #177

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0714c83905

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

run: |
set -euo pipefail
python -m pip install --upgrade pip
if [ -f requirements-ci.txt ]; then pip install -r requirements-ci.txt; fi

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Authenticate before installing the private SDK

On a clean GitHub-hosted runner, this command installs requirements-ci.txt, which fetches the private Quantum-L9/Gate_SDK Git dependency, but neither this job nor the identical lint installation configures secrets.SDK_TOKEN as the existing ci.yml and pr-pipeline.yml jobs do. Consequently both new Python jobs fail during dependency installation before linting or tests can run; configure authenticated Git access before either install.

AGENTS.md reference: AGENTS.md:L321-L322

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Acknowledged — not actioned this cycle

Ownership is CI_PIPELINE. l9-pr-remediation repairs codebase only and does not edit .github/workflows/**.

This PR remains unmerged until a human decides whether org-seeded workflows belong in this Python engine repo.

Tracking: Converge status for #177

Comment on lines +77 to +81
- name: Set up Node
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
with:
node-version: ${{ env.NODE_VERSION }}
cache: ${{ env.PACKAGE_MANAGER }}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Disable the Node workflow in this Python repository

The reviewed tree contains no package.json, package-manager lockfile, or tsconfig.json, yet this workflow runs two Node jobs on every pull request and enables npm caching in both. setup-node derives its cache key from dependency lockfiles and searches the repository root when cache-dependency-path is omitted, so these jobs fail while resolving the nonexistent npm dependency file before the later test/typecheck guards can skip (setup-node caching documentation); remove this unactivated Node template or gate the entire workflow on a Node manifest.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Acknowledged — not actioned this cycle

Ownership is CI_PIPELINE. l9-pr-remediation repairs codebase only and does not edit .github/workflows/**.

This PR remains unmerged until a human decides whether org-seeded workflows belong in this Python engine repo.

Tracking: Converge status for #177

Comment on lines +121 to +122
PYTHONPATH=. pytest "${TEST_DIR}" \
-n auto \

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Apply the quarantine ledger in the new test job

This invocation runs the entire tests/ tree without the deselections generated by tools/pytest_quarantine_deselects.py, even though .l9/baselines/test-quarantine.yml records numerous currently failing tests. The existing ci.yml and pr-pipeline.yml jobs explicitly pass those deselections, so after dependency setup is repaired this added required-looking PR job will still fail every run on acknowledged baseline debt; construct and pass the same quarantine arguments here.

AGENTS.md reference: AGENTS.md:L347-L350

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Acknowledged — not actioned this cycle

Ownership is CI_PIPELINE. l9-pr-remediation repairs codebase only and does not edit .github/workflows/**.

This PR remains unmerged until a human decides whether org-seeded workflows belong in this Python engine repo.

Tracking: Converge status for #177

Comment on lines +29 to +30
# Fail the build below this line coverage percentage. 0 = advisory (no gate).
COVERAGE_THRESHOLD: "0"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Restore the 60% coverage threshold

CONTRACT C-15 VIOLATION — Coverage must remain at least 60%. This new pull-request workflow is configured with COVERAGE_THRESHOLD: "0", making its advertised test gate advisory and allowing the workflow to pass with arbitrarily low coverage if it replaces the old pipeline as its header describes; set the threshold to at least 60 rather than disabling it.

AGENTS.md reference: AGENTS.md:L175-L175

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Acknowledged — not actioned this cycle

Ownership is CI_PIPELINE. l9-pr-remediation repairs codebase only and does not edit .github/workflows/**.

This PR remains unmerged until a human decides whether org-seeded workflows belong in this Python engine repo.

Tracking: Converge status for #177

Comment on lines +29 to +33
if [ -f scripts/sync_ci_from_pack.py ]; then
python scripts/sync_ci_from_pack.py
else
echo "::notice::No sync_ci_from_pack.py found — skipping"
exit 0

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Provide the sync implementation before enabling dispatch

A repository-wide tree search at the reviewed commit finds no scripts/sync_ci_from_pack.py, so every org_template_updated dispatch takes this branch, exits successfully, and never synchronizes or opens a PR. This makes the newly advertised automatic org-template synchronization completely inert; seed the implementation with the receiver or invoke an available reusable action instead of silently skipping.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Acknowledged — not actioned this cycle

Ownership is CI_PIPELINE. l9-pr-remediation repairs codebase only and does not edit .github/workflows/**.

This PR remains unmerged until a human decides whether org-seeded workflows belong in this Python engine repo.

Tracking: Converge status for #177

@@ -0,0 +1,200 @@
# L9 analysis caller (TEMPLATE — copy into your repo at .github/workflows/l9-analysis.yml)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Add L9_META headers to the seeded templates

CONTRACT C-20 VIOLATION — Template-managed files require an L9_META header. This workflow explicitly identifies itself as a template, but it and the other 27 seeded files contain no L9_META block, so the governance seed immediately introduces unmanaged template artifacts; add valid headers while generating the files.

AGENTS.md reference: AGENTS.md:L180-L180

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Acknowledged — not actioned this cycle

Ownership is CI_PIPELINE. l9-pr-remediation repairs codebase only and does not edit .github/workflows/**.

This PR remains unmerged until a human decides whether org-seeded workflows belong in this Python engine repo.

Tracking: Converge status for #177

@cryptoxdog
cryptoxdog force-pushed the chore/auto-seed-governance branch 3 times, most recently from d3772ba to 306af94 Compare August 21, 2026 17:56
cryptoxdog added a commit that referenced this pull request Aug 21, 2026
Remediation-Cycle: #177/cycle-1
Co-authored-by: Cursor <cursoragent@cursor.com>
cryptoxdog added a commit that referenced this pull request Aug 21, 2026
Remediation-Cycle: #177/cycle-2
Co-authored-by: Cursor <cursoragent@cursor.com>
@cryptoxdog

Copy link
Copy Markdown
Collaborator Author

Remediation cycle-1 (040827b)

CODEBASE: seeded CONTRIBUTING.md relative links now point at Quantum-L9/.github (docs-consistency). Trailing whitespace trimmed in CODE_OF_CONDUCT.md.

CI_PIPELINE: 26 Scorecard/Codex threads on seeded workflows — acknowledged, not edited. This PR stays unmerged.

@github-actions

Copy link
Copy Markdown

PR Pipeline Gate Summary

Phase Status
validate ✅ success
lint ✅ success
semgrep ✅ success
test ✅ success
security ✅ success
compliance ✅ success
l9 ✅ success
docs ✅ success

✅ All checks passed

Ready for code review and merge.

Local equivalent: make pr · Job: 32512654823

@cryptoxdog
cryptoxdog force-pushed the chore/auto-seed-governance branch 10 times, most recently from 6da11d3 to d7e9633 Compare August 21, 2026 22:24
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Install consumer CI toolchain
uses: Quantum-L9/l9-ci-core/.github/actions/install-consumer-ci@v2
- name: Install extra CI requirements
run: |
set -euo pipefail
if [ -f requirements-ci.txt ]; then pip install -r requirements-ci.txt; fi
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Install consumer CI toolchain
uses: Quantum-L9/l9-ci-core/.github/actions/install-consumer-ci@v2
run: |
set -euo pipefail
if [ -f requirements-ci.txt ]; then pip install -r requirements-ci.txt; fi
pip install -e ".[dev]" || pip install -e . || \
run: |
set -euo pipefail
if [ -f requirements-ci.txt ]; then pip install -r requirements-ci.txt; fi
pip install -e ".[dev]" || pip install -e . || \
@cryptoxdog
cryptoxdog force-pushed the chore/auto-seed-governance branch 9 times, most recently from 51f6f07 to 85cf5c6 Compare August 22, 2026 04:28
@cryptoxdog
cryptoxdog force-pushed the chore/auto-seed-governance branch 26 times, most recently from 018162c to 82d5ae9 Compare August 22, 2026 20:18
@cryptoxdog
cryptoxdog force-pushed the chore/auto-seed-governance branch from 82d5ae9 to f9ba483 Compare August 22, 2026 21:15
@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
C Security Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

@cryptoxdog cryptoxdog closed this Aug 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants