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
| Trigger | Configuración |
|---|---|
schedule | cron: "30 0 * * *" — 00:30 UTC diario |
workflow_dispatch | Ejecució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
| Step | Action / Comando |
|---|---|
| Checkout workspace | actions/checkout@v6 (fetch-depth: 1) |
| Setup SSH agent | webfactory/ssh-agent@v0.9.0 con CLAUDE_METHOD_DEPLOY_KEY |
| Clone claude-method | git clone --depth 1 git@github.com:CreaRackSL/claude-method.git external/claude-method |
| Setup Node | actions/setup-node@v6 (Node 20) |
| Run extractor | node scripts/bib_ingest_claude_method.mjs --push --stats --root external/claude-method |
Secretos requeridos
| Secret | Descripción | Registrado en |
|---|---|---|
CLAUDE_METHOD_DEPLOY_KEY | SSH private key read-only | CreaRackSL/claude-method/settings/keys (pubkey) |
MCP_TOKEN | Bearer token endpoint MCP Bibliotecario | Workspace secrets |
CF_ACCESS_CLIENT_ID | Cloudflare Access | Workspace secrets |
CF_ACCESS_CLIENT_SECRET | Cloudflare Access | Workspace secrets |
⚠️
CLAUDE_METHOD_DEPLOY_KEYes 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]]