name: repo-c-mass-index-ops
description: Run shard-first mass-index operations for governance lanes. Use when scanning policy schemas, ranking/trace contracts, and trust-layer boundaries in very large trees where scope partitioning is required.
REPO_C Mass Index Ops
Use this wrapper for governance-heavy discovery in very large <PRIVATE_REPO_C> repositories.
Governance Scan Sequence
- Build or refresh sharded index data with bounded budgets.
- Query policy and trust envelopes first, then narrow to contract files.
- Escalate to
safe-mass-index-coreonly for custom envelopes outside governance lanes.
Repo-C Anchors
Prioritize these governance contract anchors during triage:
policies/repo-c_policy.yamlpolicies/device_policy.jsonschemas/ranking_report.schema.jsontools/trace_validate.pyrepo_c_tracetrust_anchoremotion_ttl
Scope Boundary
Use this skill when the task is primarily about:
- Policy and schema contract surfaces.
- Trace/ranking packet contracts and validation tools.
- Cross-domain governance boundaries.
Do not use this skill for:
- Runtime connector incident scans.
- Electron/UI package scans.
Build Preset (Sharded Governance)
Run from <PRIVATE_REPO_C> root:
python3 "$CODEX_HOME/skills/safe-mass-index-core/scripts/index_build.py" \
--repo-root . \
--index-dir .codex-index \
--mode incremental \
--max-files-per-run 14000 \
--max-seconds 30 \
--max-read-bytes 67108864 \
--sharded \
--json-out .codex-index/run.json
Query Presets (Governance First)
Policy and schema scope:
python3 "$CODEX_HOME/skills/safe-mass-index-core/scripts/index_query.py" \
--index-dir .codex-index \
--scope policy \
--lang json \
--limit 220 \
--format table
Trace and ranking contract scope:
python3 "$CODEX_HOME/skills/safe-mass-index-core/scripts/index_query.py" \
--index-dir .codex-index \
--scope trace \
--path-contains trust_anchor \
--path-contains contract \
--lang python \
--limit 220 \
--format table
Reference
references/presets.md
Loopback
If a run is still ambiguous, pass shard settings, scope filters, and .codex-index/run.json evidence to $skill-hub for deterministic rerouting.