Built with Kiro
Kiro usage
How Kiro IDE was used to build Arachne — specs, steering, hooks, and MCP.
Arachne was built in Kiro IDE for the Kiroween 2026 hackathon. Everything Kiro read to guide the work lives in the
repository under .kiro/: three specs, four steering files and four hooks.
Arachne built in Kiro IDE#
The pipeline, the test suite, this documentation site and the Hollowmere landing page were all built inside Kiro. The
working loop was the same each time: write the behaviour down in a spec, let Kiro implement it together with its tests and
docs, then verify with make test. Steering files kept Kiro's context stable between sessions, and hooks ran the
linter, the security check and the tests without anyone asking.
| Kiro feature | Where it lives | What it did for Arachne |
|---|---|---|
| Specs | .kiro/specs/ | Requirements and task lists for the pipeline, the MCP server and the landing page. |
| Steering | .kiro/steering/ | Standing project knowledge and security rules, loaded in four different ways. |
| Hooks | .kiro/hooks/ | Lint on save, security review before writes, tests after tasks, SAST at session start. |
| MCP | remediation/mcp/ | The Arachne MCP server, built from its spec. |
Specs#
Each spec has numbered requirements and a checkbox task list; tasks are ticked as they land. Open tasks are left unticked.
| Spec | What it contains | What it produced |
|---|---|---|
vulnerability-remediation-pipeline.md |
Requirements R1–R8: advisory ingestion, deterministic resolver (lowest safe version, 7-day cooldown, major bumps stop at needs_approval), patcher, the five gates and their six outcomes, generated smoke tests, the tool-free LLM fixer behind EditGate, evidence bundle and PR, run outcomes. |
The resolver, patchers, gates, fixer and PR writer, and the 46-case testbed. Open tasks: property-based tests (Task 8), PHP/Composer to Tier 1, a Gradle adapter. |
mcp-server.md |
OAuth 2.1 bearer auth with aud=MCP, the contract for eight tools, the JSON and error envelope, per-tenant rate limits. |
The MCP server and its docs pages. Open task: integration tests with a real MCP client. |
halloween-landing.md |
Hollowmere: five scenes joined by four seam bands, every animation parameter, responsive and reduced-motion rules. | The animated landing page: five illustrated scenes, falls and particle canvases, sprites, parallax and eased scrolling. It is now the default site at /, retargeted to Arachne and kept alongside the live threat feed, plans and sign-in. |
The pipeline spec is the one that mattered most. A sentence such as "pick a safe version" is vague; "the lowest version that
satisfies every advisory at once, respects the cooldown and stops at needs_approval on a major bump" is testable, and
each clause became a test.
Steering#
Four files, each with a different inclusion mode set in its front matter.
| File | Inclusion | Holds |
|---|---|---|
project-overview.md | always | Purpose, architecture, key directories, language tiers, dev commands, code conventions. |
security-constraints.md | auto (by description: pipeline, fixer, sandbox, SCM, credentials) | No credentials in the sandbox, the fixer has no tools, EditGate filters all output, the audit log is append-only, SSRF rules for outbound calls. |
testing-standards.md | auto (by description: writing tests, gates, ecosystems) | Hermetic tests with no network, fixture layout, an outcome test per gate, guidance on property-based tests, CI rules. |
landing-page.md | fileMatch on remediation-framework/src/remediation/api/web/** | Design tokens, theme system, asset stamping, the docs-site build, the Halloween theme. |
Biggest impact: security-constraints.md. Because it loads whenever pipeline or SCM code is in play, the token-handling and
SSRF rules were applied while code was being written instead of found afterwards in review.
Hooks#
| Hook | Trigger | Action |
|---|---|---|
lint-on-save | PostFileSave on *.py | Runs ruff check (E, W, F) over the source tree. |
security-review | PreToolUse on file writes | An agent checks the pending edit against the security constraints: no secrets, no EditGate or sandbox bypass, no tools for the fixer, no audit-table changes, no SSRF vectors. |
test-after-task | PostTaskExec | Runs the whole pytest suite and shows the tail. Regressions surfaced within seconds of the task that caused them. |
sast-on-session-start | SessionStart | Runs bandit at medium severity and above and shows the summary before any new code is written. |
MCP#
The Arachne MCP server was specified in mcp-server.md and built from that contract. Because every tool's input and output
was written down first, the user-facing tools reference is essentially the spec in prose.
| Tool | Use |
|---|---|
advisories_latest, advisories_search, advisory_explain | Read the live advisory data, including EPSS and KEV. |
repos_affected | Which connected repositories have an advisory in their installed tree. |
propose_version | The lowest safe version the resolver would pick. |
fix_submit, job_status, pr_open | Start a fix job, follow its gates, open the pull request. Submitting and opening need the approval scope, and a human still approves in the app. |
In practice an assistant can answer "is my Flask version vulnerable?" with a specific safe version, then queue the fix, without leaving the chat. To connect a client, see Install & connect.
Property-based tests#
Task 8 of the pipeline spec calls for hypothesis tests on the three components where
example tests are weakest. They live in remediation-framework/tests/.
| File | Properties |
|---|---|
test_looseVer_pbt.py | Exactly one of <, ==, > for any two versions; transitivity; reflexivity; arbitrary text never raises anything but ValueError; CalVer years are not major bumps; semver ordering. |
test_editgate_pbt.py | For arbitrary LLM-shaped JSON, nothing under tests, a manifest, a lockfile, CI config or a ../ path is ever accepted. The repository fixture contains every forbidden file, so only the gate's own policy can reject. A control test checks that allowed files are accepted. |
test_advisory_parser_pbt.py | Advisory.parse_osv never raises on any bytes, text or JSON; a successful parse has a string id and a list affected; parsing twice gives equal results. |
What they caught#
- CalVer majors. The "new year is not a breaking major" rule applied to PyPI only, so
2024.1to2026.3counted as a major bump for Maven, NuGet, Packagist and RubyGems. It now applies to every ecosystem. - EditGate coverage. The gate blocked only four manifest names and
.github. Edits togo.mod,Cargo.toml,Cargo.lock,yarn.lock,poetry.lock,.gitlab-ci.yml,Jenkinsfile,.circleci/and more were accepted if the text matched. The block lists now cover those, Go and TypeScript test files, andtest/,__tests__/andspec/directories. - Traversal spellings. A path such as
sub/../app.pyresolved back inside the repository and was accepted. Any path containing a..component is now refused. - Malformed edits. An edit whose
oldornewwas not a string (a list, a number) raised inside the gate, and a binary target file raised on read. Both are now rejections. - Advisory parsing.
Advisory.from_osvraisedKeyError,AttributeErrororTypeErroron structurally valid but wrongly typed records. It now coerces or drops bad fields and refuses only a record with no usableid; the newAdvisory.parse_osvreturnsNonefor anything unusable.