Imported from Vishwa-docs/Slash (
AGENTS.md). Install upstream withnpx skills add Vishwa-docs/Slash. Copyright stays with the author.
Slash — Repository Operating Contract
Mission
Ship Slash, a Track 02A (Supply Chain Blast Radius) submission for Hack Hydra 2026. It ingests an npm-style dependency ecosystem into HydraDB and answers, in real time: which internal services are transitively exposed by a compromised package, which apps resolved the bad version while it was live, which packages share maintainers / infrastructure, which nearby names are likely typosquats, and what the complete blast radius is — with correct, first-class abstention when the data isn't there.
Everything below is written for the small-context coding agent. Read AGENTS.md fully once (it is short), then follow the task packet exactly. Do not scan the whole repo.
Source Of Truth
README.md— project overview, architecture, and quickstart.DESIGN.md— UI design tokens and visual system.docs/architecture/hydradb-notes.md— verified facts about HydraDB's API surface.docs/reference/hack-hydra-participant-guide.txt— the official rules (read once, skim).AGENTS.md— this contract.- Existing implementation + tests.
Stop and report conflicts. Do not silently choose between documentation and the code.
Context Diet (very important for a small context window)
Do not read these unless a phase tells you to:
- The HydraDB Rust source:
hydradb/(parent directory) is 156 tracked files. Only read the files a phase points you at (hydradb/README.mdGetting Started,hydradb/cypher-compat.md,hydradb/scripts/runtime_smoke.sh). Everything else — query engine internals, GraphBLAS, SlateDB, placement — you do not need. docs/research/hydradb-context-graph/GRAPH_REPORT.md— you may read the "God Nodes" + "Communities" sections as a map of where things live; do not read it line by line.docs/reference/strategy-analysis.mdandagentic-software-factory-brief.md— reference only. Read them only when a phase explicitly requests context from them.
When in doubt about HydraDB behavior, prefer empirical verification (run a query against the live container) over reading source.
Required Workflow
- Map affected files, queries, data, contracts, tests, and docs for your task.
- Search for existing reusable behavior in
src/andscripts/before adding code. - State a small file-by-file plan before editing.
- Implement one reviewable vertical slice. Keep the diff small.
- Run the required checks and save command output under
.evidence/runs/. - Review your diff: no unnecessary code, no duplication, no drift from DESIGN.md.
- Append to
CHANGELOG.mdand update.state/task-graph.json.
Commands (intended, fill in as the project is built)
- Setup:
python3 -m venv .venv && source .venv/bin/activate && pip install -r requirements.txt - Format:
ruff format .· Lint:ruff check . - Type-check:
mypy src(if added to requirements) · Unit tests:pytest tests/unit -q - Integration tests:
pytest tests/integration -q(requires HydraDB running) - HydraDB up:
docker run --rm -d --name slash-hydra ...(exact flags:src/infra/hydradb-up.sh) - Ingest:
python scripts/ingest.py - Eval:
python scripts/eval.py - App:
python scripts/serve.py - Local run: see
docs/operations/service.md
Constraints
- No invented APIs, packages, files, commands, or environment variables. If HydraDB rejects a
query, adjust the query to the documented subset in
hydradb/cypher-compat.md; never fake a result. - No dependency addition without approval and a
.capabilities/registry.yamlupdate. - No skipped, weakened, or deleted tests to get a passing build.
- No unrelated refactoring; no speculative abstractions; no duplicate implementation.
- No secrets or production data in prompts, code, fixtures, logs, screenshots, or traces.
- Preserve the DESIGN.md visual system when building UI. Keep the product working without an LLM API key (deterministic fallbacks every place an LLM is optional).
- Abstention is a feature: when the graph lacks the evidence, the product must say so — never invent.
Stop Conditions
Stop and reopen design when:
- a query the product depends on is unsupported by HydraDB and no documented equivalent exists;
- a public contract (schema, README guarantees) must change;
- a new external service / API key / network dependency would be required beyond the plan;
- the expected diff substantially exceeds the phase estimate;
- HydraDB stops responding and the runbook (
docs/operations/service.md) does not cover recovery.
Completion
Never claim completion without fresh verification evidence stored under .evidence/runs/.