CreaRack-SL

Workflow CI · bib-reindex-claude-method — Re-indexación diaria de claude-method

Workflow CI · bib-reindex-claude-method

Ruta: .github/workflows/bib-reindex-claude-method.yml
Nombre: Bibliotecario-Reindex-ClaudeMethod
Propósito: Clonar el repositorio privado CreaRackSL/claude-method e indexar sus 49 docs .md en el corpus del Bibliotecario mediante bib_ingest_claude_method.mjs.

Triggers

TriggerConfiguración
schedulecron: "30 0 * * *" — 00:30 UTC diario
workflow_dispatchEjecución manual desde GitHub Actions UI

El horario 00:30 UTC está coordinado intencionalmente:

  • 00:15 — bib-reindex-ts (TypeScript AST indexer)
  • 00:30 — este workflow
  • Cada 6h — bib_ast.py (Python, Hetzner)

Concurrencia

concurrency:
  group: bib-reindex-claude-method-${{ github.ref }}
  cancel-in-progress: true

Solo una instancia simultánea por ref. Ejecuciones solapadas se cancelan.

Job: reindex

Runner: ubuntu-latest
Timeout: 10 minutos

Condición de ejecución

if: ${{ vars.BIBLIOTECARIO_PAUSADO != 'true' }}

Toggle global compartido con Curator, Lint, Utility Score, Drift-check y TS indexer. Para pausar todos los crons del Bibliotecario:

gh variable set BIBLIOTECARIO_PAUSADO --body true --repo CreaRackSL/CreaRackSL-workspace

Permisos

permissions:
  contents: read

Mínimo necesario — solo lectura del workspace.

Steps

StepAction / Comando
Checkout workspaceactions/checkout@v6 (fetch-depth: 1)
Setup SSH agentwebfactory/ssh-agent@v0.9.0 con CLAUDE_METHOD_DEPLOY_KEY
Clone claude-methodgit clone --depth 1 git@github.com:CreaRackSL/claude-method.git external/claude-method
Setup Nodeactions/setup-node@v6 (Node 20)
Run extractornode scripts/bib_ingest_claude_method.mjs --push --stats --root external/claude-method

Secretos requeridos

SecretDescripciónRegistrado en
CLAUDE_METHOD_DEPLOY_KEYSSH private key read-onlyCreaRackSL/claude-method/settings/keys (pubkey)
MCP_TOKENBearer token endpoint MCP BibliotecarioWorkspace secrets
CF_ACCESS_CLIENT_IDCloudflare AccessWorkspace secrets
CF_ACCESS_CLIENT_SECRETCloudflare AccessWorkspace secrets

⚠️ CLAUDE_METHOD_DEPLOY_KEY es un deploy key SSH dedicado exclusivamente a este workflow. No reutilizar para otros fines.

Nota de diseño

El repo claude-method es externo al workspace — no hay push trigger porque sus commits no tocan este repositorio. El cron diario garantiza que el corpus del Bibliotecario se mantenga fresco con un lag máximo de 24h.

Véase también

  • [[feature—oraculo—fase2-claude-method]]
  • [[entity—scripts—service—bib-ingest-claude-method]]