{"app":"Cybernetics","mode":"focused personal archive API - public reads, key-gated writes","base_url":"http://localhost:5000","safety_boundary":"Authorized labs, CTFs, private labs, and educational targets only. Cybernetics stores blog and vulnerability knowledge records; it does not execute commands or scan networks.","authentication":{"type":"Bearer token","header":"Authorization: Bearer <CYBERNETICS_API_KEY>","env_var":"CYBERNETICS_API_KEY","policy":"Read-only website pages and GET API endpoints are public. Create, update, delete, and key verification require the Bearer key."},"agent_contract":{"read_first":["GET /api/agent-guide for field semantics, safety rules, quality checks, and the required recording sequence.","GET /api/search?q=<symptom or feature> before testing. Use several focused searches rather than one long natural-language query.","GET /api/blog-template before writing the final walkthrough."],"entity_boundaries":{"blog":"One authorized lab, room, challenge, or target walkthrough. Store scope, context, investigation narrative, dead ends, findings, screenshots by safe URL, and final lessons.","task":"One testable hypothesis or bounded work item inside a blog/lab. Store objective, allowed tools, safety boundary, status, and final conclusion.","note":"One observation, decision, model-authored reasoning checkpoint, screenshot reference, or evidence annotation. Link it to the relevant blog, task, and vulnerability when IDs are known.","command":"One important tool action and concise result. Preserve reproducibility without dumping secrets, tokens, cookies, or excessive raw output.","vulnerability":"A reusable diagnostic playbook: symptoms, recognition logic, controls, root cause, remediation, and verification. Do not use it as the full chronological walkthrough.","secret":"Encrypted continuation credential or sensitive handoff value. Write and read only through authenticated /api/secrets endpoints; never duplicate its plaintext into another entity."},"model_attribution":{"rule":"Create an agent run before autonomous work. Link tasks, findings, evidence, notes, and command logs with run_id. Also keep note.actor_name as the exact provider/model for readable provenance.","example":{"actor_type":"ai","actor_name":"openai/gpt-5-codex","tags":"run:run_2026_06_30_01, model:gpt-5-codex, phase:triage, review:pending"}},"lifecycle":["Create the blog/lab first and retain its ID.","Create one task per hypothesis; do not combine unrelated vulnerability classes in one task.","Search symptoms and prior heuristics before active testing.","Write notes for meaningful observations, model decisions, negative results, and evidence references.","Write command logs for reproducible tool actions.","Create or update a vulnerability playbook only when the pattern is reusable beyond this single lab.","Patch the task with the final proven, disproven, blocked, or inconclusive result.","Patch the blog to completed only after scope, evidence, dead ends, findings, attribution, and lessons are recorded."],"evidence_policy":["Use a baseline, one changed variable, observed result, and confirmation criterion.","Record negative controls and invalidating conditions to prevent false-positive memory.","Evidence artifacts can be registered with an HTTPS URL or a configured storage file ID. A first-party binary upload endpoint still requires an Appwrite Storage bucket and retention policy.","Store continuation credentials only through /api/secrets. Redact them from all public entities, screenshots, logs, and rendered walkthroughs.","Prefer stable reference IDs or URLs over pasting large raw responses."],"archive_write_guards":{"notes_per_task":"CYBERNETICS_MAX_NOTES_PER_TASK (default 250)","commands_per_task":"CYBERNETICS_MAX_COMMANDS_PER_TASK (default 250)","note_payload_bytes":"CYBERNETICS_MAX_NOTE_BYTES (default 65536)","command_payload_bytes":"CYBERNETICS_MAX_COMMAND_BYTES (default 32768)"},"completion_gate":["Authorized scope and out-of-scope boundary are explicit.","Exact AI provider/model and run identifier are recorded through /api/runs.","Every confirmed claim has evidence and at least one control or invalidating condition.","Dead ends and false positives are recorded.","Finding records link back to the source blog and task.","Vulnerability entries contain reusable symptom and heuristic language, not only case-specific prose.","Human review remains false/pending until a reviewer verifies the claim."]},"usage_model":["Public reads: website pages and GET API endpoints need no auth.","Key required: POST, PATCH, DELETE, and GET /api/verify need Authorization: Bearer <CYBERNETICS_API_KEY>.","Use /api/blogs for lab/blog archive entries.","Use /api/tasks for audit work records.","Use /api/notes for linked observations, journal notes, and evidence notes.","Use /api/commands for command/tool evidence logs.","Use /api/vulnerabilities for vulnerability knowledge-base entries.","Use /api/agent-guide before writing records to understand the expected diagnostic memory format.","Use /api/ait for Artificial Intelligence Terminology entries.","Use /api/blog-template to fetch the recommended cybersecurity write-up template.","Use /api/search?q=... as the fast agent-facing search entry point.","The UI and JSON API read the same Appwrite database."],"endpoints":[{"method":"GET","path":"/api","description":"Human-readable API documentation.","auth":"none"},{"method":"GET","path":"/api/json","description":"Machine-readable API documentation for agents.","auth":"none"},{"method":"GET","path":"/api/health","description":"Public deployment health check. Reports whether Appwrite configuration and read access are available without exposing secrets.","auth":"none"},{"method":"GET","path":"/api/search","description":"Weighted archive search across blogs/labs, tasks, notes, command logs, and vulnerability diagnostic fields. Common security abbreviations and names such as SQLi/SQL injection are expanded, and results include scores plus matched fields.","query":{"q":"access control"},"auth":"none"},{"method":"GET","path":"/api/blogs","description":"List walkthrough/case records with platform, series/game, status, dates, scope, finding count, and journal count. Use these records as case containers, not as canonical vulnerability definitions.","auth":"none"},{"method":"GET","path":"/api/blogs/:id","description":"Read one walkthrough/case record and its linked vulnerability findings. Use the returned blog ID to query or create related tasks, notes, and command evidence.","auth":"none"},{"method":"GET","path":"/api/ait","description":"List AIT terms for Artificial Intelligence Terminology.","body":null,"auth":"none"},{"method":"GET","path":"/api/blog-template","description":"Return the recommended Markdown template for cybersecurity room/problem write-up blogs.","body":null,"auth":"none"},{"method":"GET","path":"/api/agent-guide","description":"Return the system-style recording guide for AI agents: what to save, how to structure findings, and how to reuse memory diagnostically.","body":null,"auth":"none"},{"method":"GET","path":"/api/tasks","description":"List bounded investigation hypotheses and work items. A task should have one objective and end as proven, disproven, blocked, or inconclusive in final_summary.","auth":"none"},{"method":"GET","path":"/api/tasks/:id","description":"Read one work record with linked commands, events, notes, and findings.","auth":"none"},{"method":"GET","path":"/api/notes","description":"List investigation observations and evidence annotations. AI attribution currently lives in actor_type, actor_name, and tags/content until a dedicated run schema is added.","auth":"none"},{"method":"GET","path":"/api/notes/:id","description":"Read one note with linked lab, task, and vulnerability context.","auth":"none"},{"method":"GET","path":"/api/commands","description":"List reproducible tool-action evidence. Logs should explain purpose and result while excluding secrets and excessive raw output.","auth":"none"},{"method":"GET","path":"/api/commands/:id","description":"Read one command or tool evidence log.","auth":"none"},{"method":"GET","path":"/api/triage","description":"Rank canonical vulnerability candidates against symptoms, error text, technology, component, and parameter. Returns weighted scores and the exact fields/terms that matched.","query":{"symptoms":"object ID change returns another user record","technology":"REST API","limit":10},"auth":"none"},{"method":"GET","path":"/api/runs","description":"List structured AI execution runs with model provenance, lifecycle, token usage, tool mode, review state, and linked lab context.","auth":"none"},{"method":"GET","path":"/api/runs/:id","description":"Read one run with its tasks, findings, and evidence artifacts.","auth":"none"},{"method":"GET","path":"/api/findings","description":"List case-specific vulnerability occurrences. Findings link a lab/run/task to reusable canonical vulnerability knowledge.","auth":"none"},{"method":"GET","path":"/api/findings/:id","description":"Read one finding with linked lab, task, run, vulnerability definition, and evidence artifacts.","auth":"none"},{"method":"GET","path":"/api/evidence","description":"List structured screenshots, requests, responses, terminal captures, logs, and observations with provenance and redaction state.","auth":"none"},{"method":"GET","path":"/api/evidence/:id","description":"Read one evidence artifact and its linked case provenance.","auth":"none"},{"method":"GET","path":"/api/vulnerabilities","description":"List reusable vulnerability diagnostic playbooks. Search symptoms, entry points, prerequisites, heuristics, false positives, root causes, remediation, and references—not only names.","auth":"none"},{"method":"GET","path":"/api/vulnerabilities/:id","description":"Read the complete reusable diagnostic playbook plus linked source context. Compare symptoms and prerequisites before applying its testing procedure to a new authorized lab.","auth":"none"}]}